/* expense-manager.css - Estilos para Gestor de Gastos */

:root {
    --expense-green: #10b981;
    --expense-red: #ef4444;
    --expense-yellow: #f59e0b;
    --expense-blue: #3b82f6;
    --expense-purple: #8b5cf6;
}

/* ========================================
   ESTILOS GLOBALES PARA SWEETALERT2 MODALES
   ======================================== */

/* Modal principal - más espacioso y legible */
.swal2-popup {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    padding: 1.75rem !important;
    border-radius: 1rem !important;
    min-width: 400px !important;
}

/* Título del modal */
.swal2-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin-bottom: 1.25rem !important;
    padding: 0 0.5rem !important;
}

/* Contenedor HTML del modal */
.swal2-html-container {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.25rem !important;
    text-align: left !important;
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

/* Inputs y selects dentro de modales */
.swal2-input,
.swal2-textarea,
.swal2-select,
.swal2-html-container input[type="text"],
.swal2-html-container input[type="date"],
.swal2-html-container input[type="number"],
.swal2-html-container select,
.swal2-html-container textarea {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    color: #1f2937 !important;
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    margin: 0.5rem 0 !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease-in-out !important;
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus,
.swal2-html-container input:focus,
.swal2-html-container select:focus,
.swal2-html-container textarea:focus {
    border-color: #3b82f6 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

/* Botones del modal */
.swal2-actions {
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
}

.swal2-confirm,
.swal2-cancel,
.swal2-deny {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    border-radius: 0.5rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.swal2-confirm {
    background-color: #0d6efd !important;
}

.swal2-confirm:hover {
    background-color: #0257d5 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3) !important;
}

.swal2-cancel {
    background-color: #6c757d !important;
}

.swal2-cancel:hover {
    background-color: #5a6268 !important;
}

/* Mensaje de validación */
.swal2-validation-message {
    padding: 0.75rem 1rem !important;
    margin: 1rem 0 0.5rem 0 !important;
    background: #fee2e2 !important;
    color: #991b1b !important;
    border-radius: 0.5rem !important;
    font-size: 0.95rem !important;
}

/* Labels y texto */
.swal2-html-container label {
    display: block;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Primer label sin margin-top */
.swal2-html-container label:first-of-type {
    margin-top: 0;
}

/* Texto de ayuda */
.swal2-html-container .form-text,
.swal2-html-container small {
    display: block;
    margin-top: 0.375rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Checkboxes */
.swal2-html-container .form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin: 0.75rem 0;
}

.swal2-html-container .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    cursor: pointer;
}

.swal2-html-container .form-check-label {
    margin: 0;
    cursor: pointer;
    font-size: 1rem;
}

/* Separadores */
.swal2-html-container hr,
.swal2-html-container .border-top {
    margin: 1.5rem 0 !important;
    border-color: #e5e7eb !important;
}

/* Secciones con títulos */
.swal2-html-container h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.75rem 0;
    color: #1f2937;
}

/* Alerts informativos dentro del modal */
.swal2-html-container .alert,
.swal2-html-container [class*="bg-"] {
    padding: 0.875rem 1rem !important;
    margin: 1rem 0 !important;
    border-radius: 0.5rem !important;
    line-height: 1.6 !important;
}

/* Íconos del modal */
.swal2-icon {
    margin: 1rem auto !important;
}

/* Botón de cerrar */
.swal2-close {
    font-size: 2rem !important;
    color: #6b7280 !important;
    transition: color 0.15s ease !important;
}

.swal2-close:hover {
    color: #1f2937 !important;
}

/* ========================================
   FIN DE ESTILOS GLOBALES SWEETALERT2
   ======================================== */

/* ========================================
   DISEÑO RESPONSIVE
   ======================================== */

/* Botones responsive - solo iconos en móvil */
@media (max-width: 768px) {
    /* Header: botones solo con iconos */
    .user-info .btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 1.1rem;
        min-width: auto;
    }
    
    .user-info .btn:not(.notification-button) {
        width: auto;
    }
    
    /* Ocultar texto, mantener solo iconos */
    .user-info .btn:not([id="view-notifications"]):not(.notification-button) span,
    .user-info .btn:not([id="view-notifications"]):not(.notification-button) {
        font-size: 0;
    }
    
    .user-info .btn i {
        font-size: 1.1rem;
        margin: 0 !important;
    }
    
    /* Botón de notificaciones responsive */
    #view-notifications {
        padding: 0.5rem 0.75rem !important;
    }
    
    #view-notifications::before {
        content: '';
    }
    
    #view-notifications {
        font-size: 0;
    }
    
    #view-notifications i {
        font-size: 1.1rem !important;
    }
    
    .notification-badge {
        top: -5px !important;
        right: -5px !important;
    }
    
    /* Panel de acciones - botones solo con iconos */
    .action-group .btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0;
        min-width: auto;
    }
    
    .action-group .btn i {
        font-size: 1.1rem;
        margin: 0 !important;
    }
    
    /* Header responsive */
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .dashboard-header-content {
        justify-content: center;
    }
    
    .user-info {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }
    
    .user-info .btn {
        margin: 0 !important;
    }
    
    /* Resumen financiero responsive */
    .financial-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Panel header responsive */
    .panel-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .action-group {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }
    
    .action-group .btn {
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    /* Resumen financiero en columna única para móviles muy pequeños */
    .financial-summary {
        grid-template-columns: 1fr;
    }
    
    .dashboard-title h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-title p {
        font-size: 0.875rem;
    }
}

/* ========================================
   FIN DE DISEÑO RESPONSIVE
   ======================================== */

/* Resumen Financiero */
.financial-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.summary-card.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.summary-card.pending {
    background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
}

.summary-card.paid {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.summary-card.debt {
    background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
}

.summary-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

.summary-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-content p {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

/* Estado de Gastos */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.paid {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.overdue {
    background: #fee2e2;
    color: #991b1b;
}

/* Estilos para DataTable con Bootstrap */
#expenses-table {
    width: 100% !important;
}

#expenses-table th {
    background-color: #f8f9fa;
    color: #212529;
    font-weight: 600;
    text-align: center;
    padding: 12px 8px;
    border-bottom: 2px solid #dee2e6;
}

#expenses-table td {
    padding: 10px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

#expenses-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Remover colores de fondo de filas */
.row-pending,
.row-paid,
.row-overdue {
    background-color: transparent !important;
}

.row-pending:hover,
.row-paid:hover,
.row-overdue:hover {
    background-color: #f8f9fa !important;
}

/* Estilos para notas visibles */
.note-text {
    color: #6b7280;
    font-size: 0.8rem;
    font-style: italic;
    display: block;
    margin-top: 0.25rem;
}

.btn-note {
    line-height: 1;
    padding: 0.25rem 0.4rem;
    display: inline-block;
    margin: 0 auto;
}

.payment-day {
    font-weight: 600;
    color: #1f2937;
}

.no-limit {
    color: #9ca3af;
    font-style: italic;
}

/* Remover badges personalizados, usar solo Bootstrap */
.badge-recurring {
    background: transparent !important;
    color: inherit !important;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    font-weight: inherit;
}

.reminder-active {
    color: #059669;
    font-weight: 500;
}

.reminder-off {
    color: #9ca3af;
}

/* Remover estilos de botones custom - usar solo Bootstrap */
.btn-action {
    all: unset;
}

/* Categorías */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.category-badge.fijo {
    background: #dbeafe;
    color: #1e40af;
}

.category-badge.tarjeta {
    background: #fce7f3;
    color: #9f1239;
}

.category-badge.ahorro {
    background: #dcfce7;
    color: #166534;
}

.category-badge.deuda {
    background: #fee2e2;
    color: #991b1b;
}

.category-badge.otro {
    background: #f3f4f6;
    color: #374151;
}

/* Días restantes */
.days-remaining {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
}

.days-remaining.urgent {
    background: #fee2e2;
    color: #991b1b;
}

.days-remaining.warning {
    background: #fef3c7;
    color: #92400e;
}

.days-remaining.normal {
    background: #dbeafe;
    color: #1e40af;
}

/* Responsive */
@media (max-width: 768px) {
    .financial-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .summary-card {
        padding: 1rem;
    }
    
    .summary-icon {
        font-size: 2rem;
    }
    
    .summary-content p {
        font-size: 1.5rem;
    }
    
    /* Ocultar columnas en móvil */
    #expenses-table thead th:nth-child(1),
    #expenses-table tbody td:nth-child(1) {
        display: none; /* Categoría */
    }
    
    #expenses-table thead th:nth-child(6),
    #expenses-table tbody td:nth-child(6) {
        display: none; /* Días Restantes */
    }
    
    /* Ajustar columnas visibles */
    #expenses-table thead th:nth-child(2),
    #expenses-table tbody td:nth-child(2) {
        width: 30%;
    }
    
    #expenses-table thead th:nth-child(3),
    #expenses-table tbody td:nth-child(3) {
        width: 20%;
    }
    
    #expenses-table thead th:nth-child(4),
    #expenses-table tbody td:nth-child(4) {
        display: none; /* Fecha en móvil */
    }
    
    #expenses-table thead th:nth-child(5),
    #expenses-table tbody td:nth-child(5) {
        width: 25%;
    }
    
    #expenses-table thead th:nth-child(7),
    #expenses-table tbody td:nth-child(7) {
        width: 25%;
    }
}

/* Formulario modal con Bootstrap 5 */
.swal2-html-container {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem !important;
    text-align: left !important;
}

.expense-form {
    text-align: left;
    padding: 0;
}

.expense-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #212529;
    font-size: 0.95rem;
}

.expense-form .form-control,
.expense-form .form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    color: #212529 !important;
    background-color: #ffffff !important;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    -webkit-text-fill-color: #212529 !important;
}

.expense-form .form-control:focus,
.expense-form .form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.expense-form .form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.expense-form .form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.75em;
    margin-bottom: 0.5rem;
}

.expense-form .form-check-input {
    float: left;
    margin-left: -1.75em;
    margin-top: 0.25em;
    width: 1.25em;
    height: 1.25em;
}

.expense-form .form-check-label {
    display: block;
    color: #212529;
    line-height: 1.6;
}

.expense-form h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.expense-form .border-top {
    border-top: 1px solid #dee2e6 !important;
}

.expense-form .pt-3 {
    padding-top: 1rem !important;
}

.expense-form .mt-4 {
    margin-top: 1.5rem !important;
}

.expense-form .mb-3 {
    margin-bottom: 1rem !important;
}

/* SweetAlert2 customization */
.swal2-popup {
    font-family: 'Inter', sans-serif !important;
}

/* Expense-modal specific SweetAlert tweaks: only apply when the popup contains the #expense-form element */
.swal2-html-container > #expense-form,
.swal2-html-container > .expense-form {
    max-width: 1000px;
    width: 95vw;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: block;
}

.swal2-html-container > #expense-form .form-control,
.swal2-html-container > #expense-form .form-select,
.swal2-html-container > .expense-form .form-control,
.swal2-html-container > .expense-form .form-select {
    padding: 0.6rem 0.9rem;
    font-size: 1.02rem;
}

.swal2-confirm {
    background-color: #0d6efd !important;
    border: none !important;
}

.swal2-cancel {
    background-color: #6c757d !important;
    border: none !important;
}

/* ==========================
   Estilos para modal de Categorías (SweetAlert)
   ========================== */
.swal2-popup .categories-container {
    padding: 0.75rem 1.25rem 1.25rem 1.25rem;
}

.swal2-popup .categories-container .form-control {
    border-radius: 0.5rem;
    border: 1px solid #e6eef7;
    background: #ffffff;
    box-shadow: none;
}

.swal2-popup .categories-container .d-flex.gap-2 {
    gap: 0.5rem;
    align-items: center;
}

.swal2-popup #add-cat-btn,
.swal2-popup #migrate-cats-btn {
    height: 36px;
}

.swal2-popup table.table {
    margin-top: 0.5rem;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.swal2-popup table.table thead th {
    background: transparent;
    color: #374151;
    font-weight: 600;
    border-bottom: none;
}

.swal2-popup table.table tbody tr {
    background: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}

.swal2-popup table.table tbody td {
    vertical-align: middle;
    padding: 0.6rem 0.75rem;
}

/* Mejoras visuales adicionales para el modal de categorías */
.swal2-popup .categories-container .table-responsive {
    max-height: 420px; /* limita la altura del listado y permite scroll */
    overflow-y: auto;
}

.swal2-popup .categories-container .col-md-4 {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.swal2-popup .categories-container .col-md-4 .p-3 {
    flex: 1 1 auto;
}

.swal2-popup .categories-container .p-3 {
    background: #ffffff;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 12px rgba(15,23,42,0.04);
}

.swal2-popup .categories-container .table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}

.swal2-popup .categories-container .table tbody tr td:first-child {
    width: 58px;
}

.swal2-popup #add-cat-btn {
    border-radius: 0.5rem;
}

.swal2-popup #migrate-cats-btn {
    border-radius: 0.5rem;
    background: linear-gradient(90deg,#10b981,#059669);
    color: #fff;
    border: none;
}

.swal2-popup .categories-container .small.text-muted {
    color: #6b7280;
}

.swal2-popup .categories-container input.form-control:focus {
    box-shadow: 0 0 0 0.15rem rgba(59,130,246,0.12);
    border-color: #7ab3ff;
}

/* Ajustes para que el modal respire en pantallas grandes */
@media (min-width: 1200px) {
    .swal2-popup {
        max-width: 1100px;
    }
}

.swal2-popup .btn-edit-category,
.swal2-popup .btn-delete-category {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.swal2-popup .btn-edit-category i,
.swal2-popup .btn-delete-category i {
    font-size: 0.95rem;
}

.swal2-popup .text-center code {
    background: transparent;
    padding: 0;
    color: #e11d48;
    font-weight: 600;
}

.swal2-popup .swal2-html-container {
    padding: 0 !important;
}

/* Responsive inside modal */
@media (max-width: 576px) {
    .swal2-popup table.table tbody td {
        padding: 0.45rem 0.5rem;
        font-size: 0.92rem;
    }
    .swal2-popup .d-flex.gap-2 { flex-direction: column; }
}
}

.swal2-popup {
    border-radius: 1rem;
    font-family: 'Inter', sans-serif;
}

.swal2-title {
    font-size: 1.5rem;
    padding: 1rem;
    margin: 0;
    border-bottom: 2px solid #e5e7eb;
}

/* Remover estilos duplicados y conflictivos */

/* ========================================
   ESTILOS DE NOTIFICACIONES
   ======================================== */

/* Botón de notificaciones con badge */
.notification-button {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Animación de pulso para notificaciones urgentes */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Modal de notificaciones */
.notifications-modal {
    max-height: 80vh;
}

.notifications-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.notification-unread {
    background-color: #eff6ff;
    border-left-color: #3b82f6;
    font-weight: 500;
}

.notification-read {
    background-color: #f9fafb;
    border-left-color: #d1d5db;
    opacity: 0.7;
}

.notification-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.notification-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: white;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.notification-date {
    font-size: 0.8rem;
    color: #6b7280;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Prioridades de notificaciones */
.priority-urgent {
    border-left-color: #dc2626 !important;
    background-color: #fee2e2 !important;
}

.priority-urgent .notification-icon {
    background-color: #dc2626;
    color: white;
}

.priority-high {
    border-left-color: #f59e0b !important;
    background-color: #fef3c7 !important;
}

.priority-high .notification-icon {
    background-color: #f59e0b;
    color: white;
}

.priority-normal {
    border-left-color: #3b82f6 !important;
}

.priority-low {
    border-left-color: #6b7280 !important;
}

/* Formulario de gastos mejorado */
.expense-form h5 {
    color: #1f2937;
    margin: 2rem 0 1rem 0;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
    font-size: 1.1rem;
    font-weight: 700;
}

.expense-form h5:first-of-type {
    margin-top: 1rem;
}

.expense-form h5 i {
    margin-right: 0.5rem;
    color: #3b82f6;
}

.expense-form .form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

.swal2-html-container input[type="text"],
.swal2-html-container input[type="number"],
.swal2-html-container input[type="date"],
.swal2-html-container select,
.swal2-html-container textarea {
    color: #1f2937 !important;
    background-color: #ffffff !important;
    -webkit-text-fill-color: #1f2937 !important;
}

.swal2-html-container input:-webkit-autofill,
.swal2-html-container input:-webkit-autofill:hover,
.swal2-html-container input:-webkit-autofill:focus {
    -webkit-text-fill-color: #1f2937 !important;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    background-color: #ffffff !important;
}

.expense-form .form-check {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    margin-bottom: 1rem;
    border: none;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.expense-form .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0.3rem 0 0 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #3b82f6;
}

.expense-form .form-check-label {
    font-size: 0.95rem;
    color: #1f2937;
    margin: 0;
    cursor: pointer;
    flex: 1;
    line-height: 1.5;
    padding-top: 0;
}

.expense-form .form-check-label strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.expense-form .form-check-label small {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
}

#recurrence-options,
#reminder-options {
    padding: 1.25rem;
    background-color: transparent;
    border-radius: 0;
    border: none;
    margin-top: 1rem;
}

/* Mejorar visualización de conceptos */
.concept-cell {
    max-width: 300px;
}

.concept-cell strong {
    display: block;
    color: #1f2937;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.concept-cell small {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Badge de gasto recurrente */
.badge.bg-info {
    background-color: #06b6d4 !important;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
}

.badge.bg-info i {
    margin-right: 0.35rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Badges de categoría mejorados */
.badge.bg-primary {
    background-color: #3b82f6 !important;
    font-weight: 600;
}

.badge.bg-primary::before {
    content: "📌 ";
}

.badge.bg-warning {
    background-color: #f59e0b !important;
    color: #000 !important;
    font-weight: 600;
}

.badge.bg-warning::before {
    content: "💳 ";
}

.badge.bg-success {
    background-color: #10b981 !important;
    font-weight: 600;
}

.badge.bg-success::before {
    content: "💰 ";
}

.badge.bg-danger {
    background-color: #ef4444 !important;
    font-weight: 600;
}

.badge.bg-danger::before {
    content: "⚠️ ";
}

.badge.bg-secondary {
    background-color: #6b7280 !important;
    font-weight: 600;
}

.badge.bg-secondary::before {
    content: "📋 ";
}

/* Días restantes con estilos */
.days-text {
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Estilos responsivos adicionales */
@media (max-width: 768px) {
    .notifications-list {
        padding: 0.5rem;
    }
    
    .notification-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .notification-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .notification-badge {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
}

