:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --secondary-dark: #27ae60;
    --warning-color: #e74c3c;
    --warning-dark: #c0392b;
    --dark-color: #34495e;
    --dark-light: #597393;
    --light-color: #ecf0f1;
    --gray-light: #f5f7fa;
    --gray: #95a5a6;
    --text-color: #2c3e50;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--gray-light);
    color: var(--text-color);
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 15px;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.btn.primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

.btn.secondary {
    background-color: white;
    color: var(--dark-color);
}

.btn.secondary:hover {
    background-color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header h3 {
    font-size: 18px;
    color: var(--dark-color);
    font-weight: 600;
    margin: 0;
}

.card-header i {
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 25px;
    position: relative;
}

.amount {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    background: -webkit-linear-gradient(45deg, var(--text-color), var(--dark-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card:hover .amount {
    transform: scale(1.05);
}

.period, .count, .percentage {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
}

.progress-bar {
    height: 10px;
    background-color: #f1f1f1;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 100%;
    transition: width 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.total {
    position: relative;
    overflow: hidden;
}

.total::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
}

.total i {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.paid {
    position: relative;
    overflow: hidden;
}

.paid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--secondary-color), var(--secondary-dark));
}

.paid i {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
}

.paid .progress {
    background: linear-gradient(to right, var(--secondary-color), var(--secondary-dark));
}

.pending {
    position: relative;
    overflow: hidden;
}

.pending::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--warning-color), var(--warning-dark));
}

.pending i {
    background: linear-gradient(135deg, var(--warning-color), var(--warning-dark));
    color: white;
}

.pending .progress {
    background: linear-gradient(to right, var(--warning-color), var(--warning-dark));
}

.upcoming {
    position: relative;
    overflow: hidden;
}

.upcoming::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, var(--dark-color), var(--dark-light));
}

.upcoming i {
    background: linear-gradient(135deg, var(--dark-color), var(--dark-light));
    color: white;
}

.upcoming .amount {
    background: -webkit-linear-gradient(45deg, var(--dark-color), var(--dark-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    padding: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--dark-color);
    font-size: 15px;
}

.tab-btn i {
    font-size: 16px;
}

.tab-btn:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Tarjetas de cuentas con diseño moderno */
.bill-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 20px;
    position: relative;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 12px;
}

.bill-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Estilos específicos para tarjetas pagadas */
.bill-card.paid {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05), rgba(255, 255, 255, 1));
    border-left: 4px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.bill-card.paid::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
    border-radius: 50%;
    transform: translate(20px, -20px);
    z-index: 0;
}

.bill-card.paid::after {
    content: "✓";
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: bold;
    z-index: 1;
    background: rgba(46, 204, 113, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos específicos para tarjetas pendientes */
.bill-card.pending {
    background: white;
    border-left: 4px solid #e0e6ed;
}

.bill-card.pending:hover {
    border-left-color: var(--primary-color);
}

.bill-card.pending.warning {
    border-left: 4px solid var(--warning-color);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.02), rgba(255, 255, 255, 1));
    animation: pulse-warning 2s infinite;
}

/* Etiquetas de estado */
.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    z-index: 2;
}

.bill-card.paid .status-badge {
    background-color: #e8f5e8;
    color: #27ae60;
    border: 1px solid #d4edda;
}

.bill-card.pending .status-badge {
    background-color: #fdf2f2;
    color: #e74c3c;
    border: 1px solid #f5c6cb;
}

/* Categoría */
.bill-card .category {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-color);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

/* Título y nombre */
.bill-card .title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 35px 0 20px 0;
    position: relative;
    z-index: 1;
}

.bill-card .title i {
    font-size: 30px;
    width: 60px;
    height: 60px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
}

.bill-card .title h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: var(--dark-color);
}

/* Monto */
.bill-card .amount {
    font-size: 38px;
    font-weight: 700;
    margin: 20px 0;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.bill-card.paid .amount {
    color: var(--secondary-color);
    font-weight: bold;
}

.bill-card.pending .amount {
    color: var(--text-color);
}

/* Detalles */
.bill-card .details {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.bill-card .due-date, .bill-card .days-left {
    font-size: 15px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 7px;
}

.bill-card .due-date i, .bill-card .days-left i {
    color: var(--primary-color);
}

.bill-card .days-left.warning {
    color: var(--warning-color);
    font-weight: 600;
}

/* Acciones */
.bill-card .actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.bill-card .checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bill-card .checkbox input {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.bill-card .checkbox span {
    font-size: 14px;
    font-weight: 500;
}

.bill-card.paid .checkbox span {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Botones de acción */
.bill-card .action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.bill-card .edit-btn,
.bill-card .delete-btn,
.bill-card .duplicate-btn,
.bill-card .reminder-btn {
    background: white;
    border: 1px solid #e1e5e9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bill-card .edit-btn {
    color: #2980b9;
}

.bill-card .delete-btn {
    color: #c0392b;
}

.bill-card .duplicate-btn {
    color: #229954;
}

.bill-card .reminder-btn {
    color: #2c3e50;
}

.bill-card .edit-btn:hover {
    background-color: #2980b9;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(41, 128, 185, 0.3);
    border-color: #2980b9;
}

.bill-card .delete-btn:hover {
    background-color: #c0392b;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(192, 57, 43, 0.3);
    border-color: #c0392b;
}

.bill-card .duplicate-btn:hover {
    background-color: #229954;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(34, 153, 84, 0.3);
    border-color: #229954;
}

.bill-card .reminder-btn:hover {
    background-color: #2c3e50;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(44, 62, 80, 0.3);
    border-color: #2c3e50;
}

.bill-card .edit-btn i,
.bill-card .delete-btn i,
.bill-card .duplicate-btn i,
.bill-card .reminder-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.bill-card .edit-btn:hover i,
.bill-card .delete-btn:hover i,
.bill-card .duplicate-btn:hover i,
.bill-card .reminder-btn:hover i {
    transform: scale(1.1);
}

.bill-card .reminder-btn:hover i {
    animation: shake 0.5s ease;
}

@keyframes pulse-warning {
    0% { 
        box-shadow: 0 4px 20px rgba(231, 76, 60, 0.08);
        border-left-color: var(--warning-color);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(231, 76, 60, 0.15);
        border-left-color: #e74c3c;
    }
    100% { 
        box-shadow: 0 4px 20px rgba(231, 76, 60, 0.08);
        border-left-color: var(--warning-color);
    }
}

@keyframes shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(0); }
    75% { transform: rotate(10deg); }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    animation: modalFadeIn 0.3s forwards;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5em;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    color: var(--primary-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--gray);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-btn:hover {
    background-color: var(--light-color);
    color: var(--warning-color);
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.form-group input:hover, .form-group select:hover {
    border-color: #bbb;
}

.form-group input::placeholder {
    color: #bbb;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

.form-actions button {
    min-width: 120px;
}

.input-icon {
    position: relative;
}

.input-icon .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-weight: bold;
}

.input-icon input {
    padding-left: 35px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    padding-right: 40px;
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
}

/* Estilos para el interruptor de toggle */
.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Animaciones personalizadas */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-in {
    animation: slideInRight 0.5s forwards;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .bills-container {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    header button {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

/* Animación para el cambio de estado pagado/pendiente */
.bill-card.fade-out {
    animation: fadeOut 0.3s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 0.7;
        transform: scale(0.95);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Transición más suave entre tabs */
.tab-content {
    transition: opacity 0.3s;
}

.tab-content:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.tab-content.active {
    opacity: 1;
    pointer-events: auto;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.month-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.month-filter label {
    color: var(--primary-color);
    font-size: 20px;
}

.month-select, .year-select {
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    background: var(--gray-light);
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--dark-color);
    appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334495e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}

/* Navbar Móvil */
.mobile-navbar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1000;
}

.navbar-container {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.navbar-brand i {
    font-size: 20px;
}

/* Botón Hamburguesa */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.hamburger-btn:hover {
    background: rgba(52, 73, 94, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animación del botón hamburguesa cuando está activo */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Menú Móvil */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    visibility: visible;
    opacity: 1;
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active .menu-content {
    transform: translateX(0);
}

.menu-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
}

.menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.close-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.menu-item {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
    color: var(--dark-color);
    font-size: 16px;
    text-align: left;
}

.menu-item:hover {
    background: #f8f9fa;
    padding-left: 25px;
}

.menu-item i:first-child {
    font-size: 18px;
    color: var(--primary-color);
    width: 20px;
}

.menu-item span {
    flex: 1;
    font-weight: 500;
}

.menu-item i:last-child {
    font-size: 14px;
    color: #bbb;
    transition: transform 0.2s ease;
}

.menu-item:hover i:last-child {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-content {
        width: 85%;
        max-width: 320px;
    }
    
    .navbar-container {
        padding: 12px 15px;
    }
    
    .navbar-brand span {
        font-size: 16px;
    }
    
    .mobile-navbar {
        margin-bottom: 15px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .menu-content {
        width: 90%;
        max-width: 280px;
    }
    
    .navbar-container {
        padding: 10px 12px;
    }
    
    .navbar-brand {
        font-size: 16px;
    }
    
    .navbar-brand i {
        font-size: 18px;
    }
    
    .menu-item {
        padding: 15px 18px;
        font-size: 15px;
    }
    
    .menu-header {
        padding: 18px;
    }
    
    .menu-header h3 {
        font-size: 16px;
    }
    
    .hamburger-btn {
        padding: 6px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
}

@media (max-width: 360px) {
    .menu-content {
        width: 95%;
        max-width: 260px;
    }
    
    .navbar-container {
        padding: 8px 10px;
    }
    
    .navbar-brand {
        font-size: 14px;
    }
    
    .navbar-brand i {
        font-size: 16px;
    }
    
    .menu-item {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .menu-header {
        padding: 15px;
    }
    
    .menu-header h3 {
        font-size: 15px;
    }
}

/* Modal de informes */
.informes-container {
    max-width: 100%;
}

.informes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.informes-header h3 {
    color: var(--dark-color);
    font-size: 18px;
    margin: 0;
}

.year-selector-informes {
    display: flex;
    align-items: center;
    gap: 10px;
}

.year-selector-informes label {
    font-weight: 600;
    color: var(--dark-color);
}

.year-selector-informes select {
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    color: var(--dark-color);
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.year-selector-informes select:focus {
    border-color: var(--primary-color);
}

.informes-content {
    min-height: 300px;
}

.loading-informes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--gray-color);
}

.loading-informes i {
    font-size: 24px;
    margin-bottom: 10px;
}

.category-report {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid var(--primary-color);
}

.category-report h4 {
    margin: 0 0 10px 0;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-amount {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.category-count {
    font-size: 14px;
    color: var(--gray-color);
    margin-top: 5px;
}

.total-summary {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.total-summary h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    opacity: 0.9;
}

.total-amount {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

/* Responsividad para modal de informes */
@media (max-width: 768px) {
    .informes-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .informes-header h3 {
        font-size: 16px;
    }
    
    .year-selector-informes {
        width: 100%;
        justify-content: space-between;
    }
    
    .year-selector-informes select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .category-report {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .category-report h4 {
        font-size: 14px;
    }
    
    .category-amount {
        font-size: 16px;
    }
    
    .category-count {
        font-size: 13px;
    }
    
    .total-summary {
        padding: 15px;
        margin-top: 15px;
    }
    
    .total-summary h3 {
        font-size: 14px;
    }
    
    .total-amount {
        font-size: 24px;
    }
    
    .navbar-content {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .informes-header {
        gap: 12px;
    }
    
    .informes-header h3 {
        font-size: 15px;
    }
    
    .year-selector-informes label {
        font-size: 14px;
    }
    
    .year-selector-informes select {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .category-report {
        padding: 10px;
        margin-bottom: 8px;
    }
    
    .category-report h4 {
        font-size: 13px;
    }
    
    .category-amount {
        font-size: 15px;
    }
    
    .category-count {
        font-size: 12px;
    }
    
    .total-summary {
        padding: 12px;
        margin-top: 12px;
    }
    
    .total-summary h3 {
        font-size: 13px;
    }
    
    .total-amount {
        font-size: 20px;
    }
}

.month-select:hover, .year-select:hover,
.month-select:focus, .year-select:focus {
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

.filter-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
}