/* Estilos para el Modal de Notificación de Cambios */

/* Modal responsivo */
.modal-fullscreen-lg-down {
    max-width: 100%;
    margin: 0.5rem;
}

@media (max-width: 991.98px) {
    .modal-fullscreen-lg-down {
        max-width: 100%;
        margin: 0;
    }
}

/* Header del modal con gradiente */
.modal-header.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-bottom: none;
}

/* Lista de cambios */
#lista-cambios li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

#lista-cambios li:last-child {
    border-bottom: none;
}

#lista-cambios .badge {
    font-size: 1.1em;
    padding: 0.5rem 0.75rem;
}

/* Tabla responsiva */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table thead th {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: none;
    font-weight: 600;
    color: #1976d2;
    padding: 1rem 0.75rem;
}

.table tbody tr:hover {
    background-color: rgba(25, 118, 210, 0.05);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Avatar circular */
.avatar-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Badges mejorados */
.badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.badge.bg-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%) !important;
}

/* Botones mejorados */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border: none;
}

/* Vista móvil */
@media (max-width: 991.98px) {
    #clientes-mobile .card {
        transition: all 0.2s ease;
    }
    
    #clientes-mobile .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .avatar-sm {
        width: 50px !important;
        height: 50px !important;
    }
}

/* Formularios mejorados */
.form-select-lg, .form-control-lg {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
}

.form-select-lg:focus, .form-control-lg:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

/* Alertas mejoradas */
.alert {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.alert-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
}

/* Variables de mensaje */
code {
    background: rgba(33, 150, 243, 0.1);
    color: #1976d2;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

/* Footer del modal */
.modal-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
}

/* Tooltips mejorados */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    background: linear-gradient(135deg, #424242 0%, #212121 100%);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal.fade .modal-dialog {
    animation: fadeInUp 0.3s ease-out;
}

/* Scrollbar personalizado */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.25rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Estados de carga */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Efectos de hover para elementos interactivos */
.table tbody tr {
    cursor: pointer;
}

.btn:not(:disabled):hover {
    transform: translateY(-1px);
}

/* Sombras y profundidad */
.card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Colores de estado para vencimientos */
.badge.bg-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
}
