/* ============================================================
   css/portal/toast.css
   E-Mail-Notification-Toast-System (app-weit).
   Phase 4c-0a — extrahiert 1:1 aus navbar.php Block D (Z. 434–530).

   Konsumenten: window.showEmailToast(type, title, message, duration)
                aus dem JS-Block in navbar.php.

   API-Vertrag: das JS baut innerHTML mit Bindestrich-Klassen
                (email-toast-header, email-toast-icon, …) —
                BEM-Umbenennung würde die Toasts ungestylt rendern.
   ============================================================ */

#emailToastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 400px;
}
.email-toast {
    pointer-events: auto;
    background: #001830;
    border: 1px solid rgba(0, 178, 255, 0.2);
    border-radius: 8px;
    padding: 14px 16px 10px;
    color: #e0e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    animation: toastSlideIn 0.3s ease-out;
    border-left: 4px solid #28a745;
}
.email-toast.error {
    border-left-color: #dc3545;
}
.email-toast.fade-out {
    animation: toastFadeOut 0.3s ease-in forwards;
}
.email-toast-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.email-toast-icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    margin-top: 1px;
}
.email-toast.error .email-toast-icon { color: #dc3545; }
.email-toast:not(.error) .email-toast-icon { color: #28a745; }
.email-toast-content {
    flex: 1;
    min-width: 0;
}
.email-toast-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    word-break: break-word;
}
.email-toast-message {
    font-size: 0.8rem;
    color: #8899aa;
    margin-top: 4px;
    line-height: 1.3;
    word-break: break-word;
}
.email-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #556677;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.email-toast-close:hover { color: #e0e8f0; }
.email-toast-timer {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 178, 255, 0.5);
    animation: toastTimer linear forwards;
}
.email-toast.error .email-toast-timer {
    background: rgba(220, 53, 69, 0.5);
}
@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toastFadeOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(100%); }
}
@keyframes toastTimer {
    from { width: 100%; }
    to   { width: 0%; }
}
