/* Mind Map Page Specific Styles */

/* ── Mode Buttons ───────────────────────────────────────────────────────────── */
.mmb {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: pointer;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    outline: none;
    box-sizing: border-box;
    line-height: 1;
}

.mmb:hover {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.3);
}

.mmb.active {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    border-color: rgba(255,255,255,0.5);
}

/* ── Note Textarea (identisch zu #mindMapTextInput) ─────────────────────────── */
#noteTopicInput {
    width: 100%;
    min-height: 90px;
    max-height: 160px;
    padding: 14px 16px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.5;
    box-shadow: none;
}
#noteTopicInput:hover {
    background-color: var(--input-bg);
    box-shadow: none;
}
#noteTopicInput:focus {
    outline: none;
    background-color: var(--input-bg);
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
    transform: none;
}
#noteTopicInput::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ── Quiz Textarea (identisch zu #mindMapTextInput) ─────────────────────────── */
#quizTopicInput {
    width: 100%;
    min-height: 90px;
    max-height: 160px;
    padding: 14px 16px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.5;
    box-shadow: none;
}

#quizTopicInput:hover {
    background-color: var(--input-bg);
    box-shadow: none;
}

#quizTopicInput:focus {
    outline: none;
    background-color: var(--input-bg);
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
    transform: none;
}

#quizTopicInput::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ── Quiz Type Rows (aufklappbare Fragetypen) ───────────────────────────────── */
.quiz-type-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.12s;
}
.quiz-type-row:hover { background: rgba(255,255,255,0.05); }
.quiz-type-row input[type="checkbox"] {
    width: 16px; height: 16px; flex-shrink: 0;
    accent-color: #a5b4fc; cursor: pointer;
}
.quiz-type-name {
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85);
    white-space: nowrap;
}
.quiz-type-desc {
    font-size: 12px; color: rgba(255,255,255,0.35); flex: 1;
}

/* Badge shown after generation with detected mode */
.mm-mode-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    font-size: 12px;
    font-weight: 500;
    margin-left: 4px;
}
/* ─────────────────────────────────────────────────────────────────────────── */
#mindMapView,
#quizView,
#noteView,
#interrogationView {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow-y: auto;
    padding: 40px 40px 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.mindmap-saved-view,
.mindmap-container {
    width: 100%;
    max-width: none;
    margin: 0;
}

.mindmap-header {
    width: 100%;
    margin-bottom: 12px;
    text-align: left;
    margin-left: 0;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg-primary, #0f0f13);
    padding-top: 4px;
    padding-bottom: 4px;
}

.mindmap-container {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mindmap-container.has-saved-sidebar {
    padding-left: 0;
}

.mindmap-saved-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 270px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(18, 20, 24, 0.72);
    backdrop-filter: blur(8px);
    padding: 10px;
    display: flex;
    flex-direction: column;
    z-index: 8;
}

.mindmap-saved-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mindmap-saved-sidebar-title {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.mindmap-sidebar-new-btn {
    width: 100%;
    margin: 2px 0 10px !important;
}

.mindmap-sidebar-search-wrap {
    margin-bottom: 10px;
}

.mindmap-sidebar-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 2px;
}

.mindmap-sidebar-item {
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 9px 10px;
    color: var(--text-primary);
    cursor: pointer;
}

.mindmap-sidebar-item:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.mindmap-sidebar-item.active {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.09);
}

.mindmap-sidebar-item-title {
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mindmap-sidebar-item-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mindmap-sidebar-empty {
    color: var(--text-secondary);
    font-size: 13px;
    padding: 10px 6px;
}

.mindmap-loading-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
    background: rgba(11, 13, 18, 0.74);
    backdrop-filter: blur(6px);
    border-radius: 18px;
}

.mindmap-loading-overlay.active {
    display: flex;
}

.mindmap-loading-card {
    width: min(460px, 92%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(24, 25, 27, 0.96) 0%, rgba(14, 15, 17, 0.96) 100%);
    padding: 18px 18px 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
    text-align: center;
}

.mindmap-loading-mark {
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
    color: #d6d8dc;
}

.mindmap-loading-mark svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.mindmap-loading-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #f1f2f4;
}

.mindmap-loading-subtitle {
    margin-top: 5px;
    font-size: 13px;
    color: #aeb2bb;
}

.mindmap-loading-progress {
    height: 9px;
    margin-top: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mindmap-loading-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8e949f 0%, #d6d9de 100%);
    transition: width 0.2s ease;
}

.mindmap-loading-percent {
    margin-top: 8px;
    font-size: 12px;
    color: #c8ccd4;
    letter-spacing: 0.05em;
}

body.light-mode .mindmap-loading-overlay {
    background: rgba(241, 243, 248, 0.72);
}

body.light-mode .mindmap-loading-card {
    background: linear-gradient(180deg, rgba(253, 253, 253, 0.97) 0%, rgba(245, 245, 245, 0.97) 100%);
    border-color: rgba(43, 45, 50, 0.16);
}

body.light-mode .mindmap-loading-title {
    color: #2b2d32;
}

body.light-mode .mindmap-loading-subtitle,
body.light-mode .mindmap-loading-percent {
    color: #596072;
}

body.light-mode .mindmap-loading-mark {
    color: #5b6070;
}

.mindmap-header h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.mindmap-saved-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    margin-left: 0;
    width: 100%;
}

.mindmap-saved-header h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.mindmap-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin-bottom: 20px;
}

.mindmap-header-row h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.mindmap-create-btn {
    border-radius: 999px;
    padding: 11px 18px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mindmap-saved-search {
    position: relative;
    width: min(640px, 100%);
    margin-bottom: 20px;
}

.mindmap-saved-search svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.mindmap-saved-search input {
    width: 100%;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    padding: 0 14px 0 38px;
    font-size: 15px;
    outline: none;
}

.mindmap-saved-search input:focus {
    border-color: var(--text-secondary);
}

.mindmap-saved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

.mindmap-saved-card {
    border: 1px solid var(--border-color);
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
}

.mindmap-saved-preview {
    min-height: 155px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.mindmap-topic-chip {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mindmap-saved-footer {
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.28);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mindmap-saved-meta h3 {
    margin: 0;
    font-size: 23px;
    line-height: 1.2;
}

.mindmap-saved-meta p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.mindmap-card-actions {
    position: relative;
    display: flex;
    align-items: center;
}

.mindmap-card-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.mindmap-card-menu-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.mindmap-card-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 146px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--modal-bg);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    padding: 6px;
    display: none;
    z-index: 30;
}

.mindmap-card-menu.open {
    display: block;
}

.mindmap-card-menu button {
    width: 100%;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    font-size: 13px;
    padding: 8px 10px;
    cursor: pointer;
}

.mindmap-card-menu button:hover {
    background: rgba(255, 255, 255, 0.08);
}

.mindmap-card-empty {
    color: var(--text-secondary);
    padding: 18px;
    border: 1px dashed var(--border-color);
    border-radius: 14px;
}

.mindmap-page-content {
    display: flex;
    height: 100%;
    width: 100%;
    background-color: var(--bg-dark);
}

/* Mind Map Internal Sidebar */
.mindmap-sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
}

.mindmap-sidebar-header {
    padding: 20px;
}

.new-mindmap-btn {
    width: 100%;
    padding: 10px 14px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.new-mindmap-btn:hover {
    background-color: var(--bg-hover);
    border-color: var(--text-secondary);
    transform: translateY(-1px);
}

.mindmap-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Mind Map Main Content Area */
.mindmap-main-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
}

.mindmap-page-header {
    padding: 20px 0 10px;
    text-align: center;
    margin-bottom: 10px;
}

.mindmap-page-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.mindmap-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Mind Map Container */
.mindmap-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto 20px;
    min-height: calc(100dvh - 116px);
    background: transparent;
    outline: none;
    overflow: visible;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Input Section Styles */
.mindmap-input-section {
    width: min(980px, 100%);
    max-width: 980px;
    margin: 44px auto 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    align-items: center;
}

.mindmap-upload-area {
    width: 100%;
    max-width: 600px;
    border: 1px dashed rgba(124, 58, 237, 0.35);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(124, 58, 237, 0.04);
}

.mindmap-upload-area:hover {
    border-color: rgba(124, 58, 237, 0.65);
    background: rgba(124, 58, 237, 0.09);
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(124, 58, 237, 0.12);
}

.upload-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 8px;
    color: #a78bfa;
    opacity: 0.9;
}

.upload-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.upload-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.divider-text {
    text-align: center;
    position: relative;
    margin: 10px 0;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border-color);
}

.divider-text::before {
    left: 0;
}

.divider-text::after {
    right: 0;
}

.divider-text span {
    background: var(--bg-dark);
    padding: 0 12px;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Updated Text Area Styles */
#mindMapTextInput {
    width: 100%;
    min-height: 250px;
    padding: 25px;
    background-color: var(--bg-hover);
    border: 2px solid transparent;
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

#mindMapTextInput:hover {
    background-color: var(--input-bg);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

#mindMapTextInput:focus {
    outline: none;
    background-color: var(--bg-sidebar);
    border-color: var(--text-primary);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

#mindMapTextInput::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.generate-mindmap-btn {
    width: 100%;
    max-width: 400px;
    padding: 18px 32px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
    margin-top: 40px;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
}

.generate-mindmap-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124, 58, 237, 0.5);
    opacity: 0.93;
}

.generate-mindmap-btn svg {
    width: 24px;
    height: 24px;
}

/* Mind Map Canvas */
#mindMapCanvas {
    width: 100%;
    flex: 1 1 auto;
    height: clamp(540px, calc(100dvh - 240px), 960px);
    min-height: 540px;
    border: none;
    border-radius: 14px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

#mindMapCanvasContainer {
    flex: 1 1 auto;
    min-height: clamp(540px, calc(100dvh - 220px), 980px);
    padding: 4px 4px 10px 4px;
    border-radius: 18px;
    border: 1.5px solid rgba(99, 102, 241, 0.25);
    background: linear-gradient(145deg, rgba(17,15,40,0.95) 0%, rgba(10,10,20,0.98) 100%);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 8px 32px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

.mindmap-controls-row {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

.mindmap-ai-editor {
    margin-top: 12px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
}

.mindmap-ai-header {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.mindmap-ai-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

#mindMapEditPrompt {
    flex: 1;
    min-height: 68px;
    resize: vertical;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-primary);
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.45;
    outline: none;
}

.mindmap-apply-btn {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--accent-color);
    color: var(--accent-text);
    min-width: 94px;
    padding: 0 14px;
    font-size: 14px;
    cursor: pointer;
}

.mindmap-version-history {
    margin-top: 10px;
}

.mindmap-version-title {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.mindmap-version-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mindmap-version-chip {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 12px;
    padding: 5px 10px;
    cursor: pointer;
}

.mindmap-version-chip.active {
    background: rgba(255, 255, 255, 0.14);
}

.mindmap-change-bubble {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translate(-50%, -14px);
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    color: #f5f5f5;
    background: rgba(17, 19, 23, 0.94);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mindmap-change-bubble.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

@media (max-width: 900px) {
    #mindMapView {
        padding: 16px 16px 22px;
    }

    .mindmap-saved-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mindmap-saved-header h2 {
        font-size: 38px;
    }

    .mindmap-saved-grid {
        grid-template-columns: 1fr;
    }

    .mindmap-saved-meta h3 {
        font-size: 20px;
    }

    .mindmap-input-section {
        margin-top: 24px;
    }

    .mindmap-container.has-saved-sidebar {
        padding-left: 0;
    }

    .mindmap-saved-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 12px;
        max-height: 280px;
    }

    #mindMapCanvas {
        height: clamp(440px, calc(100dvh - 220px), 820px);
        min-height: 440px;
    }

    #mindMapCanvasContainer {
        min-height: clamp(440px, calc(100dvh - 200px), 860px);
    }

    .mindmap-ai-row {
        flex-direction: column;
    }

    .mindmap-apply-btn {
        min-height: 40px;
    }
}

/* Toast animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ─── Interrogation ─────────────────────────────────────────────────────── */
.interrogation-mic-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.07);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin: 20px auto;
}
.interrogation-mic-btn:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.35);
    transform: scale(1.05);
}
.interrogation-mic-btn.recording {
    background: rgba(220, 60, 60, 0.25);
    border-color: rgba(220, 60, 60, 0.7);
    animation: mic-pulse 1.2s ease-in-out infinite;
}
@keyframes mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,60,60,0.3); }
    50% { box-shadow: 0 0 0 14px rgba(220,60,60,0); }
}
#interrogCurrentQuestion {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    padding: 18px 22px;
    background: rgba(255,255,255,0.05);
    border-radius: 14px;
    margin-bottom: 14px;
    border-left: 3px solid rgba(255,255,255,0.25);
}
#interrogTranscript {
    max-height: 220px;
    overflow-y: auto;
    padding: 14px 18px;
    background: rgba(0,0,0,0.15);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.interrog-turn-examiner { color: var(--text-primary); margin-bottom: 8px; }
.interrog-turn-student { color: var(--text-secondary); margin-bottom: 8px; padding-left: 12px; border-left: 2px solid rgba(255,255,255,0.15); }
#interrogProgress {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
#interrogStatus {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    min-height: 20px;
    margin-bottom: 8px;
}
#interrogFeedbackContent {
    line-height: 1.7;
    font-size: 14px;
}
#interrogFeedbackContent h1 { font-size: 20px; margin-bottom: 12px; }
#interrogFeedbackContent h2 { font-size: 16px; margin: 16px 0 8px; color: var(--text-primary); }
#interrogFeedbackContent ul { padding-left: 20px; margin-bottom: 10px; }
#interrogFeedbackContent li { margin-bottom: 6px; }
#interrogEndBtn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    display: block;
    margin: 10px auto 0;
    font-family: inherit;
    transition: all 0.15s;
}
#interrogEndBtn:hover { border-color: rgba(255,255,255,0.4); color: var(--text-primary); }

/* ─── Farb-Akzente für Mindmap / Quiz / Notes ──────────────────────────── */

/* Icon neben dem Titel lila */
#mindMapEditor .section-title-icon,
#quizEditor .section-title-icon,
#noteEditor .section-title-icon {
    color: #a78bfa;
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(124,58,237,0.45));
}

/* Beschreibungstext leicht lila */
#mindMapEditor .mindmap-header > p,
#quizEditor .mindmap-header > p,
#noteEditor .mindmap-header > p {
    color: #c4b5fd;
    opacity: 0.85;
}

/* Mode-Selector Buttons (Study/Balance) leichte lila Border */
#mindMapModeSelector .mm-selector-group,
#quizModeSelector,
#noteModeSelector {
    border-color: rgba(124,58,237,0.25) !important;
}

/* Aktiver mmb-Button lila */
#mindMapModeSelector .mmb.active,
#mindMapModeSelector .mmb:hover,
#quizModeSelector .mmb.active,
#quizModeSelector .mmb:hover,
#noteModeSelector .mmb.active,
#noteModeSelector .mmb:hover,
#noteFormatRow .mmb.active,
#noteFormatRow .mmb:hover {
    background: rgba(124,58,237,0.2) !important;
    border-color: rgba(124,58,237,0.45) !important;
    color: #c4b5fd !important;
}

/* Lib-Picker Button (Aus Bibliothek wählen) */
#mindMapLibraryBtn,
#quizLibraryBtn,
#noteLibraryBtn {
    border-color: rgba(124,58,237,0.35) !important;
}
#mindMapLibraryBtn:hover,
#quizLibraryBtn:hover,
#noteLibraryBtn:hover {
    border-color: rgba(124,58,237,0.65) !important;
    background: rgba(124,58,237,0.09) !important;
    box-shadow: 0 0 14px rgba(124,58,237,0.12) !important;
}

/* Textarea Focus lila */
#mindMapTextInput:focus,
#quizView .mindmap-textarea:focus,
#noteView .mindmap-textarea:focus {
    border-color: rgba(124,58,237,0.6) !important;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15) !important;
}

/* Größen-Selector (Klein/Mittel/Groß) — nur im Mindmap */
#mindMapModeSelector .mm-size-selector {
    border-color: rgba(124,58,237,0.3) !important;
    background: rgba(124,58,237,0.06) !important;
}