/* Dialoge — Iframe, Werkzeugleiste, Modal
   Teil von style.css (W2, Schnitt E — AK 60: keine Datei ueber 200 Zeilen).
   Einbindungsreihenfolge zaehlt: siehe index.html. */

/* ============ IFRAME ============ */


/* ============ TOOLBAR ============ */
.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

/* ============ MODAL ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
}

.modal h2 { margin-bottom: 16px; font-size: 18px; color: var(--text-primary); font-weight: 700; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }


/* ============ TOASTS ============ */
/* Zuvor als inline cssText in store.js gesetzt; die dort genannte Animation
   slideInRight existierte in style.css nicht und lief ins Leere. */
.solar-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 10000;
    max-width: 400px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    opacity: 1;
    transition: opacity 0.3s ease;
    animation: solarToastEin 0.3s ease;
}

@keyframes solarToastEin {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

.solar-toast-info { background-color: #3b82f6; }
.solar-toast-success { background-color: #22c55e; }
.solar-toast-warn { background-color: #f59e0b; }
.solar-toast-danger { background-color: #ef4444; }
.solar-toast-verblasst { opacity: 0; }

.solar-toast-aktion {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .solar-toast { animation: none; transition: none; }
}
