/* notifications.css - REPARIERT */

/* Toast Container (Unten Rechts) */
#notification-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99999;
    pointer-events: none; /* Klicks gehen durch leere Bereiche durch */
}

.toast {
    background: rgba(20, 20, 25, 0.95);
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border-left: 4px solid #555;
    font-family: 'Outfit', sans-serif; /* Gleiche Font wie Main */
    backdrop-filter: blur(10px);
    pointer-events: auto;
    
    /* Animation */
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show { opacity: 1; transform: translateX(0); }
.toast.success { border-left-color: #2ecc71; box-shadow: -5px 0 20px rgba(46, 204, 113, 0.2); }
.toast.error { border-left-color: #e10600; box-shadow: -5px 0 20px rgba(225, 6, 0, 0.2); }

/* --- WICHTIG: MODAL OVERLAY (Der Grund für den Freeze) --- */
.modal-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background: rgba(0, 0, 0, 0.85); /* Dunkler Hintergrund */
    backdrop-filter: blur(5px);
    display: flex; 
    justify-content: center; 
    align-items: center;
    z-index: 100000; /* Muss ÜBER der Sidebar liegen */
    opacity: 0;
    animation: fadeInModal 0.3s forwards;
}

@keyframes fadeInModal { to { opacity: 1; } }

.modal-box {
    background: #101015;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    min-width: 400px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    transform: scale(0.9);
    animation: popIn 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn { to { transform: scale(1); } }

.modal-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Modal Buttons */
.modal-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Outfit', sans-serif;
    transition: 0.2s;
}

.modal-btn.confirm { background: #e10600; color: white; }
.modal-btn.confirm:hover { background: #ff2020; box-shadow: 0 0 15px rgba(225, 6, 0, 0.4); }

.modal-btn.cancel { background: transparent; border: 1px solid #444; color: #888; }
.modal-btn.cancel:hover { border-color: white; color: white; }