* { box-sizing: border-box; }

:root {
    --font-family-base: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.5;

    --color-primary: #1e3c72;
    --color-primary-strong: #122a52;
    --color-secondary: #e67e22;
    --color-info: #3498db;
    --color-success: #27ae60;
    --color-warning: #f39c12;
    --color-danger: #c0392b;

    --color-bg-app: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --color-surface: #ffffff;
    --color-surface-soft: #f8fbff;
    --color-border: #d9e4f5;
    --color-text: #243447;
    --color-text-muted: #4b5563;
    --color-on-primary: #ffffff;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;

    --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.08);
    --shadow-md: 0 8px 20px rgba(16, 24, 40, 0.12);
    --shadow-lg: 0 14px 30px rgba(0, 0, 0, 0.28);
    --focus-ring: 0 0 0 3px rgba(52, 152, 219, 0.35);
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overscroll-behavior: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

/* YENİ EKLENEN KAPSÜL (CHIP) TASARIMLARI (V4.4) */
.chip-container { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.chip { padding: 6px 12px; background: #f1f2f6; border: 1px solid #ccc; border-radius: 20px; font-size: 0.8rem; cursor: pointer; color: #333; transition: 0.2s; font-weight: 500; }
.chip:hover { background: #e8f4f8; border-color: #3498db; }
.chip.active { background: #e67e22; color: #fff; border-color: #e67e22; box-shadow: 0 2px 5px rgba(230,126,34,0.3); font-weight: bold; }
.custom-input { width: 100%; margin-top: 8px; padding: 8px; font-size: 0.85rem; border: 1px dashed #3498db; border-radius: 8px; box-sizing: border-box; }

/* ANA TASARIM KODLARI (HİÇBİR ŞEY EKSİLMEDİ) */
body { font-family: var(--font-family-base); font-size: var(--font-size-base); line-height: var(--line-height-base); background: var(--color-bg-app); color: #fff; text-align: center; margin: 0; display: flex; justify-content: center; align-items: center; min-height: 100vh; width: 100%; max-width: 100vw; overflow-x: hidden; box-sizing: border-box; }
.container { background: rgba(255,255,255,0.95); color: var(--color-text); width: 95%; max-width: 480px; padding: var(--space-5); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin-bottom: var(--space-5); position: relative; box-sizing: border-box; overflow-x: hidden; }
h1, h2, h3, h4 { margin-top: 0; color: var(--color-primary); line-height: 1.35; }
input, select, button, textarea { width: 100%; min-height: 44px; padding: 12px; margin-bottom: 8px; border-radius: var(--radius-sm); border: 1px solid #ccc; box-sizing: border-box; font-size: 1rem; font-family: inherit; line-height: 1.45; }
input, select, textarea { color: var(--color-text); background: var(--color-surface); border-color: var(--color-border); }
button { background: var(--color-primary); color: var(--color-on-primary); border: none; font-weight: bold; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease, background-color 0.2s ease; display: flex; justify-content: center; align-items: center; gap: 8px; box-shadow: var(--shadow-sm); }
button, .chip, .role-btn, .grade-btn, .nav-item, .auth-switch { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:hover { opacity: 0.95; transform: translateY(-1px); box-shadow: var(--shadow-md); }
button:active { transform: translateY(0) scale(0.98); box-shadow: var(--shadow-sm); }
button:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}
button.green { background: var(--color-success); }
button.orange { background: var(--color-secondary); }
button.red { background: var(--color-danger); }
button.outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); box-shadow: none; }
button.gold { background: #f1c40f; color:#333; }
button.blue { background: var(--color-info); }

.ui-btn-compact { min-height: 44px; padding: 8px 10px; font-size: 0.84rem; }
.ui-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--space-3); }
.ui-input { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.ui-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
}
.state-success { background: #e9f8ef !important; border-color: #a9e4bf !important; color: #1f7a43 !important; }
.state-warning { background: #fff5e8 !important; border-color: #f7cf92 !important; color: #9b5d00 !important; }
.state-error { background: #feeceb !important; border-color: #f3b7b2 !important; color: #8e2f26 !important; }
.state-info { background: #eaf5ff !important; border-color: #a7d0f6 !important; color: #155b94 !important; }
.state-success::before,
.state-warning::before,
.state-error::before,
.state-info::before {
    margin-right: 6px;
    font-weight: 700;
}
.state-success::before { content: "✅"; }
.state-warning::before { content: "⚠️"; }
.state-error::before { content: "⛔"; }
.state-info::before { content: "ℹ️"; }

.screen-primary-title { color: var(--color-secondary) !important; margin-top: 0 !important; }

#app-loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #1e3c72; z-index: 100000; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; }
#app-loading-overlay .app-loading-spinner { width: 48px; height: 48px; border: 4px solid rgba(255,255,255,0.25); border-top-color: #e67e22; border-radius: 50%; animation: app-spin 0.8s linear infinite; }
#app-loading-overlay .app-loading-text { margin-top: 16px; font-size: 1rem; opacity: 0.85; }
@keyframes app-spin { to { transform: rotate(360deg); } }

#intro-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #1e3c72; z-index: 99999; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; padding: 20px; box-sizing: border-box; text-align: center; transition: opacity 0.5s; }
.intro-slide { display: none; flex-direction: column; align-items: center; animation: fadeIn 0.5s; }
.intro-slide.active { display: flex; }
.intro-icon { font-size: 5rem; margin-bottom: 20px; text-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.intro-title { font-size: 1.8rem; font-weight: bold; color: #f1c40f; margin-bottom: 15px; }
.intro-text { font-size: 1.1rem; line-height: 1.5; margin-bottom: 30px; max-width: 400px; }
.intro-dots { display: flex; gap: 10px; margin-bottom: 30px; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.3); border-radius: 50%; transition: 0.3s; }
.dot.active { background: #f1c40f; transform: scale(1.2); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

#instructor-panel, #instructor-panel h4, #instructor-panel label { color: #ffffff !important; }
#instructor-panel { background: #1e3c72 !important; border: 2px solid #e67e22; padding: 15px; border-radius: 10px; margin-top: 15px; }

.auth-form { background: #fff; padding: 20px; border-radius: 12px; margin: 10px auto 0; text-align: left; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #eee; max-width: 100vw; overflow-x: hidden; box-sizing: border-box; }
.auth-switch { color: #e67e22; font-size: 0.85rem; text-decoration: underline; cursor: pointer; text-align: center; display: block; margin-top: 10px; font-weight: bold; }

.role-toggle { display: flex; background: #e8f4f8; border-radius: 10px; padding: 5px; margin-bottom: 20px; box-shadow: inset 0 2px 5px rgba(0,0,0,0.05); }
.role-btn { flex: 1; padding: 12px; border-radius: 8px; font-weight: bold; cursor: pointer; text-align: center; color: #1e3c72; transition: 0.3s; font-size: 0.95rem; }
.role-btn.active { background: #1e3c72; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }

.grade-btn { flex: 1; min-width: 30%; background: #f1f2f6; color: #333; border: 2px solid #ddd; padding: 12px 5px; border-radius: 8px; text-align: center; font-weight: bold; cursor: pointer; font-size: 0.85rem; transition: 0.2s; }
.grade-btn:hover { background: #e8f4f8; border-color: #3498db; }
.grade-btn.selected { background: #e67e22; color: #fff; border-color: #e67e22; box-shadow: 0 4px 10px rgba(230,126,34,0.3); }

.screen { display: none; width: 100%; max-width: 100vw; overflow-x: hidden; box-sizing: border-box; }
.content-card { max-width: 100vw; overflow-x: hidden; box-sizing: border-box; margin: 0 auto; }
.screen * { box-sizing: border-box; min-width: 0; }
.screen input,
.screen select,
.screen textarea,
.screen button,
.screen img,
.screen .dropdown-wrapper,
.screen .filter-section,
.screen .auth-form {
    max-width: 100%;
}
.active { display: block; }
.hidden-panel { display: none !important; }

#lobby-players-area { background: #e8f4f8; padding: 10px; border-radius: 8px; border: 2px dashed #3498db; margin-top: 15px; text-align: left; }
.player-badge { display: inline-block; background: #3498db; color: white; padding: 5px 10px; border-radius: 15px; font-size: 0.8rem; margin: 3px; font-weight: bold; }

#soru-haritasi-panel { margin-bottom: 10px; border-radius: 8px; border: 1px solid #bdc3c7; overflow: hidden; }
.soru-haritasi-header { width: 100%; text-align: left; background: #ecf0f1; color: #2c3e50; font-weight: bold; padding: 10px 12px; border: none; border-radius: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin: 0; font-size: 0.95rem; }
.soru-haritasi-header:hover { background: #dfe6e9; }
#question-navigator { grid-template-columns: repeat(5, 1fr); gap: 6px; display: grid; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; padding: 0 8px; background: #f0f4f8; }
#question-navigator.show-map { max-height: 2000px; padding: 10px 8px; }
.nav-box { width: 35px; height: 35px; display: flex; justify-content: center; align-items: center; background: #eee; border: 1px solid #ccc; border-radius: 6px; font-size: 0.85rem; font-weight: bold; color:#333; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
@keyframes nav-pulse { 0%,100% { box-shadow: 0 0 6px rgba(52,152,219,0.6); } 50% { box-shadow: 0 0 14px rgba(52,152,219,1); } }
.nav-box.current { border: 3px solid #3498db; transform: scale(1.1); background: #e8f4fd; color: #1a6fa8; box-shadow: 0 0 8px rgba(52,152,219,0.7); animation: nav-pulse 1.2s ease-in-out infinite; }
.nav-box.correct { background: #27ae60 !important; color: white !important; }
.nav-box.wrong { background: #c0392b !important; color: white !important; }
.nav-box.answered { background: #27ae60; color: white; }

.dropdown-wrapper { position: relative; width: 100%; margin-bottom: 10px; }
.dropdown-trigger { background: #fff; color: #333; border: 2px solid #e67e22; padding: 12px; border-radius: 8px; cursor: pointer; font-weight: bold; text-align: left; }
.dropdown-content { display: none; position: absolute; top: 100%; left: 0; z-index: 1000; background-color: #ffffff; width: 100%; border: 2px solid #1e3c72; border-radius: 8px; max-height: 200px; overflow-y: auto; margin-top: 5px; box-sizing: border-box; box-shadow: 0 5px 15px rgba(0,0,0,0.1); } 
.dropdown-content.show { display: block; }

.action-picker {
    margin-bottom: 8px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    background: #fff;
}
.action-picker summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px;
    font-weight: 700;
    font-size: 0.9rem;
}
.action-picker summary::-webkit-details-marker { display: none; }
.action-picker[open] summary span:last-child { transform: rotate(180deg); }
.action-picker summary span:last-child { transition: transform 0.2s ease; }
.action-picker-options {
    border-top: 1px solid rgba(255,255,255,0.25);
    display: grid;
    gap: 6px;
    padding: 8px;
    background: rgba(0,0,0,0.04);
}
.action-picker-options button {
    margin: 0;
    font-size: 0.84rem;
    padding: 10px;
    border-radius: 8px;
    justify-content: flex-start;
}
.action-picker-green summary { background: #27ae60; color: #fff; }
.action-picker-green .action-picker-options button { background: #1f8b4d; color: #fff; }
.action-picker-blue summary { background: #3498db; color: #fff; }
.action-picker-blue .action-picker-options button { background: #2c80b9; color: #fff; }

input[type="checkbox"] { width: auto !important; margin: 0 10px 0 0 !important; transform: scale(1.3); cursor: pointer; }
.checkbox-item { display: flex; align-items: center; justify-content: flex-start; padding: 12px; border-bottom: 1px solid #eee; cursor: pointer; } 
.checkbox-item label { color: #1e3c72; font-weight: 600; flex: 1; text-align: left; margin:0; cursor: pointer; }

.subject-row { background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%); border: 1px solid #d9e4f5; border-radius: 14px; padding: 11px; margin-bottom: 10px; box-shadow: 0 6px 16px rgba(30, 60, 114, 0.06); }
.subject-row-main { display: flex; align-items: center; gap: 8px; color: #1e3c72; font-weight: 700; text-align: left; }
.subject-row-collapse-btn {
    width: 100%;
    margin: 0;
    background: #eef4fb;
    color: #1e3c72;
    border: 1px solid #d4e1ee;
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}
.subject-row-name { line-height: 1.3; text-align: left; }
.subject-row-accordion {
    display: none;
    margin-top: 8px;
    border: 1px dashed #d5deea;
    border-radius: 10px;
    background: #fff;
    padding: 8px;
}
.subject-row-accordion.open { display: block; }
.subject-row input[type="text"] { margin: 0; background: #fff; border-color: #d9e2ef; font-size: 0.85rem; }
.subject-row-topics { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; padding-left: 2px; }
.subject-topic-chip {
    display: inline-flex;
    align-items: center;
    background: #eaf2ff;
    color: #1e3c72;
    border: 1px solid #c9d9f3;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    text-align: left;
    max-width: 100%;
}
.subject-row-empty-topic { margin: 0; font-size: 0.75rem; color: #73829b; }

.saved-library-panel {
    background: linear-gradient(165deg, #10203a 0%, #1d3763 100%);
    color: #e5edff;
    border: 1px solid #294a78;
    border-radius: 16px;
    padding: 14px;
    margin-top: 16px;
    margin-bottom: 0;
    text-align: left;
    box-shadow: 0 12px 26px rgba(17, 34, 61, 0.28);
}
.saved-library-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.saved-library-panel h4 { color: #eaf2ff; }
.saved-library-panel-description { margin: 0 0 12px 0; color: #c5d7f7; font-size: 0.8rem; line-height: 1.4; }
.saved-library-link-btn {
    width: auto;
    padding: 6px 10px;
    font-size: 0.78rem;
    border-radius: 8px;
    border: 1px solid #8eb4ff;
    background: rgba(255,255,255,0.08);
    color: #eef4ff;
    font-weight: 700;
    cursor: pointer;
}
.saved-library-course-item {
    background: #1b2b44;
    border: 1px solid #2f4668;
    border-radius: 10px;
    padding: 9px 10px;
    margin-bottom: 6px;
    color: #eaf2ff;
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.saved-library-course-btn {
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.saved-library-empty { margin: 0; color: #b7c7e6; font-size: 0.82rem; }
.saved-library-red-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #e74c3c;
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
}

.list-item { background: #f9f9f9; border: 1px solid #eee; padding: 10px; margin-bottom: 8px; border-radius: 8px; position: relative; }
.list-item b { color: #1e3c72; }
.list-empty-message { text-align: center; color: #4b5563; }
.list-item-student-card { border: 2px solid #e67e22; background: #fff; }
.library-report-btn { position: absolute; top: 6px; right: 6px; width: auto; padding: 2px 7px; font-size: 0.7rem; background: transparent; border: 1px solid #e0e0e0; color: #8b8b8b; border-radius: 4px; cursor: pointer; line-height: 1.4; }
.list-item-header-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; padding-right: 36px; }
.list-item-subject-badge { background: #1e3c72; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.list-item-topic-text { color: #e67e22; margin-left: 5px; }
.list-item-source-text { color: #666; }
.list-item-question-image { width: 100%; border-radius: 5px; margin-top: 5px; }
.list-item-solution-box { display: none; margin-top: 10px; padding: 10px; background: #e8f4f8; border-radius: 8px; font-size: 0.8rem; color: #333; text-align: left; }
.list-item-review-wrap { margin-top: 10px; }
.list-item-review-label { font-size: 0.72rem; font-weight: 700; color: #8e44ad; display: block; margin-bottom: 4px; }
.list-item-review-select { font-weight: 700; border-color: #8e44ad; color: #8e44ad; width: 100%; }
.list-item-action-row { display: flex; gap: 5px; margin-top: 10px; }
.list-item-review-btn { flex: 2; font-size: 0.8rem; border-color: #27ae60; color: #27ae60; }
.list-item-delete-btn { flex: 1; font-size: 0.8rem; border-color: #c0392b; color: #c0392b; }
.review-reminder { font-size: 0.75rem; }
.review-reminder-due { color: #e74c3c; font-weight: 700; }
.review-reminder-soon { color: #e67e22; }
.review-reminder-later { color: #8e44ad; }

/* Ana ekran, soru çözüm ve kütüphane için ortak görünüm paketi */
.ui-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
    gap: var(--space-2);
}

.ui-alert-grid {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.ui-alert-card {
    flex: 1;
    color: #fff;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.12s ease, box-shadow 0.2s ease;
    text-align: left;
    border: 1px solid transparent;
}
.ui-alert-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.ui-alert-card b { display: inline-block; font-size: 1.02rem; line-height: 1.35; margin-bottom: 2px; }
.ui-alert-card small { line-height: 1.35; display: inline-block; }
.ui-alert-card-danger { background: var(--color-danger); box-shadow: 0 4px 10px rgba(231,76,60,0.28); }
.ui-alert-card-warning { background: var(--color-warning); box-shadow: 0 4px 10px rgba(243,156,18,0.3); }

.ui-panel-soft {
    background: #e8f4f8;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    border: 1px dashed var(--color-info);
}
.ui-panel-warm {
    background: #fdf2e9;
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    border: 2px solid var(--color-secondary);
}
.ui-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
    gap: var(--space-2);
}
.ui-panel-header h4 { margin: 0; color: var(--color-secondary); }
.ui-panel-toggle-tag {
    color: var(--color-secondary);
    font-size: 0.8rem;
    font-weight: bold;
    background: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid var(--color-secondary);
}

.ui-input-row { display: flex; gap: var(--space-2); }
.ui-input-row > * { margin: 0; }

.ui-mini-title {
    font-size: 0.9rem;
    margin-top: 0;
    color: #333;
    text-align: left;
}

#screen-list #list-content {
    max-height: min(54vh, 460px);
    overflow-y: auto;
    text-align: left;
    color: var(--color-text);
    padding-bottom: var(--space-5);
    border-radius: var(--radius-sm);
}

#screen-game #question-map-accordion {
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid #bdc3c7;
    overflow: hidden;
}

.ui-game-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.ui-absolute-icon-btn {
    position: absolute;
    top: 0;
    background: transparent;
    border: none;
    width: auto;
    padding: 0;
    cursor: pointer;
    box-shadow: none;
}
.ui-absolute-icon-btn.report { left: 0; font-size: 1.35rem; color: var(--color-danger); }
.ui-absolute-icon-btn.fav { right: 0; font-size: 1.6rem; color: #8f99a8; }

.ui-question-block {
    position: relative;
    margin-top: 15px;
    min-height: 40px;
}
.ui-question-title {
    text-align: left;
    line-height: 1.5;
    margin: 10px 0 0;
    padding: 0 40px;
    color: var(--color-primary-strong);
    font-size: 1.02rem;
}

.library-screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: var(--space-2);
}
.library-screen-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-align: left;
    margin-top: 0;
}
.library-selected-course-label {
    margin: 10px 0 0;
    text-align: left;
    font-size: 0.8rem;
    color: #1e3c72;
    font-weight: 700;
}

.timer-container { display: flex; justify-content: space-between; gap: 10px; }
.timer-box { flex: 1; padding: 8px 15px; border-radius: 8px; font-weight: bold; color: #fff; display: none; }

#notification-toast { position: fixed; top: 20px; right: 20px; background: #2c3e50; color: white; padding: 15px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 9999; transform: translateX(150%); transition: 0.5s; border-left: 5px solid #e67e22; max-width: 250px; display: flex; align-items: center; gap: 10px; }
#notification-toast.show { transform: translateX(0); }

.eval-card { background: #fff; border-left: 5px solid #27ae60; padding: 12px; margin-bottom: 10px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); color: #333; text-align: left; }

.abcde-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 10px; }
.abcde-btn { background: #f1f2f6; color: #1e3c72; padding: 10px 0; border-radius: 6px; border: 2px solid #ddd; font-weight: bold; font-size: 1rem; cursor: pointer; transition: 0.2s; }
.abcde-btn:hover { background: #e8f4f8; border-color: #3498db; }
.abcde-btn.correct { background: #27ae60 !important; color: white !important; border-color: #27ae60 !important; }
.abcde-btn.wrong { background: #c0392b !important; color: white !important; border-color: #c0392b !important; }

.opt-btn { background: #fff; color: #333; border: 2px solid #ddd; margin-bottom: 8px; text-align: left; }
.opt-btn.selected { background: #e67e22 !important; color: #fff !important; border-color: #e67e22; }
.opt-btn.correct { background: #27ae60 !important; color: #fff !important; border-color: #27ae60 !important; }
.opt-btn.wrong { background: #c0392b !important; color: #fff !important; border-color: #c0392b !important; }

#screen-game.trial-list-mode {
    text-align: left;
}
#screen-game.trial-list-mode #opts-area {
    margin-top: 0;
    display: grid;
    gap: 12px;
}
.trial-list-card {
    background: #fff;
    border: 1px solid #e6ebf3;
    border-radius: 10px;
    padding: 10px;
}
.trial-list-title {
    margin: 0 0 8px 0;
    color: #1e3c72;
    font-size: 0.95rem;
    line-height: 1.45;
}
.trial-list-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}
.trial-list-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 8px;
}
.trial-list-solution {
    margin-top: 10px;
    padding: 10px;
    background: #e8f4f8;
    border-radius: 8px;
    border: 1px solid #3498db;
    text-align: left;
    color: #1e3c72;
    font-size: 0.88rem;
}

.gpu-transition {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.library-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 12000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

.library-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.library-modal {
    width: 100%;
    max-height: 70vh;
    height: 70vh;
    background: var(--color-surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.library-modal-overlay.open .library-modal {
    transform: translateY(0);
}

.library-modal-overlay.library-modal-overlay-fullscreen {
    align-items: stretch;
}

.library-modal-overlay.library-modal-overlay-fullscreen .library-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
}

.library-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #e8ebf0;
    background: var(--color-surface-soft);
}

.library-modal-title-btn {
    width: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    text-align: left;
    font-weight: 700;
    cursor: pointer;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.library-modal-title-btn:hover {
    color: #294f8f;
}

.library-modal-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.library-modal-toggle-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-primary);
}

.library-modal-info-btn {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #c8d8ea;
    background: #ffffff;
    color: var(--color-primary);
    font-size: 0.78rem;
    line-height: 1;
    font-weight: 700;
}

.library-modal-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
}

.library-modal-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.library-modal-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #dbe4ef;
    border-radius: 999px;
    transition: 0.2s;
}

.library-modal-slider::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.library-modal-switch input:checked + .library-modal-slider {
    background: #2ecc71;
}

.library-modal-switch input:checked + .library-modal-slider::before {
    transform: translateX(16px);
}

.library-modal-close {
    width: auto;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: #ecf0f1;
    color: #2c3e50;
    font-size: 0.9rem;
    margin: 0;
    min-height: 36px;
}

.library-modal-content {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
    min-height: 140px;
}

.library-modal-library-section.collapsed {
    display: none;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}

.library-card {
    border: 1px solid #d8deea;
    background: var(--color-surface);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: left;
    font-weight: 700;
    cursor: pointer;
    min-height: 54px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.library-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.09);
}

.library-card.add-card {
    border: 1px dashed #3498db;
    color: #3498db;
    justify-content: center;
    text-align: center;
}

.library-card-delete {
    width: auto;
    margin: 0;
    padding: 3px 7px;
    font-size: 0.8rem;
    border-radius: 7px;
    background: #f8d7da;
    color: #a52834;
}

.library-back-btn {
    width: auto;
    margin: 0 0 10px 0;
    padding: 8px 10px;
    font-size: 0.85rem;
    background: #ecf0f1;
    color: #2c3e50;
}

.library-topic-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.library-topic-item {
    width: 100%;
    border: 1px solid #d8deea;
    background: var(--color-surface);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: left;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.library-topic-add {
    width: 100%;
    border: 1px dashed #3498db;
    background: #f8fbff;
    color: #3498db;
    border-radius: var(--radius-sm);
    padding: 10px;
    font-weight: 700;
}

@keyframes solutionFadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.solution-revealed { animation: solutionFadeIn 0.45s ease forwards; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.ready-source-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.ready-source-card { background: #fff; border: 1px solid #d7c5f5; border-radius: 8px; padding: 6px; cursor: pointer; transition: 0.2s; text-align: left; }
.ready-source-card:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.08); border-color: #9b59b6; }
.ready-source-card img { width: 100%; height: 64px; object-fit: cover; border-radius: 6px; margin-bottom: 4px; background: #f5f5f5; }
.ready-source-name { font-size: 0.72rem; color: #4a2a73; font-weight: 700; line-height: 1.2; word-break: break-word; }

.filter-section { background: #fdfdfd; border: 1px solid #e0e0e0; padding: 10px; border-radius: 8px; margin-bottom: 15px; }
.filter-section select { font-size: 0.85rem; padding: 8px; margin-bottom: 5px; border-color: #3498db; color: #1e3c72; font-weight: bold; }

/* 🚨 V5.0 KART KONTROL PANELİ (KAYDIRMA YERİNE GEÇEN KİBAR BUTONLAR ZEMİNİ) 🚨 */
.card-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #eee;
}

.card-action-btn {
    flex: 1;
    padding: 15px 10px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.1s, box-shadow 0.1s;
}

.card-action-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Çözüm ve Kaynakça sekmeleri (Tab Butonları - Korundu) */
#swipe-solution-panel button.active {
    color: #1e3c72 !important;
    border-bottom: 3px solid #1e3c72 !important;
    font-weight: bold;
}
#swipe-solution-panel button {
    color: #aaa;
    border-bottom: 3px solid transparent;
}

/* SORU HARİTASI (Question Map) */
.map-accordion { width: 100%; text-align: center; }
.q-box { width: 35px; height: 35px; display: flex; justify-content: center; align-items: center; background: #95a5a6; border-radius: 6px; margin: 3px; font-size: 0.85rem; font-weight: bold; color: #fff; cursor: pointer; transition: transform 0.15s; }
.q-box.solved { background: #27ae60; }
.q-box.active { background: #2980b9; transform: scale(1.1); }
#question-map-content { flex-wrap: wrap; gap: 4px; padding: 8px; background: #f0f4f8; overflow-x: hidden; }

/* BULUT SORU BADGE */
.cloud-badge { background: #3498db; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; cursor: help; margin-left: 5px; display: inline-block; }

/* ALT NAVİGASYON ÇUBUĞU */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 480px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 9000;
    box-sizing: border-box;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px 0;
    border-radius: 10px;
    transition: 0.2s;
    min-width: 0;
    position: relative;
}

.nav-item:active { transform: scale(0.92); }

.nav-icon { font-size: 1.4rem; line-height: 1; }

.nav-label {
    font-size: 0.62rem;
    font-weight: 600;
    color: #999;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
}

.nav-item.active .nav-label { color: #1e3c72; }
.nav-item.active .nav-icon { filter: drop-shadow(0 2px 4px rgba(30,60,114,0.3)); }
.nav-reminder-dot {
    position: absolute;
    top: 2px;
    right: 10px;
    display: inline-flex;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
}
.nav-added-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e74c3c;
    box-shadow: 0 0 0 2px #fff;
}

.first-run-onboarding {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.first-run-onboarding-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid #dbeafe;
    box-shadow: 0 18px 42px rgba(0,0,0,0.35);
    padding: 16px;
}
.onboarding-subject-list {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 8px;
    background: #f8fbff;
}
.onboarding-subject-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 4px;
    color: #1e3c72;
    font-size: 0.88rem;
    font-weight: 600;
}

.nav-home .nav-icon {
    font-size: 1.9rem;
    background: #1e3c72;
    color: white;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(30,60,114,0.4);
    margin-top: -10px;
}

.nav-home.active .nav-icon {
    background: #e67e22;
    box-shadow: 0 4px 12px rgba(230,126,34,0.5);
}

.nav-home .nav-label { color: #1e3c72; font-weight: 700; }
.nav-home.active .nav-label { color: #e67e22; }

/* Giriş yapıldığında container alt boşluk */
body.nav-visible .container {
    margin-bottom: calc(70px + env(safe-area-inset-bottom));
}

/* Derslerim / Profil mod desteği */
#screen-settings.profile-mode .settings-derslerim-section { display: none !important; }
#screen-settings.derslerim-mode .settings-profile-section { display: none !important; }
#screen-settings.derslerim-mode #profile-save-btn { display: none !important; }

.derslerim-collapsible-card {
    background: #f8fbff;
    border: 1px solid #dbe7f3;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
}

.derslerim-collapse-trigger {
    width: 100%;
    background: #eef4fb;
    color: #1e3c72;
    border: 1px solid #d4e1ee;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.derslerim-collapse-content {
    margin-top: 10px;
}

.derslerim-collapse-content.collapsed {
    display: none;
}

.derslerim-library-subject {
    width: 100%;
    margin-bottom: 8px;
    border: 1px solid #d7e8db;
    background: #f3fbf5;
    color: #1f5130;
    border-radius: 10px;
    font-weight: 700;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.derslerim-library-topics {
    display: none;
    margin: 0 0 10px 0;
    padding: 8px;
    border: 1px dashed #d5deea;
    border-radius: 10px;
    background: #ffffff;
}

.derslerim-library-topics.open {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.derslerim-topic-btn {
    width: 100%;
    text-align: left;
    border: 1px solid #e5dff8;
    background: #faf7ff;
    color: #4f3c7a;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 0.88rem;
    font-weight: 600;
}

.library-lessons-topic-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    align-items: center;
}

.library-lessons-topic-add-btn {
    width: auto;
    min-width: 36px;
    padding: 8px 10px;
    font-size: 1rem;
    line-height: 1;
    color: #fff;
}

.plus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0.7em;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    color: currentColor;
}

.topic-count-badge {
    color: #6b7280;
    font-size: 0.82em;
    font-weight: 400;
    margin-left: 2px;
}

.topic-new-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e74c3c;
    margin-left: 5px;
    vertical-align: middle;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.derslerim-empty-text {
    color: #6b7280;
}
.derslerim-empty-action-btn {
    margin-top: 8px;
    border-color: #e67e22 !important;
    color: #e67e22 !important;
}

.derslerim-collapse-trigger:focus-visible,
.derslerim-library-subject:focus-visible,
.derslerim-topic-btn:focus-visible,
#library-modal-active-toggle:focus-visible + .library-modal-slider,
.library-modal-title-btn:focus-visible,
.library-modal-info-btn:focus-visible {
    outline: 3px solid #f39c12;
    outline-offset: 2px;
}

.derslerim-theme-toggle-btn {
    margin: 0 0 10px 0;
    border-color: #7f8fa6 !important;
    color: #34495e !important;
    background: #f4f7fb !important;
}

.derslerim-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.derslerim-add-btn {
    width: auto;
    min-width: 42px;
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: 700;
    border-color: #3498db !important;
    color: #1e3c72 !important;
    background: #eef6ff !important;
}

.derslerim-add-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.derslerim-add-modal {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 14px;
    border: 1px solid #dbe4f4;
    box-shadow: 0 16px 40px rgba(16, 33, 60, 0.25);
    padding: 16px;
    text-align: left;
}

.derslerim-add-modal label {
    margin: 8px 0 4px;
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e3c72;
}

.derslerim-add-modal input,
.derslerim-add-modal select,
.derslerim-add-modal textarea {
    margin: 0;
}

.derslerim-add-modal-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.derslerim-add-modal-actions button {
    flex: 1;
}

#derslerim-library-filter-wrap {
    background: #f7fbff;
    border: 1px solid #d9e8f7;
    border-radius: 10px;
    padding: 8px;
}

body.full-dark-theme #screen-settings.derslerim-mode .content-card,
body.soft-dark-theme #screen-settings.derslerim-mode .content-card {
    background: #1d2633 !important;
    border-color: #2b3748 !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35) !important;
}

body.full-dark-theme #screen-settings.derslerim-mode h4,
body.full-dark-theme #screen-settings.derslerim-mode p,
body.full-dark-theme #screen-settings.derslerim-mode label,
body.full-dark-theme #screen-settings.derslerim-mode small,
body.soft-dark-theme #screen-settings.derslerim-mode h4,
body.soft-dark-theme #screen-settings.derslerim-mode p,
body.soft-dark-theme #screen-settings.derslerim-mode label,
body.soft-dark-theme #screen-settings.derslerim-mode small {
    color: #dbe7ff !important;
}

body.full-dark-theme #screen-settings.derslerim-mode #profile-subjects-area,
body.soft-dark-theme #screen-settings.derslerim-mode #profile-subjects-area {
    background: #263244 !important;
    border-color: #3a4b63 !important;
}

body.full-dark-theme #screen-settings.derslerim-mode .derslerim-collapsible-card,
body.soft-dark-theme #screen-settings.derslerim-mode .derslerim-collapsible-card {
    background: #233044;
    border-color: #36465f;
}

body.full-dark-theme #screen-settings.derslerim-mode .derslerim-collapse-trigger,
body.soft-dark-theme #screen-settings.derslerim-mode .derslerim-collapse-trigger {
    background: #2b3b52;
    color: #e5efff;
    border-color: #445975;
}

body.full-dark-theme #screen-settings.derslerim-mode .derslerim-library-subject,
body.soft-dark-theme #screen-settings.derslerim-mode .derslerim-library-subject {
    background: #2f3f36;
    color: #d6f5de;
    border-color: #4e6b59;
}

body.full-dark-theme #screen-settings.derslerim-mode .derslerim-library-topics,
body.soft-dark-theme #screen-settings.derslerim-mode .derslerim-library-topics {
    background: #293548;
    border-color: #4a5e7d;
}

body.full-dark-theme #screen-settings.derslerim-mode .derslerim-topic-btn,
body.soft-dark-theme #screen-settings.derslerim-mode .derslerim-topic-btn {
    background: #312f46;
    color: #eadfff;
    border-color: #5f5a86;
}

body.full-dark-theme #screen-settings.derslerim-mode .derslerim-theme-toggle-btn,
body.soft-dark-theme #screen-settings.derslerim-mode .derslerim-theme-toggle-btn {
    background: #2a3446 !important;
    color: #d7e6ff !important;
    border-color: #62799a !important;
}

body.full-dark-theme .derslerim-add-modal,
body.soft-dark-theme .derslerim-add-modal {
    background: #1f2a3d;
    border-color: #3f5576;
}
body.full-dark-theme .derslerim-add-modal h4,
body.full-dark-theme .derslerim-add-modal label,
body.soft-dark-theme .derslerim-add-modal h4,
body.soft-dark-theme .derslerim-add-modal label {
    color: #dbe7ff !important;
}
body.full-dark-theme .derslerim-add-btn,
body.soft-dark-theme .derslerim-add-btn {
    background: #2c3f5e !important;
    border-color: #5a79a5 !important;
    color: #e4efff !important;
}

body.full-dark-theme #derslerim-library-filter-wrap,
body.soft-dark-theme #derslerim-library-filter-wrap {
    background: #263446;
    border-color: #445d7b;
}

body.full-dark-theme #screen-settings.derslerim-mode .subject-row,
body.soft-dark-theme #screen-settings.derslerim-mode .subject-row {
    background: #2a3750;
    border-color: #435a7f;
    box-shadow: none;
}
body.full-dark-theme #screen-settings.derslerim-mode .subject-row-main,
body.soft-dark-theme #screen-settings.derslerim-mode .subject-row-main,
body.soft-dark-theme #screen-settings.derslerim-mode .subject-row-name {
    color: #deebff;
}
body.full-dark-theme #screen-settings.derslerim-mode .subject-row-collapse-btn,
body.soft-dark-theme #screen-settings.derslerim-mode .subject-row-collapse-btn {
    background: #2a3952;
    border-color: #46618a;
    color: #deebff;
}
body.full-dark-theme #screen-settings.derslerim-mode .subject-row-accordion,
body.soft-dark-theme #screen-settings.derslerim-mode .subject-row-accordion {
    background: #243249;
    border-color: #46618a;
}
body.full-dark-theme #screen-settings.derslerim-mode .subject-topic-chip,
body.soft-dark-theme #screen-settings.derslerim-mode .subject-topic-chip {
    background: #334869;
    border-color: #506d99;
    color: #deebff;
}
body.full-dark-theme #screen-settings.derslerim-mode .subject-row-empty-topic,
body.soft-dark-theme #screen-settings.derslerim-mode .subject-row-empty-topic {
    color: #afc1df;
}
body.full-dark-theme #screen-settings.derslerim-mode .subject-row input[type="text"],
body.soft-dark-theme #screen-settings.derslerim-mode .subject-row input[type="text"] {
    background: #1f2a3d !important;
    border-color: #4c6288;
    color: #e5eeff !important;
}

body.full-dark-theme {
    background: #070b12 !important;
    color: #e5ebf5;
}
body.full-dark-theme .container {
    background: #121925 !important;
    color: #e5ebf5 !important;
    box-shadow: 0 12px 34px rgba(0,0,0,0.62);
}
body.full-dark-theme h1,
body.full-dark-theme h2,
body.full-dark-theme h3,
body.full-dark-theme h4,
body.full-dark-theme p,
body.full-dark-theme label,
body.full-dark-theme small,
body.full-dark-theme .nav-label {
    color: #dbe7ff !important;
}
body.full-dark-theme input,
body.full-dark-theme select,
body.full-dark-theme textarea {
    background: #1a2433 !important;
    color: #e8efff !important;
    border-color: #33445d !important;
}
body.full-dark-theme .content-card,
body.full-dark-theme .list-item,
body.full-dark-theme .filter-section,
body.full-dark-theme #lobby-settings,
body.full-dark-theme #student-class-area,
body.full-dark-theme #student-library-panel,
body.full-dark-theme #lobby-players-area {
    background: #1b2535 !important;
    color: #e8efff !important;
    border-color: #3a4d69 !important;
}
body.full-dark-theme .library-modal {
    background: #111926;
}
body.full-dark-theme .library-modal-header {
    background: #1a2433;
    border-color: #32455f;
}
body.full-dark-theme .library-modal-title-btn,
body.full-dark-theme .library-modal-toggle-label,
body.full-dark-theme .library-modal-info-btn {
    color: #dbe7ff;
}
body.full-dark-theme .library-modal-info-btn {
    background: #1f2b3d;
    border-color: #3a4d69;
}
body.full-dark-theme .library-modal-slider {
    background: #4e5f78;
}
body.full-dark-theme .library-modal-switch input:checked + .library-modal-slider {
    background: #27ae60;
}
body.full-dark-theme .library-card,
body.full-dark-theme .library-topic-item {
    background: #1e2a3d;
    color: #dbe7ff;
    border-color: #3b4f6c;
}
body.full-dark-theme .library-topic-add {
    background: #223248;
    border-color: #4d89c4;
    color: #82bef8;
}

/* ===== ANA EKRAN HIZLI ERİŞİM BUTONLARI ===== */
.main-quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.main-quick-btn {
    flex: 1;
    padding: 14px 10px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.12s ease, box-shadow 0.15s ease;
    text-align: center;
}
.main-quick-btn:active { transform: scale(0.95); }
.main-quick-btn-exam {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    border-color: #2a5298;
    box-shadow: 0 4px 12px rgba(30,60,114,0.25);
}
.main-quick-btn-subjects {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: #fff;
    border-color: #e67e22;
    box-shadow: 0 4px 12px rgba(230,126,34,0.25);
}

/* ===== KOYU MOD (FULL DARK) — EKSİK ELEMENTLER ===== */
body.full-dark-theme .ui-panel-warm {
    background: #1c2d40 !important;
    border-color: #c0602a !important;
    color: #f0e0cc !important;
}
body.full-dark-theme .ui-panel-soft {
    background: #1a2b38 !important;
    border-color: #2e5068 !important;
    color: #cde4f3 !important;
}
body.full-dark-theme .ui-panel-header h4 {
    color: #f0a070 !important;
}
body.full-dark-theme .ui-panel-toggle-tag {
    background: #263445 !important;
    border-color: #b0602a !important;
    color: #f0a070 !important;
}
body.full-dark-theme #dynamic-selection-area {
    background: #1a2535 !important;
    border-color: #33445d !important;
}
body.full-dark-theme #bottom-nav {
    background: #121925 !important;
    border-color: #1e2e42 !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5) !important;
}
body.full-dark-theme .nav-item.active .nav-label {
    color: #7fb5ff !important;
}
body.full-dark-theme .nav-reminder-dot {
    box-shadow: 0 0 0 2px #121925 !important;
}
body.full-dark-theme .nav-added-dot {
    box-shadow: 0 0 0 2px #121925 !important;
}
body.full-dark-theme .main-quick-btn-exam {
    background: linear-gradient(135deg, #0e2244 0%, #16336a 100%) !important;
    border-color: #2a5298 !important;
    box-shadow: 0 4px 12px rgba(10,20,60,0.45) !important;
}
body.full-dark-theme .main-quick-btn-subjects {
    background: linear-gradient(135deg, #7a3d0a 0%, #9a5010 100%) !important;
    border-color: #b86a1a !important;
    box-shadow: 0 4px 12px rgba(80,40,10,0.45) !important;
}
body.full-dark-theme .ui-alert-card-danger {
    background: #7b1f1f !important;
}
body.full-dark-theme .ui-alert-card-warning {
    background: #7a4f0a !important;
}
body.full-dark-theme .screen-primary-title {
    color: #f0a070 !important;
}
body.full-dark-theme .list-item-solution-box {
    background: #1a2b38 !important;
    color: #cde4f3 !important;
}
body.full-dark-theme .student-saved-materials-panel,
body.full-dark-theme #student-saved-materials-panel {
    background: #1b2535 !important;
    border-color: #2c3f5a !important;
}
body.full-dark-theme .outline {
    border-color: #4a6080 !important;
    color: #c8d8f0 !important;
    background: transparent !important;
}
body.full-dark-theme .outline:hover {
    background: rgba(200,216,240,0.08) !important;
}

/* ===== KOYU MOD (SOFT DARK) — GENEL STILLER ===== */
body.soft-dark-theme {
    background: #1a2233 !important;
    color: #e0e8f5;
}
body.soft-dark-theme .container {
    background: #1f2c40 !important;
    color: #e0e8f5 !important;
    box-shadow: 0 12px 34px rgba(0,0,0,0.40);
}
body.soft-dark-theme h1,
body.soft-dark-theme h2,
body.soft-dark-theme h3,
body.soft-dark-theme h4,
body.soft-dark-theme p,
body.soft-dark-theme label,
body.soft-dark-theme small,
body.soft-dark-theme .nav-label {
    color: #dce8ff !important;
}
body.soft-dark-theme input,
body.soft-dark-theme select,
body.soft-dark-theme textarea {
    background: #243348 !important;
    color: #e0e8ff !important;
    border-color: #3d536e !important;
}
body.soft-dark-theme .content-card,
body.soft-dark-theme .list-item,
body.soft-dark-theme .filter-section,
body.soft-dark-theme #lobby-settings,
body.soft-dark-theme #student-class-area,
body.soft-dark-theme #student-library-panel,
body.soft-dark-theme #lobby-players-area {
    background: #243044 !important;
    color: #e0e8ff !important;
    border-color: #3d526c !important;
}
body.soft-dark-theme .ui-panel-warm {
    background: #22303f !important;
    border-color: #b06025 !important;
    color: #f0dcc8 !important;
}
body.soft-dark-theme .ui-panel-soft {
    background: #1f2e3a !important;
    border-color: #2d4e65 !important;
    color: #c8e0f0 !important;
}
body.soft-dark-theme .ui-panel-header h4 {
    color: #f0a478 !important;
}
body.soft-dark-theme .ui-panel-toggle-tag {
    background: #2b3f52 !important;
    border-color: #a05e28 !important;
    color: #f0a478 !important;
}
body.soft-dark-theme #dynamic-selection-area {
    background: #1f2e3e !important;
    border-color: #3a506a !important;
}
body.soft-dark-theme #bottom-nav {
    background: #1a2535 !important;
    border-color: #253547 !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.35) !important;
}
body.soft-dark-theme .nav-item.active .nav-label {
    color: #8ac0ff !important;
}
body.soft-dark-theme .nav-reminder-dot {
    box-shadow: 0 0 0 2px #1a2535 !important;
}
body.soft-dark-theme .nav-added-dot {
    box-shadow: 0 0 0 2px #1a2535 !important;
}
body.soft-dark-theme .main-quick-btn-exam {
    background: linear-gradient(135deg, #142244 0%, #1e3870 100%) !important;
    border-color: #2a5298 !important;
}
body.soft-dark-theme .main-quick-btn-subjects {
    background: linear-gradient(135deg, #7a3e0a 0%, #9a5412 100%) !important;
    border-color: #c07020 !important;
}
body.soft-dark-theme .ui-alert-card-danger {
    background: #7a2020 !important;
}
body.soft-dark-theme .ui-alert-card-warning {
    background: #7a5010 !important;
}
body.soft-dark-theme .screen-primary-title {
    color: #f0a478 !important;
}
body.soft-dark-theme .library-modal {
    background: #182030;
}
body.soft-dark-theme .library-modal-header {
    background: #1f2d3f;
    border-color: #304560;
}
body.soft-dark-theme .library-modal-title-btn,
body.soft-dark-theme .library-modal-toggle-label,
body.soft-dark-theme .library-modal-info-btn {
    color: #dce8ff;
}
body.soft-dark-theme .library-modal-info-btn {
    background: #20304a;
    border-color: #38507a;
}
body.soft-dark-theme .library-modal-slider {
    background: #506070;
}
body.soft-dark-theme .library-modal-switch input:checked + .library-modal-slider {
    background: #27ae60;
}
body.soft-dark-theme .library-card,
body.soft-dark-theme .library-topic-item {
    background: #1f2d40;
    color: #dce8ff;
    border-color: #354e6a;
}
body.soft-dark-theme .library-topic-add {
    background: #223048;
    border-color: #4a80b8;
    color: #80b8f0;
}
body.soft-dark-theme .list-item-solution-box {
    background: #1f2e3a !important;
    color: #c8e0f0 !important;
}
body.soft-dark-theme .student-saved-materials-panel,
body.soft-dark-theme #student-saved-materials-panel {
    background: #1f2d40 !important;
    border-color: #2c4060 !important;
}
body.soft-dark-theme .outline {
    border-color: #4a6080 !important;
    color: #c0d0e8 !important;
    background: transparent !important;
}
body.soft-dark-theme .outline:hover {
    background: rgba(192,208,232,0.08) !important;
}

/* ===== RESPONSIVE TASARIM ===== */

/* Küçük Mobil (480px'den küçük ekranlar) */
@media (max-width: 479px) {
    .container { padding: 14px 12px; }
    #bottom-nav { width: 100%; border-radius: 12px 12px 0 0; }
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.15rem; }
    h3 { font-size: 1rem; }
    input, select, button, textarea { padding: 10px; font-size: 0.92rem; }
    .card-action-btn { padding: 10px 6px; font-size: 0.95rem; }
    .abcde-grid { gap: 3px; }
    .abcde-btn { padding: 8px 2px; font-size: 0.88rem; }
    .q-box { width: 28px; height: 28px; font-size: 0.72rem; margin: 2px; }
    .nav-box { width: 28px; height: 28px; font-size: 0.72rem; }
    .nav-label { font-size: 0.58rem; max-width: 52px; }
    .nav-icon { font-size: 1.25rem; }
    .nav-home .nav-icon { width: 42px; height: 42px; font-size: 1.6rem; }
    #notification-toast { max-width: calc(100% - 20px); right: 10px; top: 10px; font-size: 0.85rem; }
    .ready-source-list { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
    .chip { font-size: 0.75rem; padding: 5px 10px; }
    #lobby-players-area { padding: 8px; }
}

/* Tablet (768px ve üzeri) */
@media (min-width: 768px) {
    body { padding: 30px 0; }
    .container { max-width: 680px; padding: 28px 32px; border-radius: 18px; }
    #bottom-nav { max-width: 680px; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    input, select, button, textarea { font-size: 1.05rem; padding: 13px; }
    .card-action-btn { padding: 16px 12px; font-size: 1.15rem; }
    .abcde-grid { grid-template-columns: repeat(5, 1fr); gap: 8px; }
    .abcde-btn { padding: 12px 0; font-size: 1.05rem; }
    .nav-icon { font-size: 1.6rem; }
    .nav-label { font-size: 0.68rem; max-width: 75px; }
    .nav-home .nav-icon { width: 54px; height: 54px; font-size: 2.1rem; }
    #notification-toast { max-width: 320px; }
    .ready-source-list { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .chip { font-size: 0.85rem; padding: 7px 14px; }
}

/* Masaüstü (1024px ve üzeri) */
@media (min-width: 1024px) {
    body { padding: 40px 0; align-items: center; }
    .container { max-width: 820px; padding: 32px 40px; border-radius: 20px; }
    #bottom-nav { max-width: 820px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.65rem; }
    h3 { font-size: 1.3rem; }
    input, select, button, textarea { font-size: 1.1rem; padding: 14px; }
    .card-action-btn { padding: 18px 14px; font-size: 1.2rem; }
    .abcde-btn { padding: 14px 0; font-size: 1.1rem; }
    .nav-icon { font-size: 1.7rem; }
    .nav-label { font-size: 0.72rem; max-width: 85px; }
    .nav-home .nav-icon { width: 58px; height: 58px; font-size: 2.2rem; }
    #notification-toast { max-width: 360px; right: 30px; top: 30px; }
    .ready-source-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .chip { font-size: 0.9rem; padding: 8px 16px; }
    .intro-title { font-size: 2.2rem; }
    .intro-text { font-size: 1.2rem; max-width: 540px; }
}

/* ===== Teacher Dashboard Panel ===== */
.teacher-dash-card {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.teacher-dash-card input,
.teacher-dash-card textarea,
.teacher-dash-card select {
    background: rgba(255, 255, 255, 0.92);
    color: #1e3c72;
    border: none;
}

.teacher-dash-card input::placeholder,
.teacher-dash-card textarea::placeholder {
    color: #6b7a99;
}

#teacher-exam-multiselect-area label {
    cursor: pointer;
}

#teacher-exam-multiselect-area input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
    accent-color: #f1c40f;
}

/* =====================================================================
   PERFORMANS & UX: Skeleton Loaders, Transitions, Lazy Images
   ===================================================================== */

/* Skeleton loader animasyonu */
@keyframes skeleton-pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.4; }
    100% { opacity: 1; }
}

.skeleton-card {
    background: var(--color-surface, #fff);
    border-radius: var(--radius-md, 12px);
    padding: var(--space-4, 16px);
    margin-bottom: var(--space-3, 12px);
    border: 1px solid var(--color-border, #d9e4f5);
    animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.skeleton-line {
    background: #e0e7ef;
    border-radius: 4px;
    height: 14px;
    margin-bottom: 10px;
}
.skeleton-line--title  { height: 18px; width: 60%; }
.skeleton-line--body   { width: 100%; }
.skeleton-line--short  { width: 45%; }

.skeleton-image {
    background: #e0e7ef;
    border-radius: var(--radius-sm, 8px);
    height: 120px;
    margin-top: 8px;
}

/* Ekran geçişi (fade-in) */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.screen.active {
    animation: fade-in 0.22s ease-out both;
}

/* Lazy-loaded görseller: yüklenene kadar soluk, yüklenince belir */
img[data-lazy-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}
img:not([data-lazy-src]) {
    /* src atandıktan sonra lazy class kaldırılır; geçiş için */
    transition: opacity 0.3s ease;
}

/* GPU hızlandırmalı kart animasyonları */
.list-item,
.skeleton-card,
.trial-list-card {
    will-change: transform;
    transform: translateZ(0);
}

/* Print stili: gereksiz öğeleri gizle */
@media print {
    #bottom-nav,
    .skeleton-card,
    button:not(.print-visible),
    .nav-item { display: none !important; }

    body { background: #fff !important; color: #000 !important; }
    .container { box-shadow: none !important; max-width: 100% !important; }
}
