/* ===========================================================================
   BAMBU STUDIO CONTROL CENTER - Toast-Benachrichtigungen
   ===========================================================================
    Version: v2.1.3
   Datei: html/css/toasts.css
   Erstellt: 16.04.2026
   ===========================================================================

   MODUL-FUNKTION
   ---------------
   Stile fuer die Toast-Benachrichtigungen, die am unteren rechten
   Bildschirmrand eingeblendet werden. Vier Varianten: Erfolg (gruen),
   Fehler (rot), Warnung (gelb) und Info (blau). Jeder Toast hat einen
   farbigen linken Rand und ein passendes Icon. Die Ein-/Ausblend-
   Animationen (Slide-In und Fade-Out) sind als CSS-Keyframes definiert.

   =========================================================================== */

/* ===========================================================================
   TOAST-BENACHRICHTIGUNGEN
   =========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 10px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
    font-family: 'Roboto Condensed';
    font-size: 0.9rem;
    font-weight: 400;
    pointer-events: auto;
    max-width: 400px;
    /* Einblend-Animation */
    animation: toastSlideIn 0.3s ease forwards;
}

/* Ausblend-Animation (wird per JS-Klasse aktiviert) */
.toast.fade-out {
    animation: toastFadeOut 0.4s ease forwards;
}

/* Toast-Typen: Farbiger linker Rand */
.toast.toast-success {
    border-left: 4px solid var(--color-success);
}

.toast.toast-error {
    border-left: 4px solid var(--color-danger);
}

.toast.toast-warning {
    border-left: 4px solid var(--color-warning);
}

.toast.toast-info {
    border-left: 4px solid var(--color-info);
}

/* Toast-Icon */
.toast-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

.toast-success .toast-icon { color: var(--color-success); }
.toast-error .toast-icon { color: var(--color-danger); }
.toast-warning .toast-icon { color: var(--color-warning); }
.toast-info .toast-icon { color: var(--color-info); }

/* Toast-Animationen */
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(80px);
    }
}
