/**
 * Bosques Sumalao - Frontend Client Portal Styles
 * 
 * @package BosquesSumalao
 * @since 1.0.0
 */

/* Importar Font Awesome */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

:root {
    --text-primary: #37483a;
    --text-muted: #a1a1a1;
    --bg-primary: #f6f8f4;
    --bg-secondary: #0c1511;
    --bg-white: #ffffff;
    --text-secondary: #37483a;
    --accent-green: #4a6741;
    --accent-light: #6b8e5a;
    --accent-dark: #2c3e2a;
    --success: #4a6741;
    --warning: #d4a574;
    --danger: #c9553a;
    --info: #5a8ea6;
    --border-light: #e0e6dc;
    --shadow-light: rgba(74, 103, 65, 0.1);
    --shadow-medium: rgba(74, 103, 65, 0.15);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

.bs-client-portal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
}

.bs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Error Messages
   ========================================================================== */

.bs-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

/* ==========================================================================
   Dashboard Styles
   ========================================================================== */

.bs-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: var(--bg-primary);
    min-height: 100vh;
}

.bs-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border: 1px solid #e1e8ed;
}

.bs-welcome h1 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

.bs-welcome p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.bs-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ==========================================================================
   Client Level Badge
   ========================================================================== */

.bs-client-level {
    margin-bottom: 15px;
}

.bs-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid currentColor;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.bs-level-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bs-level-badge i {
    font-size: 16px;
}

.bs-level-text {
    font-size: 12px;
}

/* ==========================================================================
   Progress Section
   ========================================================================== */

.bs-progress-section {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-light) 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(74, 103, 65, 0.3);
}

.bs-progress-section h2 {
    background: transparent !important;
    color: white !important;
    border: none !important;
    font-size: 20px;
}

.bs-progress-section * {
    color: white !important;
}

.bs-progress-section .bs-progress-number {
    color: white !important;
}

.bs-progress-section .bs-progress-label {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bs-progress-section .bs-amount-label {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bs-progress-section .bs-amount-value {
    color: white !important;
}

.bs-progress-section .bs-next-milestone {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bs-progress-section a {
    color: white !important;
    text-decoration: underline;
}

.bs-progress-section a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.bs-progress-section .bs-btn {
    color: var(--accent-green) !important;
    background: white !important;
}

.bs-progress-section .bs-btn:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--accent-green) !important;
}

.bs-progress-container {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
}

.bs-progress-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bs-progress-percentage {
    text-align: center;
}

.bs-progress-number {
    display: block;
    font-size: 3em;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.bs-progress-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bs-progress-amounts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bs-amount-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.bs-amount-item:last-child {
    border-bottom: none;
}

.bs-amount-label {
    font-size: 14px;
    opacity: 0.9;
}

.bs-amount-value {
    font-weight: 600;
    font-size: 16px;
}

.bs-progress-bar-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bs-progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.bs-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff 0%, #f0f0f0 100%);
    border-radius: 10px;
    transition: width 2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.bs-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.bs-next-milestone {
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.bs-section {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bs-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bs-section h2 {
    background: var(--accent-green);
    color: white;
    margin: 0;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bs-section h2 i {
    font-size: 16px;
}

/* ==========================================================================
   Info Cards
   ========================================================================== */

.bs-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.bs-info-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 20px;
}

.bs-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bs-info-row:last-child {
    border-bottom: none;
}

.bs-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bs-label i {
    width: 16px;
    color: var(--accent-green);
}

.bs-value {
    color: var(--text-primary);
    font-size: 14px;
    text-align: right;
    flex: 1;
}

.bs-value strong {
    font-weight: 600;
    color: var(--text-primary);
}

.text-success {
    color: var(--accent-green) !important;
}

.text-danger {
    color: #e74c3c !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

/* ==========================================================================
   Status Badges
   ========================================================================== */

.bs-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bs-status-activo {
    background: #d4edda;
    color: var(--accent-green);
}

.bs-status-pendiente {
    background: #fff3cd;
    color: #856404;
}

.bs-status-pagada {
    background: #d4edda;
    color: var(--accent-green);
}

.bs-status-vencida {
    background: #f8d7da;
    color: #721c24;
}

.bs-status-suspendido {
    background: #f8d7da;
    color: #721c24;
}

.bs-status-finalizado {
    background: #d1ecf1;
    color: #0c5460;
}

/* ==========================================================================
   Summary Cards with Animations
   ========================================================================== */

.bs-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
}

.bs-summary-card {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bs-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 103, 65, 0.1), transparent);
    transition: left 0.5s ease;
}

.bs-summary-card:hover::before {
    left: 100%;
}

.bs-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--accent-green);
}

.bs-summary-card.bs-card-hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.bs-summary-icon {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--accent-green);
}

.bs-summary-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bs-summary-value {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.bs-summary-card:hover .bs-summary-value {
    color: var(--accent-green);
    transform: scale(1.1);
}

.bs-summary-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.bs-summary-amount {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
    font-weight: 500;
}

/* ==========================================================================
   Summary Badges
   ========================================================================== */

.bs-summary-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
}

.bs-badge-success {
    background: #d4edda;
    color: var(--accent-green);
}

.bs-badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.bs-badge-warning {
    background: #fff3cd;
    color: #856404;
}

.bs-badge-primary {
    background: var(--accent-green);
    color: white;
}

/* ==========================================================================
   Animations
   ========================================================================== */

.bs-animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Tables
   ========================================================================== */

.bs-table-container {
    padding: 20px;
    overflow-x: auto;
}

.bs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    overflow: hidden;
    table-layout: fixed;
}

.bs-table thead {
    background: var(--accent-green);
}

.bs-table thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 14px;
    border-bottom: 1px solid #e1e8ed;
}

.bs-table thead th i {
    font-size: 12px;
}

/* Column widths for cuotas table */
.bs-table th:nth-child(1), .bs-table td:nth-child(1) { /* Cuota */
    width: 15%;
}

.bs-table th:nth-child(2), .bs-table td:nth-child(2) { /* Vencimiento */
    width: 25%;
}

.bs-table th:nth-child(3), .bs-table td:nth-child(3) { /* Monto */
    width: 20%;
}

.bs-table th:nth-child(4), .bs-table td:nth-child(4) { /* Estado */
    width: 25%;
}

.bs-table th:nth-child(5), .bs-table td:nth-child(5) { /* Factura */
    width: 15%;
}

.bs-table tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: var(--text-primary);
    vertical-align: top;
    word-wrap: break-word;
}

.bs-table tbody tr:last-child td {
    border-bottom: none;
}

.bs-table tbody tr:hover {
    background: var(--bg-primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.bs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.bs-btn-primary {
    background: var(--accent-green);
    color: white;
}

.bs-btn-primary:hover {
    background: var(--accent-light);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 103, 65, 0.3);
}

.bs-btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.bs-btn-secondary:hover {
    background: var(--text-primary);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.bs-btn-small {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

/* ==========================================================================
   Filter Form
   ========================================================================== */

.bs-filter-form {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
    padding: 20px;
}

.bs-filter-group {
    flex: 1;
    min-width: 150px;
}

.bs-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.bs-filter-group input,
.bs-filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.bs-filter-group input:focus,
.bs-filter-group select:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(74, 103, 65, 0.2);
}

.bs-filter-actions {
    display: flex;
    gap: 10px;
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.bs-page-header {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bs-page-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bs-page-title h1 {
    margin: 0;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

/* ==========================================================================
   Cuotas Specific Styles
   ========================================================================== */

.bs-cuotas-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: var(--bg-primary);
    min-height: 100vh;
}

.bs-cuota-row.bs-status-vencida {
    background-color: #fff5f5;
}

.bs-cuota-row.bs-status-pagada {
    background-color: #f0fff4;
}

.bs-cuota-row.bs-status-pendiente {
    background-color: #fffbf0;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.bs-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
}

.bs-page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: var(--accent-green);
    transition: all 0.3s ease;
    font-size: 14px;
}

.bs-page-link:hover {
    background-color: var(--accent-green);
    color: white;
    text-decoration: none;
    border-color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(74, 103, 65, 0.3);
}

.bs-page-current {
    padding: 8px 12px;
    background-color: var(--accent-green);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
}

/* ==========================================================================
   No Data State
   ========================================================================== */

.bs-no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    background: white;
    border-radius: 8px;
    margin: 20px 0;
}

.bs-no-data p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* ==========================================================================
   Login Styles
   ========================================================================== */

.bs-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
    background: var(--bg-primary);
}

.bs-login-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    border: 1px solid #e1e8ed;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bs-login-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.bs-login-header {
        text-align: center;
    margin-bottom: 30px;
    }
    
.bs-login-header h2 {
    margin: 0 0 5px 0;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 600;
    }
    
.bs-login-header > p {
    margin: 0 0 20px 0;
    color: var(--text-secondary);
    font-size: 16px;
    }
    
.bs-login-instructions {
    background: var(--bg-primary);
    border: 1px solid var(--accent-light);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    text-align: left;
    }
    
.bs-login-instructions p {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 14px;
    }
    
.bs-login-instructions ul {
    margin: 8px 0;
    padding-left: 20px;
    }
    
.bs-login-instructions li {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
    }
    
.bs-login-instructions li::before {
    content: "✓ ";
    color: var(--accent-green);
    font-weight: bold;
    }
    
.bs-help-section {
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--accent-light);
    }
    
.bs-help-section h4 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    }

.bs-help-section p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
    font-size: 14px;
    }
    
.bs-help-section ul {
    margin: 10px 0;
    padding-left: 20px;
    }
    
.bs-help-section li {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    }
    
.bs-help-section li i {
    color: var(--accent-green);
    width: 16px;
    text-align: center;
}

.bs-help-section h4 i {
    color: var(--accent-green);
    margin-right: 8px;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.bs-form-group {
    margin-bottom: 20px;
}

.bs-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-primary);
}

.bs-form-group input,
.bs-form-group textarea,
.bs-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.bs-form-group input:focus,
.bs-form-group textarea:focus,
.bs-form-group select:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(74, 103, 65, 0.2);
}

.bs-form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
}

.bs-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ==========================================================================
   Messages
   ========================================================================== */

.bs-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 14px;
    font-weight: 500;
}

.bs-message.bs-success {
    background: #d4edda;
    color: var(--accent-green);
    border: 1px solid #c3e6cb;
}

.bs-message.bs-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==========================================================================
   Icons with Font Awesome
   ========================================================================== */

.bs-summary-icon {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--accent-green);
}

.bs-summary-icon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.bs-summary-card:nth-child(1) .bs-summary-icon::before {
    content: "\f00c"; /* check */
}

.bs-summary-card:nth-child(2) .bs-summary-icon::before {
    content: "\f017"; /* clock */
}

.bs-summary-card:nth-child(3) .bs-summary-icon::before {
    content: "\f071"; /* exclamation-triangle */
}

.bs-summary-card:nth-child(4) .bs-summary-icon::before {
    content: "\f0ca"; /* list */
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .bs-dashboard, .bs-cuotas-page {
        padding: 10px;
    }
    
    .bs-dashboard-header, .bs-page-header {
        flex-direction: column;
        gap: 15px;
    text-align: center;
}

    .bs-page-title {
    flex-direction: column;
    gap: 15px;
}

    .bs-progress-container {
        grid-template-columns: 1fr;
        gap: 20px;
}

    .bs-progress-number {
        font-size: 2.5em;
}

    .bs-info-grid {
        grid-template-columns: 1fr;
        padding: 15px;
}

    .bs-summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
}

    .bs-actions {
        flex-direction: column;
        width: 100%;
}

    .bs-btn {
        width: 100%;
}

    .bs-table-container {
        padding: 10px;
}

    .bs-login-form {
    padding: 20px;
        margin: 10px;
}

.bs-filter-form {
        flex-direction: column;
        align-items: stretch;
}

.bs-filter-group {
        min-width: auto;
}

.bs-filter-actions {
        justify-content: center;
}

    .bs-table {
        font-size: 12px;
        table-layout: auto;
}

    .bs-table th,
    .bs-table td {
        padding: 8px 4px;
        width: auto !important;
}

.bs-pagination {
        flex-wrap: wrap;
        padding: 15px;
}
}

@media (max-width: 480px) {
    .bs-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .bs-welcome h1, .bs-page-title h1 {
        font-size: 20px;
    }
    
    .bs-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .bs-btn-small {
        padding: 2px 6px;
        font-size: 10px;
    }
    
    .bs-progress-number {
        font-size: 2em;
    }
    
    .bs-level-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    a {
        color: #37483a !important;
    }
}

/* ==========================================================================
   Currency Badges - Bosques Brand Colors
   ========================================================================== */

.bs-currency-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    min-width: 48px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.bs-currency-badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.bs-currency-ars {
    background: linear-gradient(135deg, #6b8e5a 0%, #4a6741 100%);
    color: rgb(239, 239, 239);
    border: 1px solid var(--accent-light);
}

.bs-currency-usd {
    background: linear-gradient(135deg, #5a8ea6 0%, #4a73a6 100%);
    color: white;
    border: 1px solid #5a8ea6;
}

.bs-currency-eur {
    background: linear-gradient(135deg, #d4a574 0%, #b8935a 100%);
    color: white;
    border: 1px solid #d4a574;
}

.bs-currency-uvi {
    background: linear-gradient(135deg, #9b6ba8 0%, #7a4a87 100%);
    color: rgb(255, 255, 255) !important;
    border: 1px solid #9b6ba8;
}

/* ==========================================================================
   Enhanced Buttons with Bosques Colors
   ========================================================================== */

.bs-btn {
    border-radius: 8px;
    font-weight: 600;
    text-transform: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    border: none;
    position: relative;
    overflow: hidden;
}

.bs-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.bs-btn:hover::before {
    left: 100%;
}

.bs-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.bs-btn-primary {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-dark) 100%);
}

.bs-btn-secondary {
    background: linear-gradient(135deg, var(--text-muted) 0%, var(--text-secondary) 100%);
}

.bs-btn-success {
    color: rgb(255, 255, 255) !important;
    background: linear-gradient(135deg, var(--success) 0%, var(--accent-dark) 100%);
}

.bs-btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #a8442e 100%);
}

/* ==========================================================================
   Enhanced Status Badges
   ========================================================================== */

.bs-status-badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.bs-status-pendiente {
    background: linear-gradient(135deg, #f5f5dc 0%, #e6e6b8 100%);
    color: var(--accent-dark);
    border-color: #d4a574;
}

.bs-status-pagada {
    background: linear-gradient(135deg, #6b8e5a 0%, #4a6741 100%);
    color: white;
    border-color: var(--accent-light);
}

.bs-status-vencida {
    background: linear-gradient(135deg, #c9553a 0%, #a8442e 100%);
    color: white;
    border-color: var(--danger);
}

.bs-status-activo {
    background: linear-gradient(135deg, #6b8e5a 0%, #4a6741 100%);
    color: white;
}

.bs-status-verificado {
    background: linear-gradient(135deg, #6b8e5a 0%, #4a6741 100%);
    color: white;
}

.bs-status-rechazado {
    background: linear-gradient(135deg, #c9553a 0%, #a8442e 100%);
    color: white;
}

/* ==========================================================================
   Enhanced Cards and Sections
   ========================================================================== */

.bs-section {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

.bs-section:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.bs-table-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-light);
}

.bs-table thead {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-dark) 100%);
    color: white;
}

.bs-table thead th {
    padding: 15px 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.bs-table tbody tr {
    transition: all 0.3s ease;
}

.bs-table tbody tr:hover {
    background-color: rgba(74, 103, 65, 0.05);
    transform: scale(1.01);
}

/* ==========================================================================
   Loading and Animation Enhancements
   ========================================================================== */

.bs-loading {
    position: relative;
    overflow: hidden;
}

.bs-loading::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(74, 103, 65, 0.2), transparent);
    animation: loading 2s infinite;
}

@keyframes loading {
    100% {
        transform: translateX(100%);
    }
}

.bs-fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Enhanced Forms
   ========================================================================== */

.bs-filter-form {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-light);
}

.bs-filter-form input,
.bs-filter-form select {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 10px 12px;
    transition: all 0.3s ease;
}

.bs-filter-form input:focus,
.bs-filter-form select:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.1);
}
.bs-currency-ars {
    background-color: #e8f5e8;
    color: #ffffff !important;
    border: 1px solid #d4e5d4;
}

/* ==========================================================================
   Responsive Enhancements
   ========================================================================== */

@media (max-width: 768px) {
    .bs-currency-badge {
        padding: 4px 8px;
        font-size: 10px;
        min-width: 40px;
    }
    
    .bs-status-badge {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .bs-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .bs-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* UVI Notice Styles */
.bs-uvi-notice {
    margin-bottom: 30px;
}

.bs-alert {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bs-alert-info {
    border-left-color: #3498db;
    background: linear-gradient(135deg, #e3f2fd 0%, #f8fbff 100%);
}

.bs-alert-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #3498db;
    color: white;
    font-size: 18px;
}

.bs-alert-content h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.bs-alert-content p {
    margin: 0 0 15px 0;
    color: #555;
    line-height: 1.5;
}

.bs-uvi-scale-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.bs-uvi-scale-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
    color: #555;
}

.bs-uvi-scale-list li:last-child {
    border-bottom: none;
}

.bs-uvi-scale-list li strong {
    color: #2c3e50;
}

.bs-uvi-recommendation {
    background: rgba(52, 152, 219, 0.1);
    padding: 10px 15px;
    border-radius: 6px;
    margin: 0;
    font-weight: 500;
    color: #2c3e50;
}

/* Access Denied Styles */
.bs-access-denied {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-radius: 12px;
    margin: 20px 0;
}

.bs-access-denied-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.bs-access-denied h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 600;
}

.bs-access-denied p {
    margin: 0 0 10px 0;
    font-size: 16px;
    opacity: 0.9;
}

.bs-access-denied .bs-contact-info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: inline-block;
}

.bs-access-denied .bs-contact-info strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
} 