/* views/notificationView.css */

.notification {
    position: fixed;
    /* Exakte Zentrierung in der Mitte des Viewports */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9); /* Startet minimal kleiner für Pop-Effekt */
    
    z-index: 10000; /* Liegt über ALLEM (auch über dem Backdrop) */
    
    /* Styling: Dunkel, kontrastreich und gut lesbar über hellen Karten */
    background-color: rgba(33, 33, 33, 0.95);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    max-width: 80vw; /* Verhindert das Anecken an den Displayrändern auf dem Handy */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    
    /* Flexbox für saubere Aufteilung von Text und Button */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    
    /* Animationen */
    opacity: 0;
    pointer-events: none; /* Klicks gehen im unsichtbaren Zustand durch */
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Modifikator für den sichtbaren Zustand */
.notification--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1); /* Zoomt sanft auf Originalgröße */
}

/* Container für Icon + Text */
.notification__content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Das Icon in der Notification */
.notification__icon {
    margin-right: 8px;
    font-size: 16px;
    flex-shrink: 0;
}

/* NEU: Der Interaktions-Button in der Notification */
.notification__btn {
    background-color: #ff9800; /* Auffälliges Orange für Warnungen/Aktionen */
    color: #111111;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    outline: none;
}

.notification__btn:hover {
    background-color: #ffa726;
}

.notification__btn:active {
    transform: scale(0.96);
}

.notification__btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.5);
}


/* --- MODAL BACKDROP EXTENSIONS --- */

/* NEU: Das Sperr-Overlay im Hintergrund */
.notification-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4); /* Dunkelt die Karte leicht ab */
    z-index: 9999; /* Direkt unter der Notification, aber über der restlichen App */
    
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

/* Aktiv-Zustand für das Sperr-Overlay */
.notification-backdrop--visible {
    opacity: 1;
    pointer-events: auto; /* Blockiert aktiv alle Klicks auf die Karte dahinter */
}

/* NEU: Verhindert das Scrollen oder Verschieben im Hintergrund */
body.body--modal-open {
    overflow: hidden;
    touch-action: none; /* Verhindert das Scrollen auf Touch-Geräten */
}