/* ==========================================
   RehberHocan — Premium EdTech Design System
   Duolingo-inspired gamified UI
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

/* ══════════════════════════════════════════
   DESIGN TOKENS
   ══════════════════════════════════════════ */
:root {
    /* ── Surface ── */
    --bg-body: #f0f2f5;
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafa;
    --bg-glass: #ffffff;
    --bg-elevated: #ffffff;

    /* ── Sidebar ── */
    --sidebar-bg: #ffffff;
    --sidebar-hover: #f0f4ff;
    --sidebar-active-bg: #2563eb;
    --sidebar-active-text: #ffffff;
    --sidebar-text: #64748b;
    --sidebar-text-hover: #1e293b;
    --sidebar-border: #e8ecf1;
    --sidebar-section: #94a3b8;

    /* ── Accent — Blue (YKS) ── */
    --accent-primary: #2563eb;
    --accent-secondary: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #2563eb, #3b82f6);
    --accent-glow: rgba(37, 99, 235, 0.15);
    --accent-subtle: rgba(37, 99, 235, 0.07);
    --accent-hover: #1d4ed8;
    --accent-light: #dbeafe;
    --accent-dark: #1e40af;

    /* ── Gamification colors ── */
    --green: #58cc02;
    --green-dark: #46a302;
    --green-light: #d7ffb8;
    --green-bg: rgba(88, 204, 2, 0.08);
    --gold: #ffc800;
    --gold-bg: rgba(255, 200, 0, 0.1);
    --xp-purple: #a855f7;
    --xp-purple-bg: rgba(168, 85, 247, 0.08);
    --streak-orange: #ff9600;

    /* ── Status ── */
    --success: #58cc02;
    --success-bg: rgba(88, 204, 2, 0.08);
    --success-border: rgba(88, 204, 2, 0.2);
    --warning: #ffc800;
    --warning-bg: rgba(255, 200, 0, 0.08);
    --warning-border: rgba(255, 200, 0, 0.2);
    --danger: #ff4b4b;
    --danger-bg: rgba(255, 75, 75, 0.06);
    --danger-border: rgba(255, 75, 75, 0.2);
    --info: #1cb0f6;
    --info-bg: rgba(28, 176, 246, 0.06);
    --info-border: rgba(28, 176, 246, 0.2);

    /* ── Typography ── */
    --text-primary: #3c3c3c;
    --text-secondary: #777777;
    --text-muted: #afafaf;
    --font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* ── Ders Renkleri ── */
    --color-turkce: #ef4444;
    --color-matematik: #7c3aed;
    --color-tarih: #f59e0b;
    --color-cografya: #06b6d4;
    --color-vatandaslik: #ec4899;
    --color-guncel: #10b981;

    /* ── Borders & Shadows ── */
    --border-color: #e5e5e5;
    --border-light: #f0f0f0;
    --border-thick: 2.5px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 0 4px var(--accent-glow);
    --shadow-btn: 0 4px 0 0; /* Duolingo-style button depth */

    /* ── Radius ── */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 100px;

    /* ── Transitions ── */
    --transition-fast: 0.12s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Dark Theme ── */
[data-theme="dark"] {
    --bg-body: #131f24;
    --bg-primary: #131f24;
    --bg-secondary: #1a2c35;
    --bg-card: #1a2c35;
    --bg-card-hover: #223a46;
    --bg-glass: #1a2c35;
    --bg-elevated: #223a46;

    --sidebar-bg: #1a2c35;
    --sidebar-hover: #223a46;
    --sidebar-active-bg: #2563eb;
    --sidebar-active-text: #ffffff;
    --sidebar-text: #8ba5b5;
    --sidebar-text-hover: #e2e8f0;
    --sidebar-border: #2a3f4d;
    --sidebar-section: #5a7a8c;

    --accent-primary: #3b82f6;
    --accent-secondary: #60a5fa;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #60a5fa);
    --accent-glow: rgba(59, 130, 246, 0.25);
    --accent-subtle: rgba(59, 130, 246, 0.1);
    --accent-hover: #2563eb;
    --accent-light: #1e3a5f;

    --success: #58cc02; --success-bg: rgba(88, 204, 2, 0.12);
    --warning: #ffc800; --warning-bg: rgba(255, 200, 0, 0.1);
    --danger: #ff4b4b; --danger-bg: rgba(255, 75, 75, 0.1);
    --info: #1cb0f6; --info-bg: rgba(28, 176, 246, 0.1);

    --text-primary: #e8ecf1;
    --text-secondary: #8ba5b5;
    --text-muted: #5a7a8c;

    --border-color: #2a3f4d;
    --border-light: #1a2c35;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ── KPSS Mode ── */
[data-exam-mode="kpss"] {
    --accent-primary: #f97316;
    --accent-secondary: #fb923c;
    --accent-gradient: linear-gradient(135deg, #f97316, #fb923c);
    --accent-glow: rgba(249, 115, 22, 0.15);
    --accent-subtle: rgba(249, 115, 22, 0.07);
    --accent-hover: #ea580c;
    --accent-light: #fff7ed;
    --accent-dark: #c2410c;
    --sidebar-active-bg: #f97316;
}
[data-theme="dark"][data-exam-mode="kpss"] {
    --accent-primary: #fb923c;
    --accent-secondary: #fdba74;
    --accent-gradient: linear-gradient(135deg, #fb923c, #fdba74);
    --accent-glow: rgba(251, 146, 60, 0.25);
    --accent-subtle: rgba(251, 146, 60, 0.1);
    --accent-hover: #f97316;
    --sidebar-active-bg: #f97316;
}

/* ══════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #3a5060; }

/* ── Theme Toggle ── */
.theme-toggle-btn {
    position: fixed; bottom: 1.25rem; right: 1.25rem;
    width: 42px; height: 42px; border-radius: 50%;
    border: var(--border-thick) solid var(--border-color);
    background: var(--bg-secondary); color: var(--text-secondary);
    font-size: 1.05rem; cursor: pointer; z-index: 9998;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}
.theme-toggle-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); transform: scale(1.05); }
.theme-toggle-btn:active { transform: scale(0.95); }

/* ══════════════════════════════════════════
   BUTTONS — Duolingo-style elevated buttons
   ══════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border: none; border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.88rem; font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none; white-space: nowrap;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent-primary); color: white;
    border-bottom: 4px solid var(--accent-dark, #1e40af);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(2px); border-bottom-width: 1px; }

.btn-secondary {
    background: var(--bg-secondary); color: var(--text-secondary);
    border: var(--border-thick) solid var(--border-color);
    border-bottom: 4px solid var(--border-color);
}
.btn-secondary:hover { background: var(--bg-card-hover); color: var(--text-primary); transform: translateY(-1px); }
.btn-secondary:active { transform: translateY(2px); border-bottom-width: var(--border-thick); }

.btn-success {
    background: var(--green); color: white;
    border-bottom: 4px solid var(--green-dark);
}
.btn-success:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-success:active { transform: translateY(2px); border-bottom-width: 1px; }

.btn-danger {
    background: var(--danger); color: white;
    border-bottom: 4px solid #cc3c3c;
}

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.78rem; border-bottom-width: 3px; letter-spacing: 0.3px; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; border-bottom-width: 5px; }
.btn-block { width: 100%; }
.btn-back { background: none; color: var(--text-muted); padding: 0.3rem; font-size: 0.85rem; border: none; border-bottom: none; text-transform: none; letter-spacing: normal; font-weight: 600; }
.btn-back:hover { color: var(--accent-primary); }

/* Ghost / Outline button */
.btn-ghost {
    background: transparent; color: var(--accent-primary);
    border: var(--border-thick) solid var(--accent-primary);
    border-bottom: 4px solid var(--accent-primary);
}
.btn-ghost:hover { background: var(--accent-subtle); }

/* ══════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════ */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.3px; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 0.65rem 0.85rem;
    background: var(--bg-secondary);
    border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary); font-family: var(--font-family); font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}
.form-group input::placeholder { color: var(--text-muted); font-weight: 400; }

/* ══════════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════════ */
.landing-page { min-height: 100vh; background: var(--bg-body); }

/* -- Login Only Layout -- */
.landing-page.login-only {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 2rem;
}
.login-container { width: 100%; max-width: 900px; text-align: center; }
.login-header {
    display: flex; flex-direction: column; align-items: center;
    margin-bottom: 2.5rem;
}
.login-logo { height: 64px; border-radius: 16px; margin-bottom: 0.75rem; }
.login-brand { font-size: 1.5rem; font-weight: 800; color: var(--accent-primary); }

.landing-mode-toggle {
    display: flex; border: var(--border-thick) solid var(--accent-primary);
    border-radius: var(--radius-full); overflow: hidden;
}
.landing-mode-toggle button {
    padding: 0.35rem 0.9rem; border: none;
    font-weight: 700; cursor: pointer; font-size: 0.82rem;
    font-family: var(--font-family); background: transparent;
    color: var(--text-muted); transition: all var(--transition-fast);
}
.landing-mode-toggle button.active { background: var(--accent-primary); color: white; }

/* -- Platform login cards -- */
.landing-platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 900px; margin: 0 auto; }

.landing-platform-card {
    background: var(--bg-card); border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-xl); padding: 2rem 1.5rem;
    text-align: center; cursor: pointer;
    transition: all var(--transition-bounce);
}
.landing-platform-card:hover { border-color: var(--accent-primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.landing-platform-icon {
    width: 60px; height: 60px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin: 0 auto 1rem;
}
.admin-icon { background: var(--accent-subtle); border: var(--border-thick) solid var(--accent-glow); }
.student-icon { background: var(--green-bg); border: var(--border-thick) solid var(--success-border); }
.parent-icon { background: var(--info-bg); border: var(--border-thick) solid var(--info-border); }
.landing-platform-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.landing-platform-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 0.75rem; font-weight: 500; }
.landing-platform-user { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.5rem; font-weight: 600; }

/* ══════════════════════════════════════════
   APP LAYOUT
   ══════════════════════════════════════════ */
.app-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
    width: 250px;
    background: var(--sidebar-bg);
    border-right: var(--border-thick) solid var(--sidebar-border);
    padding: 0;
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: width var(--transition-normal);
}

.sidebar.collapsed { width: 68px; }
.sidebar.collapsed .nav-text { display: none; }
.sidebar.collapsed .sidebar-brand-text { display: none; }
.sidebar.collapsed .sidebar-section-title { display: none; }
.sidebar.collapsed .sidebar-user .user-info { display: none; }
.sidebar.collapsed .sidebar-footer .btn .nav-text { display: none; }
.sidebar.collapsed .sidebar-nav button { justify-content: center; padding: 0.65rem; }
.sidebar.collapsed .sidebar-nav .nav-icon { margin-right: 0; width: 24px; height: 24px; }
.sidebar.collapsed .sidebar-nav .nav-icon svg { width: 22px; height: 22px; }
.sidebar.collapsed .sidebar-brand { justify-content: center; padding: 0.75rem 0.5rem; gap: 0; }
.sidebar.collapsed .sidebar-brand-info { display: none; }
.sidebar.collapsed .sidebar-logo { width: 38px; height: 38px; }
.sidebar.collapsed .sidebar-collapse-btn { display: none; }
.sidebar.collapsed .sidebar-footer { padding: 0.5rem; }
.sidebar.collapsed .sidebar-footer .btn { padding: 0.5rem; justify-content: center; color: var(--danger); border-color: rgba(239,68,68,0.3); }
.sidebar.collapsed .sidebar-footer .btn:hover { background: rgba(239,68,68,0.1); }
.sidebar.collapsed .sidebar-footer .btn .nav-icon svg { color: var(--danger); }
.sidebar.collapsed .sidebar-user { justify-content: center; }

.sidebar-brand {
    padding: 0.85rem 1rem;
    border-bottom: var(--border-thick) solid var(--sidebar-border);
    display: flex; align-items: center; gap: 0.65rem;
}
.sidebar-logo {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: width 0.2s, height 0.2s;
}
.sidebar-brand-info { flex: 1; min-width: 0; }
.sidebar-brand-info h2 {
    font-size: 1rem; font-weight: 800; margin: 0;
    color: var(--accent-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-brand-sub {
    font-size: 0.62rem; color: var(--sidebar-section);
    display: block; margin-top: 1px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px;
}

.sidebar-nav {
    flex: 1; min-height: 0;
    padding: 0.85rem 0.75rem;
    overflow-y: auto;
}

.sidebar-nav a,
.sidebar-nav button {
    display: flex; align-items: center; gap: 0.65rem;
    width: 100%; padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text); text-decoration: none;
    font-size: 0.88rem; font-weight: 600;
    font-family: var(--font-family); background: none; border: none;
    cursor: pointer; transition: all var(--transition-fast);
    text-align: left; margin-bottom: 3px;
}
.sidebar-nav a:hover, .sidebar-nav button:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-hover);
}
.sidebar-nav a.active, .sidebar-nav button.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.sidebar-nav .nav-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-nav .nav-icon svg { width: 20px; height: 20px; opacity: 0.8; }
.sidebar-nav button.active .nav-icon svg { opacity: 1; }
.sidebar-footer .nav-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.sidebar-footer .nav-icon svg { width: 16px; height: 16px; }

.sidebar-footer {
    padding: 0.85rem 1rem;
    border-top: var(--border-thick) solid var(--sidebar-border);
}
.sidebar-user { display: flex; align-items: center; gap: 0.55rem; }
.sidebar-user .avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent-primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.78rem;
    border: var(--border-thick) solid var(--accent-glow);
}
.sidebar-user .user-info { flex: 1; }
.sidebar-user .user-info .name { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.sidebar-user .user-info .role { font-size: 0.68rem; color: var(--text-muted); font-weight: 600; }

/* ── Main Content ── */
.main-content {
    flex: 1; margin-left: 250px;
    padding: 1.5rem 2rem;
    min-height: 100vh;
    transition: margin-left var(--transition-normal);
}
.sidebar.collapsed~.main-content { margin-left: 68px; }
body.sidebar-collapsed .main-content { margin-left: 68px; }

/* ── Panel Top Bar ── */
.panel-topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.panel-topbar-left h1 { font-size: 1.5rem; font-weight: 800; }
.panel-topbar-left p { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.1rem; font-weight: 500; }
.panel-topbar-right { display: flex; align-items: center; gap: 0.75rem; }
.panel-topbar-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.4rem 0.9rem; background: var(--accent-primary);
    color: white; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 700;
}
.panel-topbar-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--accent-primary); color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.88rem;
    border: var(--border-thick) solid var(--accent-glow);
}

.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.65rem;
}
.page-header h1 { font-size: 1.5rem; font-weight: 800; }
.page-header .breadcrumb { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; font-weight: 600; }

/* ══════════════════════════════════════════
   CARDS — Clean, rounded, bordered
   ══════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}
.card:hover { box-shadow: var(--shadow-md); }

.card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
}
.card-header h3 { font-size: 1.05rem; font-weight: 700; }
.card-header .badge {
    padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
    font-size: 0.72rem; font-weight: 700;
    background: var(--accent-subtle); color: var(--accent-primary);
}

/* ── Welcome Banner ── */
.welcome-banner {
    background: var(--accent-gradient);
    border-radius: var(--radius-xl); padding: 1.75rem 2rem;
    color: white; margin-bottom: 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap;
    border: none;
    position: relative; overflow: hidden;
}
.welcome-banner::before {
    content: ''; position: absolute;
    top: -50%; right: -20%;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
[data-exam-mode="kpss"] .welcome-banner {
    background: linear-gradient(135deg, #f97316, #fb923c);
}
.welcome-banner-text { position: relative; z-index: 1; }
.welcome-banner-text h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.3rem; }
.welcome-banner-text p { font-size: 0.88rem; opacity: 0.9; font-weight: 500; }

.welcome-banner-stats {
    background: rgba(255,255,255,0.2); border-radius: var(--radius-md);
    padding: 1rem 1.25rem; text-align: center; min-width: 160px;
    position: relative; z-index: 1;
    backdrop-filter: blur(8px);
}
.welcome-banner-stats .wb-label { font-size: 0.72rem; opacity: 0.85; margin-bottom: 0.25rem; font-weight: 600; }
.welcome-banner-stats .wb-value { font-size: 1.2rem; font-weight: 800; }
.welcome-banner-stats .wb-progress { width: 100%; height: 8px; background: rgba(255,255,255,0.25); border-radius: var(--radius-full); margin-top: 0.4rem; overflow: hidden; }
.welcome-banner-stats .wb-progress-fill { height: 100%; background: white; border-radius: var(--radius-full); transition: width 0.4s ease; }

/* ── Dashboard Stats ── */
.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.dashboard-stat-card {
    background: var(--bg-card); border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-lg); padding: 1.25rem;
}
.dashboard-stat-card .ds-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.35rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.dashboard-stat-card .ds-value { font-size: 1.8rem; font-weight: 800; color: var(--text-primary); line-height: 1.1; }
.dashboard-stat-card .ds-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; font-weight: 600; }

.dashboard-grid { display: grid; grid-template-columns: 1fr 300px; gap: 1.25rem; align-items: start; }

/* ── Stat Cards (admin) ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
    background: var(--bg-card); border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-lg); padding: 1.25rem;
    display: flex; align-items: center; gap: 0.85rem;
    transition: all var(--transition-bounce);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.stat-icon.purple { background: var(--accent-subtle); color: var(--accent-primary); border: var(--border-thick) solid var(--accent-glow); }
.stat-icon.green { background: var(--green-bg); color: var(--green); border: var(--border-thick) solid var(--success-border); }
.stat-icon.orange { background: var(--warning-bg); color: var(--warning); border: var(--border-thick) solid var(--warning-border); }
.stat-icon.red { background: var(--danger-bg); color: var(--danger); border: var(--border-thick) solid var(--danger-border); }
.stat-icon.blue { background: var(--info-bg); color: var(--info); border: var(--border-thick) solid var(--info-border); }
.stat-info h4 { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.stat-info p { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; font-weight: 600; }

/* ══════════════════════════════════════════
   PROGRESS — Gamified progress bars
   ══════════════════════════════════════════ */
.progress-bar-wrapper {
    background: var(--bg-body); border-radius: var(--radius-full);
    height: 12px; overflow: hidden;
    margin: 0.35rem 0;
    border: var(--border-thick) solid var(--border-color);
}
.progress-bar {
    height: 100%; border-radius: var(--radius-full);
    background: var(--green);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.progress-bar::after {
    content: ''; position: absolute;
    top: 2px; left: 4px; right: 4px;
    height: 4px; border-radius: var(--radius-full);
    background: rgba(255,255,255,0.3);
}
.progress-info { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); font-weight: 700; }

/* ══════════════════════════════════════════
   SCHEDULE — Program Builder
   ══════════════════════════════════════════ */
.schedule-layout { display: flex; gap: 0.85rem; align-items: flex-start; margin-top: 0.85rem; }
.schedule-container {
    flex: 1; display: grid;
    grid-template-columns: repeat(7, minmax(125px, 1fr));
    gap: 0.4rem; overflow-x: auto; padding-bottom: 0.5rem;
}

.resource-pool {
    width: 260px; background: var(--bg-card);
    border: var(--border-thick) solid var(--border-color); border-radius: var(--radius-lg);
    padding: 0.65rem; position: sticky; top: 0.85rem;
    display: flex; flex-direction: column; gap: 0.35rem;
    max-height: calc(100vh - 3rem); overflow: hidden;
}
.resource-pool-header { font-size: 0.88rem; font-weight: 700; border-bottom: var(--border-thick) solid var(--border-color); padding-bottom: 0.4rem; margin-bottom: 0.35rem; }
.resource-pool-content { flex: 1; overflow-y: auto; padding-right: 0.15rem; }
.pool-subject-group { margin-bottom: 0.75rem; }
.pool-subject-title { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.5px; }

.pool-item {
    background: var(--bg-body); border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-sm); padding: 0.35rem 0.45rem;
    cursor: grab; transition: all var(--transition-fast);
    font-size: 0.72rem; font-weight: 600;
    display: flex; align-items: center; gap: 0.3rem; margin-bottom: 0.25rem; line-height: 1.25;
}
.pool-item:hover { border-color: var(--accent-primary); background: var(--accent-subtle); }
.pool-item:active { cursor: grabbing; }

.student-resources-list { scrollbar-width: thin; scrollbar-color: var(--border-color) transparent; }
.student-resources-list::-webkit-scrollbar { width: 4px; }
.student-resources-list::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
.resource-subject-group { margin-bottom: 0.3rem; }
.resource-subject-header:hover { background: var(--accent-subtle) !important; }
.student-resource-item { background: var(--bg-body); border: var(--border-thick) solid var(--border-color); border-radius: var(--radius-sm); padding: 0.3rem 0.4rem; transition: all var(--transition-fast); }
.student-resource-item:hover { border-color: var(--accent-primary); background: var(--accent-subtle); }
.student-resource-item.exhausted { border-style: dashed; }
.resource-pool-section { border-bottom: var(--border-thick) solid var(--border-color); margin-bottom: 0.35rem; }

.schedule-day {
    background: var(--bg-card); border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-lg); min-height: 240px;
    display: flex; flex-direction: column;
}
.schedule-day.rest-day { opacity: 0.5; background: var(--warning-bg); border-color: var(--warning-border); }
.schedule-day.drag-over { background: var(--accent-subtle); border-color: var(--accent-primary); }

.day-header {
    padding: 0.6rem; text-align: center;
    border-bottom: var(--border-thick) solid var(--border-color);
    background: var(--bg-body); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.day-header h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); }
.day-header .day-total { font-size: 0.68rem; color: var(--accent-primary); margin-top: 0.1rem; font-weight: 700; }

.day-items { flex: 1; padding: 0.3rem; display: flex; flex-direction: column; gap: 0.2rem; overflow-y: auto; }

.schedule-item {
    background: var(--bg-secondary); border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-sm); padding: 0.35rem 0.45rem;
    cursor: grab; transition: all var(--transition-fast);
    position: relative; font-size: 0.72rem;
}
.schedule-item:active { cursor: grabbing; }
.schedule-item.dragging { opacity: 0.4; border: 2px dashed var(--accent-primary); }
.schedule-item.item-focused { border-color: var(--accent-primary); background: var(--accent-subtle); }
.schedule-item.item-selected { border-color: var(--accent-primary); box-shadow: 0 0 0 2px var(--accent-glow); }
.schedule-item:hover { background: var(--bg-card-hover); border-color: var(--accent-primary); }
.schedule-item.completed { opacity: 0.5; border-color: var(--green); background: var(--green-bg); }
.schedule-item.completed .item-title { text-decoration: line-through; }

.schedule-item .item-subject { display: inline-block; padding: 0.05rem 0.25rem; border-radius: 6px; font-size: 0.52rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 0.1rem; }
.schedule-item .item-subject.turkce { background: rgba(239,68,68,0.1); color: var(--color-turkce); }
.schedule-item .item-subject.matematik { background: rgba(124,58,237,0.1); color: var(--color-matematik); }
.schedule-item .item-subject.tarih { background: rgba(245,158,11,0.1); color: var(--color-tarih); }
.schedule-item .item-subject.cografya { background: rgba(6,182,212,0.1); color: var(--color-cografya); }
.schedule-item .item-subject.vatandaslik { background: rgba(236,72,153,0.1); color: var(--color-vatandaslik); }
.schedule-item .item-subject.guncel { background: rgba(16,185,129,0.1); color: var(--color-guncel); }

.schedule-item .item-title { font-weight: 700; margin-bottom: 0.08rem; font-size: 0.67rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.schedule-item .item-source { font-size: 0.62rem; color: var(--text-muted); margin-bottom: 0.08rem; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.schedule-item .item-meta { display: flex; align-items: center; gap: 0.3rem; font-size: 0.6rem; color: var(--text-muted); font-weight: 600; }
.schedule-item .item-duration { display: flex; align-items: center; gap: 0.15rem; }

.ctx-menu { position: absolute; z-index: 9999; background: var(--bg-secondary); border: var(--border-thick) solid var(--border-color); border-radius: var(--radius-sm); padding: 4px 0; min-width: 180px; box-shadow: var(--shadow-lg); }
.ctx-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; font-size: 0.8rem; font-weight: 600; cursor: pointer; color: var(--text-primary); transition: background 0.1s; }
.ctx-item:hover { background: var(--accent-subtle); color: var(--accent-primary); }
.ctx-item span { font-size: 0.65rem; color: var(--text-muted); }
.ctx-item.ctx-danger:hover { background: var(--danger-bg); color: var(--danger); }
.ctx-sep { height: 2px; background: var(--border-color); margin: 2px 0; }

.clipboard-indicator { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); background: var(--accent-primary); border: none; border-radius: var(--radius-full); padding: 8px 16px; font-size: 0.78rem; font-weight: 700; color: #fff; z-index: 9000; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 0.3rem; }

.slot-drag-item:hover { background: var(--accent-subtle) !important; }
.slot-drag-item:active { cursor: grabbing; }
.slot-drag-item.dragging { opacity: 0.4; }
.devam-header:hover { background: var(--accent-subtle) !important; }
.devam-section { transition: all var(--transition-fast); }
.resource-pool { overflow-y: auto; }

.add-item-btn { display: flex; align-items: center; justify-content: center; gap: 0.2rem; width: 100%; padding: 0.4rem; background: none; border: 2px dashed var(--border-color); border-radius: var(--radius-sm); color: var(--text-muted); font-family: var(--font-family); font-size: 0.68rem; font-weight: 700; cursor: pointer; transition: all var(--transition-fast); margin-top: auto; }
.add-item-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); background: var(--accent-subtle); }

/* ══════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════ */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 1000; animation: fadeIn 0.15s ease; padding: 1rem; }
.modal { background: var(--bg-secondary); border: var(--border-thick) solid var(--border-color); border-radius: var(--radius-xl); padding: 1.75rem; max-width: 520px; width: 100%; max-height: 85vh; overflow-y: auto; animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: var(--shadow-xl); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.modal-header h3 { font-size: 1.1rem; font-weight: 800; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.35rem; cursor: pointer; padding: 0.25rem; line-height: 1; border-radius: 8px; transition: all var(--transition-fast); }
.modal-close:hover { color: var(--danger); background: var(--danger-bg); }
.modal-body { margin-bottom: 1.25rem; }
.modal-footer { display: flex; gap: 0.5rem; justify-content: flex-end; }

.subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; margin-bottom: 0.75rem; }
.subject-option { background: var(--bg-body); border: var(--border-thick) solid var(--border-color); border-radius: var(--radius-md); padding: 0.85rem; text-align: center; cursor: pointer; transition: all var(--transition-bounce); font-family: var(--font-family); color: var(--text-primary); }
.subject-option:hover { border-color: var(--accent-primary); transform: scale(1.02); }
.subject-option.selected { border-color: var(--accent-primary); background: var(--accent-subtle); box-shadow: var(--shadow-glow); }
.subject-option .subject-emoji { font-size: 1.25rem; margin-bottom: 0.2rem; }
.subject-option .subject-name { font-size: 0.85rem; font-weight: 700; }

.type-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
.type-option { background: var(--bg-body); border: var(--border-thick) solid var(--border-color); border-radius: var(--radius-md); padding: 0.9rem; text-align: center; cursor: pointer; transition: all var(--transition-bounce); font-family: var(--font-family); color: var(--text-primary); }
.type-option:hover { border-color: var(--accent-primary); transform: scale(1.02); }
.type-option.selected { border-color: var(--accent-primary); background: var(--accent-subtle); box-shadow: var(--shadow-glow); }
.type-option .type-emoji { font-size: 1.5rem; margin-bottom: 0.3rem; }
.type-option .type-name { font-weight: 700; margin-bottom: 0.1rem; }
.type-option .type-desc { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }

.source-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
.source-option { background: var(--bg-body); border: var(--border-thick) solid var(--border-color); border-radius: var(--radius-md); padding: 0.8rem; text-align: center; cursor: pointer; transition: all var(--transition-bounce); font-family: var(--font-family); color: var(--text-primary); }
.source-option:hover { border-color: var(--accent-primary); }
.source-option.selected { border-color: var(--accent-primary); background: var(--accent-subtle); }

/* ══════════════════════════════════════════
   TRACKING & STUDENT PANEL
   ══════════════════════════════════════════ */
.tracking-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.student-track-card { background: var(--bg-card); border: var(--border-thick) solid var(--border-color); border-radius: var(--radius-lg); padding: 1.25rem; transition: all var(--transition-bounce); }
.student-track-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.student-track-card .student-name { font-weight: 700; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.4rem; }

.student-schedule { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.student-day-card { background: var(--bg-card); border: var(--border-thick) solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; }
.student-day-header { padding: 0.8rem 1.15rem; background: var(--bg-body); border-bottom: var(--border-thick) solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.student-day-header h3 { font-size: 0.95rem; font-weight: 700; }
.student-day-header .hours { font-size: 0.8rem; color: var(--accent-primary); font-weight: 700; }

.student-item { padding: 0.85rem 1rem; border-bottom: var(--border-thick) solid var(--border-color); display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; border-radius: var(--radius-md); transition: background var(--transition-fast); }
.student-item:last-child { border-bottom: none; }
.student-item:hover { background: var(--bg-body); }
.student-item.completed { background: var(--green-bg); opacity: 0.55; }
.student-item.completed .si-title { text-decoration: line-through; }

.student-item .check-btn {
    width: 34px; height: 34px; min-width: 34px; border-radius: 8px;
    border: var(--border-thick) solid var(--border-color);
    background: var(--bg-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-bounce);
    color: transparent; font-size: 0.95rem; flex-shrink: 0;
}
.student-item .check-btn:hover { border-color: var(--green); transform: scale(1.1); }
.student-item.completed .check-btn { background: var(--green); border-color: var(--green); color: white; transform: scale(1); }
.student-item .item-content { flex: 1; gap: 0.4rem; }
.student-item .item-content .item-label { font-size: 0.88rem; font-weight: 700; }
.student-item .item-content .item-detail { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

.student-item[draggable="true"] { cursor: grab; }
.student-item[draggable="true"]:active { cursor: grabbing; }
.student-item.dragging { opacity: 0.4; border: 2px dashed var(--accent-primary) !important; }
.student-item.drag-over-above { border-top: 3px solid var(--accent-primary) !important; }
.student-item.drag-over-below { border-bottom: 3px solid var(--accent-primary) !important; }

/* ══════════════════════════════════════════
   REPORTS & TABLES
   ══════════════════════════════════════════ */
.report-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1rem; }
.report-card { background: var(--bg-card); border: var(--border-thick) solid var(--border-color); border-radius: var(--radius-lg); padding: 1.25rem; }
.report-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.35rem; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th { padding: 0.65rem 0.75rem; text-align: left; font-weight: 700; color: var(--text-muted); border-bottom: var(--border-thick) solid var(--border-color); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--border-light); font-weight: 500; }
.data-table tr:hover td { background: var(--bg-body); }

.students-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.student-card { background: var(--bg-card); border: var(--border-thick) solid var(--border-color); border-radius: var(--radius-lg); padding: 1.25rem; transition: all var(--transition-bounce); cursor: pointer; }
.student-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent-primary); transform: translateY(-2px); }
.student-card .student-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; margin-bottom: 0.75rem; border: var(--border-thick) solid var(--accent-glow); }
.student-card .student-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.15rem; }
.student-card .student-meta { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

.analysis-form { max-width: 560px; }
.analysis-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.analysis-card { background: var(--bg-card); border: var(--border-thick) solid var(--border-color); border-radius: var(--radius-lg); padding: 1.15rem; text-align: center; }
.analysis-card .score { font-size: 1.75rem; font-weight: 800; color: var(--accent-primary); }
.analysis-card .label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; font-weight: 600; }

/* ══════════════════════════════════════════
   COCKPIT
   ══════════════════════════════════════════ */
.cockpit-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.cockpit-summary-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 1.15rem; text-align: center; border: var(--border-thick) solid var(--border-color); }
.cockpit-summary-count { font-size: 1.75rem; font-weight: 800; line-height: 1; margin-bottom: 0.25rem; }
.cockpit-summary-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }

.cockpit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.cockpit-student-card {
    background: var(--bg-card); border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-lg); padding: 1.25rem;
    transition: all var(--transition-bounce);
}
.cockpit-student-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cockpit-metric { text-align: center; }
.cockpit-metric-value { font-size: 1rem; font-weight: 800; color: var(--text-primary); }
.cockpit-metric-label { font-size: 0.68rem; color: var(--text-muted); font-weight: 600; }

.cockpit-alert-item { padding: 0.6rem 0.85rem; border-bottom: var(--border-thick) solid var(--border-color); font-size: 0.85rem; font-weight: 500; transition: background var(--transition-fast); cursor: pointer; }
.cockpit-alert-item:hover { background: var(--danger-bg); }
.cockpit-alert-item:last-child { border-bottom: none; }

/* Cockpit status variants */
.cockpit-summary-card.status-red { border-left: 4px solid var(--danger); }
.cockpit-summary-card.status-red .cockpit-summary-count { color: var(--danger); }
.cockpit-summary-card.status-yellow { border-left: 4px solid var(--warning); }
.cockpit-summary-card.status-yellow .cockpit-summary-count { color: var(--warning); }
.cockpit-summary-card.status-green { border-left: 4px solid var(--green); }
.cockpit-summary-card.status-green .cockpit-summary-count { color: var(--green); }
.cockpit-summary-card.status-gray { border-left: 4px solid var(--text-muted); }
.cockpit-summary-card.status-gray .cockpit-summary-count { color: var(--text-muted); }

.cockpit-student-card.status-red { border-left: 4px solid var(--danger); background: var(--danger-bg); }
.cockpit-student-card.status-yellow { border-left: 4px solid var(--warning); background: var(--warning-bg); }
.cockpit-student-card.status-green { border-left: 4px solid var(--green); background: var(--green-bg); }
.cockpit-student-card.status-gray { border-left: 4px solid var(--text-muted); background: var(--bg-body); }

.cockpit-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.cockpit-card-icon { font-size: 1.3rem; }
.cockpit-card-info { flex: 1; }
.cockpit-card-name { font-weight: 700; font-size: 0.95rem; }
.cockpit-card-meta { font-size: 0.75rem; color: var(--text-muted); }
.cockpit-status-badge {
    padding: 2px 10px; border-radius: var(--radius-full);
    font-size: 0.72rem; font-weight: 700; color: white;
}
.cockpit-status-badge.status-red { background: var(--danger); }
.cockpit-status-badge.status-yellow { background: var(--warning); }
.cockpit-status-badge.status-green { background: var(--green); }
.cockpit-status-badge.status-gray { background: var(--text-muted); }

.cockpit-metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; margin-bottom: 0.5rem; }
.cockpit-badges { margin-top: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.cockpit-badge {
    font-size: 0.72rem; padding: 2px 8px; border-radius: 10px;
    font-weight: 600;
}
.cockpit-badge-danger { color: var(--danger); background: var(--danger-bg); }
.cockpit-badge-warning { color: var(--warning); background: var(--warning-bg); }
.cockpit-badge-info { color: var(--info); background: var(--info-bg); }

.coach-alert {
    background: var(--bg-card); border: var(--border-thick) solid var(--border-color);
    border-left: 5px solid var(--warning);
    border-radius: var(--radius-sm); padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
}
.coach-alert.status-red { border-left-color: var(--danger); background: var(--danger-bg); }
.coach-alert.status-yellow { border-left-color: var(--warning); background: var(--warning-bg); }
.coach-alert.status-green { border-left-color: var(--green); background: var(--green-bg); }
.alert-dismiss { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 0.15rem; transition: color var(--transition-fast); }
.alert-dismiss:hover { color: var(--danger); }

/* ══════════════════════════════════════════
   ONBOARDING
   ══════════════════════════════════════════ */
.ob-container {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    max-width: 640px; margin: 0 auto;
    padding: 1.5rem;
    background: var(--bg-body);
}

.ob-topbar {
    width: 100%; display: flex;
    align-items: center; justify-content: space-between;
    padding: 0.7rem 1.1rem;
    background: var(--bg-card);
    border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 1.75rem;
}
.ob-topbar-brand { display: flex; align-items: center; gap: 0.5rem; }
.ob-topbar-brand img { height: 30px; border-radius: 8px; }
.ob-topbar-brand span { font-size: 1.05rem; font-weight: 800; color: var(--accent-primary); }

.ob-logout-btn {
    background: none; border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.9rem; cursor: pointer;
    color: var(--text-muted); font-size: 0.82rem;
    font-family: var(--font-family); font-weight: 700;
    display: flex; align-items: center; gap: 0.3rem;
    transition: all var(--transition-fast);
}
.ob-logout-btn:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-bg); }

.ob-header { text-align: center; margin-bottom: 0.5rem; width: 100%; }
.ob-header h1 { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.2rem; }
.ob-header p { color: var(--text-muted); font-size: 0.88rem; font-weight: 600; }

.ob-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 1.75rem; width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-lg);
}
.ob-step-dot { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; position: relative; z-index: 1; }
.ob-step-num {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 800;
    border: var(--border-thick) solid var(--border-color);
    background: var(--bg-secondary); color: var(--text-muted);
    transition: all var(--transition-bounce);
}
.ob-step-dot.active .ob-step-num { background: var(--accent-primary); border-color: var(--accent-primary); color: white; box-shadow: 0 0 0 5px var(--accent-glow); transform: scale(1.05); }
.ob-step-dot.completed .ob-step-num { background: var(--green); border-color: var(--green); color: white; }
.ob-step-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 700; white-space: nowrap; }
.ob-step-dot.active .ob-step-label { color: var(--accent-primary); }
.ob-step-dot.completed .ob-step-label { color: var(--green); }
.ob-step-line { flex: 1; height: 4px; background: var(--border-color); min-width: 20px; margin: 0 0.35rem; margin-bottom: 1.3rem; border-radius: 2px; }
.ob-step-line.completed { background: var(--green); }

.ob-card {
    background: var(--bg-card); border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-xl); padding: 2rem;
    margin-bottom: 1.25rem; width: 100%;
    box-shadow: var(--shadow-md); animation: fadeInUp 0.3s ease;
}
.ob-card h2 { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); }
.ob-card > p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; font-weight: 500; }

.ob-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.ob-info-item { background: var(--bg-body); border: var(--border-thick) solid var(--border-color); border-radius: var(--radius-md); padding: 1rem; text-align: center; transition: all var(--transition-fast); }
.ob-info-item:hover { border-color: var(--accent-primary); }
.ob-info-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.ob-info-value { font-size: 1rem; font-weight: 800; color: var(--text-primary); }

.ob-tip { background: var(--accent-subtle); border: var(--border-thick) solid var(--accent-glow); border-radius: var(--radius-sm); padding: 0.85rem 1rem; margin-top: 1.25rem; display: flex; align-items: flex-start; gap: 0.5rem; }
.ob-tip p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.4; margin: 0; font-weight: 500; }

.ob-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.ob-nav .btn { min-width: 130px; }

.ob-total-hours { text-align: center; margin-top: 1rem; padding: 0.8rem; background: var(--accent-subtle); border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--text-secondary); font-weight: 600; border: var(--border-thick) solid var(--accent-glow); }
.ob-total-hours strong { color: var(--accent-primary); font-size: 1.1rem; font-weight: 800; }

.ob-days-grid { display: flex; flex-direction: column; gap: 0.55rem; }
.ob-day-card { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.9rem; background: var(--bg-body); border-radius: var(--radius-sm); border: var(--border-thick) solid var(--border-color); transition: border-color var(--transition-fast); }
.ob-day-card:hover { border-color: var(--accent-primary); }
.ob-day-name { font-weight: 700; font-size: 0.88rem; min-width: 80px; color: var(--text-primary); }
.ob-day-input { flex: 1; display: flex; align-items: center; gap: 0.5rem; }
.ob-day-card input[type="range"] { flex: 1; accent-color: var(--accent-primary); height: 6px; }
.ob-day-value { font-weight: 800; font-size: 0.95rem; min-width: 55px; text-align: center; color: var(--accent-primary); }

.ob-rest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.6rem; }
.ob-rest-btn { padding: 0.75rem; border: var(--border-thick) solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-secondary); cursor: pointer; text-align: center; font-family: var(--font-family); font-weight: 700; font-size: 0.88rem; color: var(--text-secondary); transition: all var(--transition-bounce); }
.ob-rest-btn:hover { border-color: var(--accent-primary); background: var(--accent-subtle); transform: scale(1.02); }
.ob-rest-btn.selected { border-color: var(--green); background: var(--green); color: white; transform: scale(1.02); }

.ob-subjects-list { display: flex; flex-direction: column; gap: 0.5rem; }
.ob-subject-accordion { border: var(--border-thick) solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; transition: border-color var(--transition-fast); }
.ob-subject-accordion:hover { border-color: var(--accent-primary); }
.ob-subject-header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.7rem 0.9rem; background: var(--bg-body); cursor: pointer; font-weight: 700; font-size: 0.88rem; border: none; width: 100%; font-family: var(--font-family); color: var(--text-primary); transition: background var(--transition-fast); }
.ob-subject-header:hover { background: var(--accent-subtle); }
.ob-subject-content { padding: 0.7rem 0.9rem; }
.ob-subject-body { padding: 0.5rem 0.75rem; }

/* ── Resource Tabs ── */
.ob-resource-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.ob-tab {
    flex: 1; padding: 0.6rem 0.85rem; border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-sm); background: var(--bg-secondary);
    cursor: pointer; font-family: var(--font-family); font-size: 0.82rem; font-weight: 700;
    color: var(--text-secondary); transition: all var(--transition-fast); text-align: center;
}
.ob-tab:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.ob-tab.active { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }

.ob-resource-summary {
    font-size: 0.82rem; color: var(--text-muted); font-weight: 600;
    padding: 0.6rem 0.85rem; background: var(--accent-subtle);
    border: var(--border-thick) solid var(--accent-glow);
    border-radius: var(--radius-sm); margin-bottom: 1rem;
}
.ob-resource-summary strong { color: var(--accent-primary); }

.ob-resource-check {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.55rem 0.65rem; cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}
.ob-resource-check:last-child { border-bottom: none; }
.ob-resource-check:hover { background: var(--accent-subtle); }
.ob-resource-check input[type="checkbox"] {
    width: 20px; height: 20px; accent-color: var(--accent-primary);
    cursor: pointer; border-radius: 4px; flex-shrink: 0;
}
.ob-resource-info { flex: 1; }
.ob-resource-name { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.ob-resource-meta { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 500; margin-top: 0.1rem; }

.ob-select-all-btn {
    background: none; border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-sm); padding: 0.2rem 0.5rem;
    font-size: 0.68rem; font-weight: 700; cursor: pointer;
    font-family: var(--font-family); color: var(--text-muted);
    transition: all var(--transition-fast);
}
.ob-select-all-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.ob-chevron { font-size: 0.7rem; color: var(--text-muted); transition: transform var(--transition-fast); }
.ob-empty-hint { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.88rem; font-weight: 500; }

/* ══════════════════════════════════════════
   EXTRAS
   ══════════════════════════════════════════ */
.smart-gen-steps { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin-bottom: 1.15rem; }
.smart-gen-steps .step { padding: 0.25rem 0.65rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; color: var(--text-muted); background: var(--bg-body); border: var(--border-thick) solid var(--border-color); }
.smart-gen-steps .step-line { width: 22px; height: 3px; background: var(--border-color); border-radius: 2px; }
.smart-gen-steps .step.active { color: white; background: var(--accent-primary); border-color: var(--accent-primary); }
.smart-gen-steps .step.done { color: var(--green); border-color: var(--green); }

.priority-matrix-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.8rem; }
.priority-matrix-table th { padding: 0.5rem 0.35rem; text-align: center; font-weight: 700; font-size: 0.72rem; color: var(--text-muted); border-bottom: var(--border-thick) solid var(--border-color); white-space: nowrap; text-transform: uppercase; letter-spacing: 0.3px; }
.priority-matrix-table th:first-child { text-align: left; padding-left: 0.5rem; }
.priority-matrix-table td { padding: 0.4rem 0.35rem; text-align: center; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.priority-matrix-table td:first-child { text-align: left; padding-left: 0.5rem; font-weight: 600; }
.priority-matrix-table tbody tr:hover { background: var(--accent-subtle); }
.priority-matrix-table tfoot td { font-weight: 800; font-size: 0.75rem; color: var(--accent-primary); border-top: var(--border-thick) solid var(--border-color); padding-top: 0.5rem; }
.priority-matrix-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent-primary); cursor: pointer; border-radius: 4px; }
.priority-matrix-table input[type="checkbox"]:disabled { opacity: 0.3; cursor: not-allowed; }
.weekly-hours { font-weight: 800; font-size: 0.78rem; color: var(--accent-primary); white-space: nowrap; }

.star-rating { display: inline-flex; gap: 2px; }
.star-rating .star { font-size: 1.1rem; cursor: pointer; color: var(--border-color); transition: color 0.12s, transform 0.15s; user-select: none; line-height: 1; }
.star-rating .star.active { color: var(--gold); }
.star-rating .star:hover { transform: scale(1.2); }

.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.45rem; margin-top: 0.55rem; }
.preview-day { background: var(--bg-body); border: var(--border-thick) solid var(--border-color); border-radius: var(--radius-sm); padding: 0.5rem; }
.preview-day h5 { font-size: 0.75rem; font-weight: 800; margin-bottom: 0.3rem; color: var(--accent-primary); }
.preview-day-items { font-size: 0.7rem; color: var(--text-secondary); line-height: 1.5; font-weight: 500; }
.preview-day-total { margin-top: 0.3rem; padding-top: 0.3rem; border-top: var(--border-thick) solid var(--border-color); font-weight: 800; font-size: 0.72rem; }
.day-over-limit { border-color: var(--danger) !important; background: var(--danger-bg) !important; }
.preview-day.rest-day { opacity: 0.4; }

.sg-slider-group { display: flex; align-items: center; gap: 0.65rem; margin-top: 0.35rem; }
.sg-slider-group input[type="range"] { flex: 1; accent-color: var(--accent-primary); }
.sg-slider-value { font-weight: 800; font-size: 0.95rem; min-width: 2.5rem; text-align: center; }

.pd-bar-chart { display: flex; align-items: flex-end; gap: 0.4rem; min-height: 140px; padding: 0.75rem 0.35rem 0; }
.pd-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pd-bar-track { width: 100%; max-width: 36px; min-height: 6px; background: var(--bg-body); border-radius: 6px 6px 0 0; position: relative; overflow: hidden; display: flex; align-items: flex-end; transition: height 0.4s ease; }
.pd-bar-fill { width: 100%; border-radius: 6px 6px 0 0; transition: height 0.5s ease; min-height: 2px; }
.pd-bar-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 700; }
.pd-bar-value { font-size: 0.65rem; color: var(--text-secondary); font-weight: 600; }

.toast { background: var(--bg-secondary) !important; border: var(--border-thick) solid var(--border-color) !important; box-shadow: var(--shadow-lg) !important; border-radius: var(--radius-md) !important; font-weight: 600 !important; }

.notification-bell { position: relative; background: none; border: none; font-size: 1.1rem; cursor: pointer; padding: 0.3rem; color: var(--text-muted); transition: all var(--transition-fast); border-radius: 8px; }
.notification-bell:hover { color: var(--text-primary); background: var(--bg-body); }
.notification-badge { position: absolute; top: -4px; right: -6px; background: var(--danger); color: white; font-size: 0.55rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 3px; border: 2px solid var(--bg-secondary); }
.notification-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); display: inline-block; animation: pulse 2s infinite; }

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes completeBounce { 0% { transform: scale(1); } 30% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes progressFill { from { width: 0; } }

.animate-in { animation: fadeInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.animate-in:nth-child(1) { animation-delay: 0.03s; }
.animate-in:nth-child(2) { animation-delay: 0.06s; }
.animate-in:nth-child(3) { animation-delay: 0.09s; }
.animate-in:nth-child(4) { animation-delay: 0.12s; }
.animate-in:nth-child(5) { animation-delay: 0.15s; }
.animate-in:nth-child(6) { animation-delay: 0.18s; }
.animate-in:nth-child(7) { animation-delay: 0.21s; }

/* ══════════════════════════════════════════
   DAY TABS — Student day navigation
   ══════════════════════════════════════════ */
.day-tabs {
    display: flex; align-items: center; justify-content: center;
    gap: 0.35rem; margin-bottom: 1rem; padding: 0.5rem;
    background: var(--bg-card); border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-lg);
}
.day-tab {
    padding: 0.45rem 0.65rem; border: none; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 0.72rem; font-weight: 600;
    font-family: var(--font-family);
    background: transparent; color: var(--text-muted);
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    min-width: 44px; transition: all var(--transition-fast);
}
.day-tab:hover { background: var(--accent-subtle); color: var(--text-primary); }
.day-tab.active {
    background: var(--accent-primary); color: white; font-weight: 700;
    box-shadow: 0 2px 8px var(--accent-glow);
}
.day-tab-date { font-size: 0.6rem; opacity: 0.8; }
.day-tab-dot {
    width: 6px; height: 6px; border-radius: 50%;
    display: inline-block;
}
.day-tab-dot.done { background: var(--green); }
.day-tab-dot.partial { background: var(--accent-primary); }
.day-tab-dot.rest { background: var(--warning); }
.day-tab-dot.empty { background: var(--text-muted); }

.day-nav-btn {
    padding: 0.45rem 0.65rem; border: none; border-radius: var(--radius-sm);
    cursor: pointer; background: none; color: var(--text-muted);
    font-size: 1.1rem; font-weight: 700; font-family: var(--font-family);
    transition: all var(--transition-fast);
}
.day-nav-btn:hover { color: var(--accent-primary); background: var(--accent-subtle); }

/* ── Type Badges ── */
.type-badge {
    display: inline-block; font-size: 0.6rem; font-weight: 700;
    padding: 1px 6px; border-radius: 4px;
    letter-spacing: 0.3px; text-transform: uppercase;
}
.type-badge-konu { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.type-badge-video { background: rgba(214, 48, 49, 0.12); color: #d63031; }
.type-badge-soru { background: var(--green-bg); color: var(--green); }
.type-badge-deneme { background: rgba(225, 112, 85, 0.15); color: #e17055; }
.type-badge-serbest { background: var(--gold-bg); color: var(--gold); }

/* ── Result Badges ── */
.result-badges { display: flex; gap: 0.4rem; margin-top: 4px; align-items: center; flex-wrap: wrap; }
.result-badge {
    font-size: 0.65rem; padding: 2px 6px;
    border-radius: 4px; font-weight: 700;
}
.result-badge-correct { background: var(--green-bg); color: var(--green); }
.result-badge-wrong { background: var(--danger-bg); color: var(--danger); }
.result-badge-blank { background: var(--bg-body); color: var(--text-muted); }
.result-pct { font-size: 0.7rem; font-weight: 800; margin-left: 0.3rem; }

/* ── Active Day Card ── */
.active-day-card {
    border: var(--border-thick) solid var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}
.active-day-card .student-day-header {
    background: var(--accent-subtle);
}

/* ── Day Progress in Header ── */
.day-progress-inline {
    display: flex; align-items: center; gap: 0.75rem; margin-top: 0.4rem;
}
.day-progress-track {
    flex: 1; height: 6px; background: var(--border-color);
    border-radius: 3px; overflow: hidden;
}
.day-progress-fill {
    height: 100%; border-radius: 3px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}
.day-progress-fill.complete { background: var(--green); }
.day-progress-count {
    font-size: 0.75rem; font-weight: 700; color: var(--text-muted);
    white-space: nowrap;
}
.day-progress-count.complete { color: var(--green); }

/* ── Schedule Item Content ── */
.si-type-row { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.2rem; }
.si-title { font-weight: 600; font-size: 0.88rem; margin-top: 0.15rem; }
.si-detail { font-size: 0.78rem; color: var(--accent-secondary); font-weight: 600; margin-top: 0.1rem; }
.si-fallback { font-weight: 600; font-size: 0.85rem; margin-top: 0.3rem; }

/* ── Rest Day Card ── */
.rest-day-display {
    padding: 3rem; text-align: center;
}
.rest-day-display .rest-icon { font-size: 3rem; margin-bottom: 1rem; }
.rest-day-display h2 { margin-bottom: 0.5rem; }
.rest-day-display h2 span { font-weight: 400; color: var(--text-muted); }
.rest-day-display .rest-label { color: var(--warning); font-size: 1.1rem; font-weight: 600; }

/* ── Empty Day ── */
.empty-day {
    padding: 2rem; text-align: center;
    color: var(--text-muted); font-size: 0.9rem;
}

/* ── Waiting Card ── */
.waiting-card {
    text-align: center; padding: 3rem 2rem;
}
.waiting-card .waiting-icon { font-size: 4rem; margin-bottom: 1rem; }
.waiting-card h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.waiting-card p { color: var(--text-muted); font-size: 0.9rem; max-width: 400px; margin: 0 auto; }
.waiting-badge {
    display: inline-block; margin-top: 1.5rem;
    padding: 0.75rem 1.5rem; background: var(--warning-bg);
    border-radius: var(--radius-sm); border: var(--border-thick) solid var(--warning-border);
}
.waiting-badge span { color: var(--warning); font-size: 0.8rem; font-weight: 700; }

/* ══════════════════════════════════════════
   TOPIC MASTERY MODAL
   ══════════════════════════════════════════ */
.topic-summary {
    margin-bottom: 1.25rem; padding: 1rem 1.25rem;
    background: var(--bg-body); border-radius: var(--radius-md);
    border: var(--border-thick) solid var(--border-color);
}
.topic-summary-name { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.topic-legend {
    display: flex; gap: 0.75rem; margin-top: 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
}
.topic-legend span { display: flex; align-items: center; gap: 0.25rem; }

.topic-subject {
    margin-bottom: 1rem; padding: 1rem 1.25rem;
    background: var(--bg-card); border-radius: var(--radius-md);
    border: var(--border-thick) solid var(--border-color);
}
.topic-subject-header {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 700; font-size: 0.92rem; color: var(--text-primary);
    margin-bottom: 0.65rem; padding-bottom: 0.5rem;
    border-bottom: 1.5px solid var(--border-color);
}
.topic-subject-header .topic-subject-count {
    font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
    background: var(--bg-body); padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.topic-row {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 0.5rem; margin-bottom: 0.25rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}
.topic-row:hover { background: var(--bg-body); }
.topic-row-name { flex: 1; font-size: 0.85rem; font-weight: 500; color: var(--text-primary); }
.topic-row-btns { display: flex; gap: 0.3rem; }

.topic-status-btn {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    border: var(--border-thick) solid var(--border-color);
    background: var(--bg-card); cursor: pointer; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast); padding: 0;
}
.topic-status-btn:hover { border-color: var(--accent-primary); transform: scale(1.1); }
.topic-status-btn.active-learned {
    background: var(--green-bg); border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(88, 204, 2, 0.15);
}
.topic-status-btn.active-studying {
    background: var(--accent-subtle); border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}
.topic-status-btn.active-not_started {
    background: var(--bg-body); border-color: var(--text-muted);
    opacity: 0.6;
}

.topic-add-row {
    display: flex; align-items: center; gap: 0.5rem;
    margin-top: 0.65rem; padding-top: 0.5rem;
    border-top: 1px dashed var(--border-color);
}
.topic-add-row input[type="text"] {
    flex: 1; font-size: 0.82rem; padding: 0.4rem 0.65rem;
    border-radius: var(--radius-sm); border: var(--border-thick) solid var(--border-color);
    background: var(--bg-body); color: var(--text-primary);
    font-family: var(--font-family);
}
.topic-add-row input[type="text"]:focus { border-color: var(--accent-primary); outline: none; }

.topic-scroll { max-height: 60vh; overflow-y: auto; padding-right: 0.25rem; }
.topic-scroll::-webkit-scrollbar { width: 5px; }
.topic-scroll::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

/* ══════════════════════════════════════════
   MEETING / GÖRÜŞME
   ══════════════════════════════════════════ */
.meeting-form-card { border: var(--border-thick) solid var(--accent-primary); }
.meeting-form-card .card-header { border-bottom: var(--border-thick) solid var(--border-color); }
.meeting-form-body { padding: 1.25rem; }

.meeting-category {
    margin-bottom: 1.25rem; padding: 1rem;
    background: var(--bg-body); border-radius: var(--radius-md);
    border: var(--border-thick) solid var(--border-color);
}
.meeting-category-header {
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 700; font-size: 0.88rem; color: var(--text-primary);
    margin-bottom: 0.75rem; padding-bottom: 0.5rem;
    border-bottom: 1.5px solid var(--border-color);
}

.meeting-item {
    padding: 0.65rem 0.75rem; margin-bottom: 0.5rem;
    background: var(--bg-card); border-radius: var(--radius-sm);
    border: var(--border-thick) solid var(--border-color);
    transition: all var(--transition-fast);
}
.meeting-item:last-child { margin-bottom: 0; }
.meeting-item.answered {
    background: var(--green-bg); border-color: var(--green);
}
.meeting-item-header { display: flex; align-items: flex-start; }

.meeting-checkbox {
    display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer;
    font-size: 0.85rem; font-weight: 500; color: var(--text-primary);
}
.meeting-checkbox input[type="checkbox"] {
    width: 18px; height: 18px; margin-top: 2px; cursor: pointer;
    accent-color: var(--green); border-radius: 4px; flex-shrink: 0;
}
.meeting-question { line-height: 1.45; }
.meeting-question.strikethrough { text-decoration: line-through; color: var(--text-muted); }

.meeting-answers {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    margin-top: 0.5rem; padding-left: 1.75rem;
}
.meeting-answer-btn {
    padding: 0.35rem 0.85rem; border-radius: var(--radius-full);
    border: var(--border-thick) solid var(--border-color);
    background: var(--bg-card); color: var(--text-secondary);
    font-size: 0.78rem; font-weight: 700; cursor: pointer;
    transition: all var(--transition-fast); font-family: var(--font-family);
}
.meeting-answer-btn:hover {
    border-color: var(--accent-primary); color: var(--accent-primary);
    background: var(--accent-subtle);
}
.meeting-answer-btn.selected {
    background: var(--accent-primary); color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.meeting-note-input {
    width: 100%; margin-top: 0.5rem; padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm); border: var(--border-thick) solid var(--border-color);
    background: var(--bg-body); color: var(--text-primary);
    font-size: 0.82rem; font-family: var(--font-family);
    resize: vertical; min-height: 40px;
}
.meeting-note-input:focus { border-color: var(--accent-primary); outline: none; }

.meeting-action-item {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 0.4rem; padding: 0.45rem 0.5rem;
    background: var(--bg-card); border-radius: var(--radius-sm);
    border: var(--border-thick) solid var(--border-color);
}
.meeting-action-item input[type="checkbox"] {
    width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; flex-shrink: 0;
}
.meeting-action-input {
    flex: 1; padding: 0.35rem 0.5rem; border: none; background: transparent;
    color: var(--text-primary); font-size: 0.84rem; font-family: var(--font-family);
}
.meeting-action-input:focus { outline: none; }
.meeting-action-input::placeholder { color: var(--text-muted); }

.meeting-summary-input {
    width: 100%; min-height: 80px; padding: 0.75rem;
    border-radius: var(--radius-sm); border: var(--border-thick) solid var(--border-color);
    background: var(--bg-body); color: var(--text-primary);
    font-size: 0.85rem; font-family: var(--font-family);
    resize: vertical;
}
.meeting-summary-input:focus { border-color: var(--accent-primary); outline: none; }

.meeting-section-label {
    font-weight: 700; font-size: 0.85rem; color: var(--text-primary);
    display: block; margin-bottom: 0.5rem;
}

.meeting-footer {
    display: flex; gap: 0.75rem; margin-top: 1.5rem;
    padding-top: 1rem; border-top: var(--border-thick) solid var(--border-color);
}
.meeting-footer .btn { flex: 1; }

.meeting-custom-btn {
    margin: 1rem 0; padding: 0.5rem 1rem;
    border: 2px dashed var(--border-color); border-radius: var(--radius-sm);
    background: transparent; color: var(--text-muted); font-weight: 600;
    font-size: 0.82rem; cursor: pointer; transition: all var(--transition-fast);
    font-family: var(--font-family); width: 100%;
}
.meeting-custom-btn:hover {
    border-color: var(--accent-primary); color: var(--accent-primary);
    background: var(--accent-subtle);
}
.meeting-custom-area { margin: 1rem 0; }
.meeting-custom-input-row {
    display: flex; gap: 0.5rem; align-items: center;
    padding: 0.75rem; background: var(--bg-body);
    border-radius: var(--radius-sm); border: var(--border-thick) solid var(--accent-primary);
}
.meeting-custom-input {
    flex: 1; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
    border: var(--border-thick) solid var(--border-color); background: var(--bg-card);
    color: var(--text-primary); font-size: 0.85rem; font-family: var(--font-family);
}
.meeting-custom-input:focus { border-color: var(--accent-primary); outline: none; }

/* Past meetings */
.meeting-past-card {
    border-bottom: 1px solid var(--border-color);
}
.meeting-past-card:last-child { border-bottom: none; }
.meeting-past-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 1.25rem; cursor: pointer;
    transition: background var(--transition-fast);
}
.meeting-past-header:hover { background: var(--bg-body); }
.meeting-past-header strong { font-size: 0.88rem; }
.meeting-past-header .tag { margin-left: 0.5rem; }
.meeting-past-body {
    padding: 1rem 1.25rem; border-top: 1px solid var(--border-color);
}
.meeting-past-preview {
    font-size: 0.78rem; color: var(--text-muted); padding: 0.2rem 0;
}
.meeting-past-preview .past-question { text-decoration: line-through; }
.meeting-past-preview .past-answer { color: var(--accent-primary); margin-left: 0.35rem; font-weight: 600; }
.meeting-past-summary {
    margin-top: 0.5rem; padding: 0.6rem 0.75rem;
    background: var(--accent-subtle); border-radius: var(--radius-sm);
    font-size: 0.82rem; border: 1px solid var(--accent-light);
}

/* ══════════════════════════════════════════
   RESOURCES PAGE (Kaynaklarım)
   ══════════════════════════════════════════ */
.res-stats {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.25rem;
}
.res-subject {
    background: var(--bg-card); border-radius: var(--radius-md);
    border: var(--border-thick) solid var(--border-color);
    margin-bottom: 1rem; overflow: hidden;
}
.res-subject-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 1.15rem; font-weight: 700; font-size: 0.92rem;
    background: var(--bg-body); border-bottom: var(--border-thick) solid var(--border-color);
}
.res-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.75rem 1.15rem;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}
.res-item:last-child { border-bottom: none; }
.res-item:hover { background: var(--bg-body); }
.res-item-icon {
    font-size: 1.3rem; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-subtle); border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.res-item-body { flex: 1; min-width: 0; }
.res-item-name { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); margin-bottom: 0.15rem; }
.res-item-meta { font-size: 0.75rem; color: var(--text-muted); }
.res-item-pct { font-size: 0.72rem; font-weight: 700; color: var(--text-secondary); min-width: 32px; text-align: right; }
.res-item-link {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    background: var(--accent-subtle); color: var(--accent-primary);
    font-weight: 700; font-size: 0.9rem; text-decoration: none;
    transition: all var(--transition-fast); flex-shrink: 0; align-self: center;
}
.res-item-link:hover { background: var(--accent-primary); color: white; }

/* Comparison delta (weekly summary) */
.comparison-delta {
    padding: 0.6rem 0.85rem; margin: 0.65rem 0;
    border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 700;
    border: var(--border-thick) solid var(--border-color);
}
.comparison-delta.positive { background: var(--green-bg); color: var(--green); border-color: var(--success-border); }
.comparison-delta.negative { background: var(--danger-bg); color: var(--danger); border-color: rgba(255,75,75,0.2); }
.comparison-delta.neutral { background: var(--bg-body); color: var(--text-muted); }

/* ══════════════════════════════════════════
   CARRYOVER (Dünden Kalan)
   ══════════════════════════════════════════ */
.carryover-section {
    margin-bottom: 1rem; padding: 0.85rem 1rem;
    background: var(--warning-bg); border-radius: var(--radius-md);
    border: var(--border-thick) solid var(--warning-border);
}
.carryover-header {
    display: flex; align-items: center; gap: 0.5rem;
    font-weight: 700; font-size: 0.85rem; color: var(--warning);
    margin-bottom: 0.65rem; padding-bottom: 0.5rem;
    border-bottom: 1.5px solid var(--warning-border);
}
.carryover-header .carryover-day {
    font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
    background: var(--bg-card); padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full); margin-left: auto;
}
.carryover-item {
    border-left: 3px solid var(--warning) !important;
    background: var(--bg-card) !important;
}

/* ══════════════════════════════════════════
   SIDEBAR COLLAPSE (Desktop)
   ══════════════════════════════════════════ */
.sidebar-collapse-btn {
    background: none; border: none; color: var(--sidebar-text);
    cursor: pointer; font-size: 1.1rem; padding: 0.4rem;
    border-radius: var(--radius-sm); transition: all var(--transition-fast);
    display: flex; align-items: center; justify-content: center;
    margin-left: auto;
}
.sidebar-collapse-btn:hover { background: var(--sidebar-hover); color: var(--text-primary); }

/* ══════════════════════════════════════════
   RESOURCE MANAGEMENT — TWO-COLUMN LAYOUT
   ══════════════════════════════════════════ */
.res-layout { display: flex; gap: 0; min-height: calc(100vh - 280px); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); }
.res-left-panel { width: 240px; flex-shrink: 0; border-right: 1px solid var(--border-color); overflow-y: auto; background: var(--bg-secondary); }
.res-right-panel { flex: 1; padding: 1rem 1.25rem; overflow-y: auto; max-height: calc(100vh - 280px); }

.res-subject-item { display: flex; align-items: center; gap: 8px; padding: 0.6rem 0.75rem; cursor: pointer; transition: background 0.15s, border-color 0.15s; border-left: 3px solid transparent; }
.res-subject-item:hover { background: var(--bg-hover); }
.res-subject-item.active { background: var(--bg-card); border-left-color: var(--accent-primary); }

.res-section-title { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }

.res-card { border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 6px; overflow: hidden; transition: border-color 0.15s, background 0.15s; }
.res-card.assigned { border-color: var(--success); border-left: 3px solid var(--success); background: rgba(88,204,2,0.04); }
.res-card-header { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; user-select: none; }
.res-card-title { font-weight: 600; font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-card-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; }

.res-toggle-btn { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-color); background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); transition: all 0.15s; }
.res-toggle-btn:hover { border-color: var(--success); color: var(--success); }
.res-toggle-btn.assigned { border-color: var(--success); background: var(--success); color: #fff; }
.res-toggle-btn.assigned:hover { background: #e53e3e; border-color: #e53e3e; }

.res-edit-btn { flex-shrink: 0; background: none; border: 1px solid var(--border-color); border-radius: 4px; cursor: pointer; padding: 2px 6px; font-size: 0.72rem; color: var(--text-muted); transition: all 0.15s; }
.res-edit-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.res-accordion { margin-bottom: 12px; border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; }
.res-accordion-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; cursor: pointer; user-select: none; background: var(--bg-secondary); font-size: 0.8rem; font-weight: 700; color: var(--text-primary); transition: background 0.15s; }
.res-accordion-header:hover { background: var(--bg-hover); }
.res-accordion-arrow { font-size: 0.55rem; color: var(--text-muted); transition: transform 0.25s ease; }
.res-accordion-badge { font-size: 0.68rem; font-weight: 600; padding: 1px 8px; border-radius: 10px; background: var(--accent-subtle); color: var(--accent-primary); }
.res-accordion-body { padding: 10px 12px; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.4rem; cursor: pointer; padding: 0.4rem; border-radius: 8px; }
.mobile-menu-btn:hover { background: var(--bg-body); }

@media (min-width: 769px) { body { zoom: 0.85; } }

@media (max-width: 1200px) {
    .schedule-container { grid-template-columns: repeat(4, 1fr); }
    .schedule-layout { flex-direction: column; }
    .resource-pool { width: 100%; position: static; max-height: 350px; }
    .cockpit-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .sidebar { transform: translateX(-100%); width: 270px; z-index: 200; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.45); z-index: 199; }
    .sidebar-overlay.active { display: block; }
    .main-content { margin-left: 0; padding: 1.15rem; }
    .schedule-container { grid-template-columns: 1fr 1fr; }
    .subject-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .page-header h1 { font-size: 1.25rem; }
    .cockpit-summary { grid-template-columns: 1fr 1fr; }
    .sidebar-nav button { min-height: 48px; font-size: 0.88rem; }
    .modal { max-width: 95vw; }
    .page-header .flex { flex-wrap: wrap; }
    [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
    .ob-info-grid { grid-template-columns: 1fr; }
    .res-layout { flex-direction: column; min-height: auto; }
    .res-left-panel { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); max-height: 200px; }
    .res-right-panel { max-height: none; }

    .landing-platform-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
    .login-logo { height: 48px; }

    .dashboard-stats { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .welcome-banner { flex-direction: column; text-align: center; padding: 1.5rem; }
    .panel-topbar { flex-direction: column; align-items: flex-start; }
    .day-tabs { gap: 0.2rem; padding: 0.35rem; overflow-x: auto; justify-content: flex-start; }
    .day-tab { min-width: 38px; padding: 0.35rem 0.45rem; }
    .cockpit-metrics { grid-template-columns: 1fr 1fr 1fr; gap: 0.35rem; }
    .sidebar-collapse-btn { display: none; }
    body.sidebar-collapsed .main-content { margin-left: 0; }
}

@media (max-width: 480px) {
    .schedule-container { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .subject-grid { grid-template-columns: 1fr; }
    .sidebar { width: 100vw; }
    .cockpit-summary { grid-template-columns: 1fr; }
    .schedule-item { padding: 0.5rem 0.45rem; font-size: 0.8rem; }
    .btn-sm { min-height: 36px; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
    .stat-card { padding: 0.65rem; }
    .pd-bar-chart { min-height: 100px; gap: 0.25rem; }

    .login-brand { font-size: 1.2rem; }
}

/* ══════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--green); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-accent { color: var(--accent-primary); }

.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }

.step-indicator { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 1rem; }
.step { display: flex; align-items: center; gap: 0.2rem; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.step.active { color: var(--accent-primary); font-weight: 700; }
.step.done { color: var(--green); }
.step-line { width: 22px; height: 3px; background: var(--border-color); border-radius: 2px; }
.step-line.done { background: var(--green); }

.tag { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.2rem 0.55rem; border-radius: var(--radius-full); font-size: 0.7rem; font-weight: 700; }
.tag-purple { background: var(--accent-subtle); color: var(--accent-primary); }
.tag-green { background: var(--green-bg); color: var(--green); }
.tag-orange { background: var(--warning-bg); color: var(--warning); }
.tag-red { background: var(--danger-bg); color: var(--danger); }
.tag-blue { background: var(--info-bg); color: var(--info); }

.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 0.85rem; opacity: 0.4; }
.empty-state p { font-size: 0.92rem; font-weight: 500; }

.chip-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { padding: 0.35rem 0.8rem; border-radius: var(--radius-full); border: var(--border-thick) solid var(--border-color); background: var(--bg-secondary); color: var(--text-secondary); font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: all var(--transition-fast); font-family: var(--font-family); }
.chip:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.chip.active { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }

.toggle-wrapper { display: flex; align-items: center; gap: 0.6rem; }
.toggle { position: relative; width: 44px; height: 24px; background: var(--border-color); border-radius: 12px; cursor: pointer; transition: background var(--transition-fast); border: var(--border-thick) solid transparent; }
.toggle.active { background: var(--green); }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: white; border-radius: 50%; transition: transform var(--transition-fast); box-shadow: var(--shadow-sm); }
.toggle.active::after { transform: translateX(20px); }

/* ══════════════════════════════════════════
   MISSING TAG VARIANT
   ══════════════════════════════════════════ */
.tag-yellow { background: var(--gold-bg); color: #b8860b; }
[data-theme="dark"] .tag-yellow { color: var(--gold); }

/* ══════════════════════════════════════════
   REVIEW BUTTONS (Flashcard & Mistake)
   ══════════════════════════════════════════ */
.review-btn-group {
    display: flex; gap: 0.4rem; margin-top: 0.5rem;
}
.review-btn {
    padding: 0.4rem 0.85rem; border-radius: var(--radius-full);
    border: var(--border-thick) solid var(--border-color);
    background: var(--bg-card); color: var(--text-secondary);
    font-size: 0.78rem; font-weight: 700; cursor: pointer;
    transition: all var(--transition-fast); font-family: var(--font-family);
}
.review-btn:hover { transform: translateY(-1px); }
.review-btn.hard {
    border-color: var(--danger-border); color: var(--danger);
}
.review-btn.hard:hover { background: var(--danger-bg); }
.review-btn.medium {
    border-color: var(--warning-border); color: var(--warning);
}
.review-btn.medium:hover { background: var(--warning-bg); }
.review-btn.easy {
    border-color: var(--success-border); color: var(--green);
}
.review-btn.easy:hover { background: var(--green-bg); }

/* ══════════════════════════════════════════
   RANKING SIMULATOR (sim-*)
   ══════════════════════════════════════════ */
.sim-slider-row {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.35rem 0; margin-bottom: 0.25rem;
}
.sim-slider-row label {
    min-width: 120px; font-size: 0.82rem; font-weight: 600;
    color: var(--text-secondary);
}
.sim-slider {
    flex: 1; accent-color: var(--accent-primary); height: 6px;
}
.sim-slider-val {
    min-width: 32px; text-align: center;
    font-size: 0.82rem; font-weight: 800; color: var(--accent-primary);
}
.sim-result {
    margin-top: 1rem; padding: 1rem;
    background: var(--bg-body); border-radius: var(--radius-md);
    border: var(--border-thick) solid var(--border-color);
}
.sim-delta {
    margin-top: 0.35rem; font-size: 0.82rem; font-weight: 700;
}
.sim-delta .positive { color: var(--green); }
.sim-delta .negative { color: var(--danger); }
.sim-delta .neutral { color: var(--text-muted); }

/* ══════════════════════════════════════════
   SVG CHARTS & HEATMAP
   ══════════════════════════════════════════ */
.svg-chart-container {
    width: 100%; overflow-x: auto; padding: 0.25rem 0;
}
.svg-chart-container svg {
    width: 100%; max-width: 700px; height: auto; display: block; margin: 0 auto;
    font-family: var(--font-family);
}
.svg-chart-legend {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
    justify-content: center; margin-top: 0.5rem;
    font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
}
.svg-chart-legend-item {
    display: inline-flex; align-items: center; gap: 0.3rem;
}

/* ── Heatmap ── */
.heatmap-card { padding-bottom: 0.75rem; }
.heatmap-stats {
    display: flex; gap: 1.5rem; padding: 0 1rem 0.75rem; flex-wrap: wrap;
}
.heatmap-stat {
    display: flex; align-items: baseline; gap: 0.35rem;
}
.heatmap-stat-val {
    font-size: 1.1rem; font-weight: 800;
}
.heatmap-stat-val.accent { color: var(--accent-primary); }
.heatmap-stat-val.success { color: var(--green, #58cc02); }
.heatmap-stat-val.streak { color: var(--streak-orange, #ff9600); }
.heatmap-stat-lbl {
    font-size: 0.78rem; color: var(--text-muted);
}
.heatmap-container {
    width: 100%; overflow-x: auto; padding: 0 0.75rem 0.25rem;
}
.heatmap-svg {
    display: block; width: 100%; max-width: 720px; margin: 0 auto;
    font-family: var(--font-family);
}
.hm-month, .hm-day {
    fill: var(--text-muted); font-size: 9px;
}
/* Heatmap cell colors — dark mode (default) */
.hm-cell[data-level="0"] { fill: #252a40; stroke: #2e3450; stroke-width: 1; }
.hm-cell[data-level="1"] { fill: #1a5a32; }
.hm-cell[data-level="2"] { fill: #2d8a4e; }
.hm-cell[data-level="3"] { fill: #3fba61; }
.hm-cell[data-level="4"] { fill: #58cc02; }
/* Heatmap cell colors — light mode */
[data-theme="light"] .hm-cell[data-level="0"] { fill: #ebedf0; stroke: #d0d7de; stroke-width: 1; }
[data-theme="light"] .hm-cell[data-level="1"] { fill: #9be9a8; }
[data-theme="light"] .hm-cell[data-level="2"] { fill: #40c463; }
[data-theme="light"] .hm-cell[data-level="3"] { fill: #30a14e; }
[data-theme="light"] .hm-cell[data-level="4"] { fill: #216e39; }

/* ══════════════════════════════════════════
   FLASHCARD
   ══════════════════════════════════════════ */
.flashcard {
    perspective: 1000px; min-height: 180px;
    margin: 1rem 0;
}
.flashcard-inner {
    position: relative; width: 100%; min-height: 180px;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}
.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}
.flashcard-front, .flashcard-back {
    position: absolute; inset: 0; width: 100%; min-height: 180px;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; text-align: center;
    backface-visibility: hidden;
    background: var(--bg-body); border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-lg);
}
.flashcard-back {
    transform: rotateY(180deg);
    background: var(--accent-subtle); border-color: var(--accent-glow);
}

/* ══════════════════════════════════════════
   STUDENT PANEL — Item Subject Badges
   ══════════════════════════════════════════ */
.student-item .item-label {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.5rem; margin-bottom: 0.2rem;
}
.student-item .item-subject {
    display: inline-block; padding: 0.1rem 0.35rem;
    border-radius: 6px; font-size: 0.6rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.student-item .item-subject.turkce { background: rgba(239,68,68,0.1); color: var(--color-turkce); }
.student-item .item-subject.matematik { background: rgba(124,58,237,0.1); color: var(--color-matematik); }
.student-item .item-subject.geometri { background: rgba(124,58,237,0.08); color: #6d28d9; }
.student-item .item-subject.tarih { background: rgba(245,158,11,0.1); color: var(--color-tarih); }
.student-item .item-subject.cografya { background: rgba(6,182,212,0.1); color: var(--color-cografya); }
.student-item .item-subject.vatandaslik { background: rgba(236,72,153,0.1); color: var(--color-vatandaslik); }
.student-item .item-subject.guncel { background: rgba(16,185,129,0.1); color: var(--color-guncel); }
.student-item .item-subject.fizik { background: rgba(59,130,246,0.1); color: #3b82f6; }
.student-item .item-subject.kimya { background: rgba(168,85,247,0.1); color: #a855f7; }
.student-item .item-subject.biyoloji { background: rgba(34,197,94,0.1); color: #22c55e; }
.student-item .item-subject.edebiyat { background: rgba(244,63,94,0.1); color: #f43f5e; }
.student-item .item-subject.felsefe { background: rgba(139,92,246,0.1); color: #8b5cf6; }
.student-item .item-subject.din { background: rgba(20,184,166,0.1); color: #14b8a6; }
.student-item .item-subject.ingilizce { background: rgba(251,146,60,0.1); color: #fb923c; }
.student-item .item-subject.sosyoloji { background: rgba(236,72,153,0.08); color: #ec4899; }
.student-item .item-subject.psikoloji { background: rgba(249,115,22,0.1); color: #f97316; }
.student-item .item-subject.mantik { background: rgba(99,102,241,0.1); color: #6366f1; }

/* ══════════════════════════════════════════
   DARK THEME — Additional Overrides
   ══════════════════════════════════════════ */
/* Form elements outside .form-group (standalone inputs in modals, inline selects) */
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    border-color: var(--accent-primary);
}
[data-theme="dark"] input::placeholder {
    color: var(--text-muted);
}

/* Modal dark overrides */
[data-theme="dark"] .modal-overlay {
    background: rgba(0,0,0,0.65);
}

/* Flashcard dark mode */
[data-theme="dark"] .flashcard-front {
    background: var(--bg-card);
}
[data-theme="dark"] .flashcard-back {
    background: var(--accent-subtle);
}


/* Resource page cards in admin — dark-safe background */
[data-theme="dark"] .res-item:hover {
    background: var(--bg-elevated);
}

/* Meeting category dark mode */
[data-theme="dark"] .meeting-category {
    background: var(--bg-elevated);
}

/* Sim result dark override */
[data-theme="dark"] .sim-result {
    background: var(--bg-card);
}

/* ══════════════════════════════════════════
   RESPONSIVE — Additional Fixes
   ══════════════════════════════════════════ */
/* res-stats grid: single column on mobile */
@media (max-width: 768px) {
    .res-stats { grid-template-columns: 1fr; }
    .sim-slider-row { flex-wrap: wrap; }
    .sim-slider-row label { min-width: 100%; margin-bottom: 0.15rem; }
    .topic-scroll { max-height: 50vh; }
    .meeting-form-body { padding: 0.85rem; }
    .meeting-category { padding: 0.75rem; }
    .meeting-answers { padding-left: 0; }
    .meeting-footer { flex-direction: column; }
    .cockpit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .res-stats { grid-template-columns: 1fr; }
    .review-btn { padding: 0.3rem 0.65rem; font-size: 0.72rem; }
    .flashcard-front, .flashcard-back { padding: 1rem; min-height: 140px; }
}

/* ══════════════════════════════════════════
   INLINE STYLE REPLACEMENT CLASSES
   ══════════════════════════════════════════ */
/* Modal test result inputs (D/Y/B) */
.test-input-group {
    display: flex; gap: 1rem; margin-bottom: 1rem;
}
.test-input-col {
    flex: 1;
}
.test-input-col label {
    font-size: 0.75rem; font-weight: 600; display: block; margin-bottom: 0.25rem;
}
.test-input-col label.label-correct { color: var(--success); }
.test-input-col label.label-wrong { color: var(--danger); }
.test-input-col label.label-blank { color: var(--text-muted); }
.test-input-col input {
    width: 100%; padding: 0.5rem;
    background: var(--bg-body); border: var(--border-thick) solid var(--border-color);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 1.1rem; text-align: center;
    font-family: var(--font-family);
}
.test-input-col input:focus {
    border-color: var(--accent-primary); outline: none;
    box-shadow: var(--shadow-glow);
}

.test-result-preview {
    background: var(--accent-subtle); padding: 0.6rem;
    border-radius: var(--radius-sm); font-size: 0.82rem;
    color: var(--accent-secondary); text-align: center;
}

/* Stat metric center display (used in progress/parent DYB) */
.metric-center {
    text-align: center;
}
.metric-center-value {
    font-size: 1.3rem; font-weight: 800; line-height: 1.2;
}
.metric-center-label {
    font-size: 0.68rem; color: var(--text-muted); margin-top: 0.1rem;
}

/* Resource admin section labels */
.res-section-label {
    font-size: 0.68rem; font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.6px;
    margin: 8px 0 6px;
}

/* Resource accordion card (for admin resource page) */
.res-accordion {
    border: 1px solid var(--border-color); border-radius: 6px;
    margin-bottom: 6px; overflow: hidden;
}
.res-accordion-header {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; cursor: pointer;
    background: var(--bg-body); user-select: none;
    transition: background var(--transition-fast);
}
.res-accordion-header:hover { background: var(--accent-subtle); }
.res-accordion-body {
    padding: 8px 12px 4px; max-height: 280px; overflow-y: auto;
    border-top: 1px solid var(--border-color);
}
.res-accordion-icon { font-size: 1.1rem; flex-shrink: 0; }
.res-accordion-info { flex: 1; min-width: 0; }
.res-accordion-name {
    font-weight: 600; font-size: 0.82rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.res-accordion-meta {
    font-size: 0.7rem; color: var(--text-muted); margin-top: 1px;
}
.res-accordion-chevron {
    font-size: 0.65rem; color: var(--text-muted);
    transition: transform 0.2s; flex-shrink: 0;
}

/* Exam type sidebar accent (admin resources) */
.exam-type-section {
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 6px 6px 0; margin-bottom: 10px; overflow: hidden;
}

/* DYB stacked progress bar */
.dyb-stacked-bar {
    display: flex; height: 8px; border-radius: 4px; overflow: hidden;
    background: var(--bg-secondary);
}
.dyb-bar-correct { background: var(--green); }
.dyb-bar-wrong { background: var(--danger); }
.dyb-bar-blank { background: var(--text-muted); opacity: 0.3; }

/* Student info card (admin viewStudent modal) */
.student-detail-header {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.student-detail-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--accent-gradient);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700; color: white;
}
.student-detail-codes {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem;
}
.student-code-box {
    background: var(--accent-subtle); padding: 0.75rem;
    border-radius: var(--radius-sm); text-align: center;
}
.student-code-box.info-variant {
    background: var(--info-bg);
}
.student-code-box-label {
    font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.15rem;
}
.student-code-box-value {
    font-weight: 700;
}
.student-code-box-value.accent { color: var(--accent-secondary); }
.student-code-box-value.info { color: var(--info); }

/* Sidebar logout button margin helper */
.sidebar-footer .btn { margin-top: 0.75rem; }

/* Exam analysis subject row */
.exam-subject-row {
    display: grid; grid-template-columns: 160px 1fr 1fr 1fr;
    gap: 0.5rem; align-items: center;
    padding: 0.5rem 0; border-bottom: 1px solid var(--border-color);
}
.exam-subject-label {
    font-size: 0.82rem; font-weight: 600;
}
@media (max-width: 480px) {
    .exam-subject-row { grid-template-columns: 1fr 1fr 1fr; }
    .exam-subject-label { grid-column: 1 / -1; }
}
