/* ===== SISTEMA DE ALERTAS ESTÁNDAR INKABOX ===== */

/* Variables de colores para alertas */
:root {
    --alert-success-bg: rgba(16, 185, 129, 0.1);
    --alert-success-border: rgba(16, 185, 129, 0.3);
    --alert-success-text: #065f46;
    --alert-success-icon: #10b981;
    
    --alert-warning-bg: rgba(245, 158, 11, 0.1);
    --alert-warning-border: rgba(245, 158, 11, 0.3);
    --alert-warning-text: #92400e;
    --alert-warning-icon: #f59e0b;
    
    --alert-danger-bg: rgba(239, 68, 68, 0.1);
    --alert-danger-border: rgba(239, 68, 68, 0.3);
    --alert-danger-text: #991b1b;
    --alert-danger-icon: #ef4444;
    
    --alert-info-bg: rgba(59, 130, 246, 0.1);
    --alert-info-border: rgba(59, 130, 246, 0.3);
    --alert-info-text: #1e40af;
    --alert-info-icon: #3b82f6;
}

/* ===== ALERTAS ESTÁTICAS ===== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.alert i {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.alert-success {
    background: var(--alert-success-bg);
    border-color: var(--alert-success-border);
    color: var(--alert-success-text);
}

.alert-success i {
    color: var(--alert-success-icon);
}

.alert-warning {
    background: var(--alert-warning-bg);
    border-color: var(--alert-warning-border);
    color: var(--alert-warning-text);
}

.alert-warning i {
    color: var(--alert-warning-icon);
}

.alert-danger {
    background: var(--alert-danger-bg);
    border-color: var(--alert-danger-border);
    color: var(--alert-danger-text);
}

.alert-danger i {
    color: var(--alert-danger-icon);
}

.alert-info {
    background: var(--alert-info-bg);
    border-color: var(--alert-info-border);
    color: var(--alert-info-text);
}

.alert-info i {
    color: var(--alert-info-icon);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success { 
    border-left-color: var(--alert-success-icon); 
}

.toast.warning { 
    border-left-color: var(--alert-warning-icon); 
}

.toast.error { 
    border-left-color: var(--alert-danger-icon); 
}

.toast.info { 
    border-left-color: var(--alert-info-icon); 
}

.toast i {
    font-size: 18px;
    flex-shrink: 0;
}

.toast.success i { color: var(--alert-success-icon); }
.toast.warning i { color: var(--alert-warning-icon); }
.toast.error i { color: var(--alert-danger-icon); }
.toast.info i { color: var(--alert-info-icon); }

.toast-message {
    flex: 1;
    color: #374151;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    border-radius: 4px;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #6b7280;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
    
    .alert {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .alert i {
        font-size: 16px;
    }
}