/* === session-ui.css ? Mira Dialoge & Kontextmenüs === */
.session-item .hidden,
.session-prompt {display: none; width: 0;}

/* Dialog-Hintergrund */
.mira-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Dialogbox-Stil */
.mira-modal-box {
    background: #fff;
    padding: 1.2em;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 90%;
    max-width: 60dvh;
    font-family: 'Segoe UI', sans-serif;
}

/* Überschrift */
.mira-modal-box h3 {
    margin-top: 0;
    font-size: 1.1em;
    color: #444;
}

/* Text der Frage */
.mira-modal-box p {
    margin: 0.5em 0 1em;
    font-size: 1.1em;
}

/* Eingabefeld */
.mira-modal-box input[type="text"] {
    width: 100%;
    padding: 0.6em;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 1em;
    box-sizing: border-box;
}

/* Buttongruppe */
.mira-modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 0.8em;
}

/* Buttons */
.mira-modal-buttons button {
    flex: 1;
    padding: 0.6em 1em;
    font-size: 0.95em;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

/* Bestätigungsbutton */
.mira-modal-buttons .confirm {
    background: #009688;
    color: white;
}

/* Abbrechen-Button */
.mira-modal-buttons .cancel {
    background: #e0e0e0;
}

.mira-modal-buttons .confirm:hover {
    background: #00796b;
}

.mira-modal-buttons .cancel:hover {
    background: #cfcfcf;
}

/* === Eingabe für system_prompt in Dialogen === */
.mira-prompt-edit {
    border: 1px solid #ccc;
    padding: 0.6em;
    border-radius: 8px;
    min-height: 5em;
    background: #fffdf9;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.1em;
    line-height: 1.4;
    overflow-y: auto;
    white-space: pre-wrap;
    margin-bottom: .5em;
}

.mira-prompt-edit:focus {
    outline: 2px solid #f2c84b;
    outline-offset: 2px;
}