/**
 * Sentinel Alert System - UI Styles
 * 
 * Estilos para el componente visual del sistema de alertas global.
 */

/* Footer del código de referencia en el Toast */
.sentinel-code-footer {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.7;
    font-size: 0.85em;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* Overrides para Toastr (mayor prominencia del botón cerrar) */
.toast-close-button {
    font-size: 20px !important;
    font-weight: bold !important;
    opacity: 0.8 !important;
}
.toast-close-button:hover {
    opacity: 1 !important;
}

/* Toast Icons (Títulos con iconos) */
.toast-title i {
    margin-right: 8px;
}

/* Specific Toast Flavors (override defaults if needed) */
.toast-success {
    background-color: #28a745 !important;
}
.toast-info {
    background-color: #17a2b8 !important;
}
.toast-warning {
    background-color: #ffc107 !important;
    color: #212529 !important; /* Texto oscuro para fondo amarillo */
}
.toast-warning .sentinel-code-footer {
    border-top-color: rgba(0, 0, 0, 0.15);
}
.toast-error {
    background-color: #dc3545 !important;
}

/* Critical (Sticky) - Visual emphasis */
.toast-critical {
    background-color: #721c24 !important;
    border: 2px solid #f5c6cb;
    animation: pulse-critical 1.5s infinite;
}

@keyframes pulse-critical {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}
