/* =============================================================
   MODALS -- Overlays, Modals, Confirm (Natur-Thema)
   ============================================================= */

.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(59, 48, 40, 0.45);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: none; justify-content: center; align-items: center;
    z-index: 2000; padding: 1rem;
}
.modal-overlay.active { display: flex; }

.modal-content {
    background: var(--card-bg); padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(59, 48, 40, 0.25);
    width: 100%; max-width: 600px;
    max-height: 85vh; overflow-y: auto;
    animation: scaleIn 0.2s ease both;
}
.modal-content.modal-sm { max-width: 400px; }
.modal-content.modal-lg { max-width: 900px; }

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.25rem;
}
.modal-header h2 { margin: 0; color: var(--text-dark); }

.modal-close {
    font-size: 1.5rem; color: var(--accent-light); cursor: pointer;
    background: none; border: none; padding: 0.25rem;
    line-height: 1; border-radius: 6px; transition: all 0.15s;
}
.modal-close:hover { color: var(--danger); background: #f5e0dc; }

.modal-body { margin-bottom: 1rem; }

.modal-footer {
    display: flex; justify-content: flex-end; gap: 0.5rem;
    padding-top: 1rem; border-top: 1px solid var(--border-color);
}

/* Toast-System */
#toast-container {
    position: fixed; top: 68px; right: 16px; z-index: 99999;
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
}
.toast {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(59, 48, 40, 0.15);
    min-width: 260px; max-width: 380px;
    pointer-events: auto;
    transform: translateX(120%); opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-left: 4px solid var(--accent-light);
    font-size: 0.9rem; color: var(--text-dark);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.hide { transform: translateX(100%); opacity: 0; }
.toast-success { border-left-color: var(--success); }
.toast-error   { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-info    { border-left-color: var(--info); }
