/* ==========================================================================
   EDREMIT HEM BİLGİSAYAR İŞLETMENLİĞİ KURSU - MODERN LMS DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800;900&display=swap');

/* =================================================================
   TEMA 1 – Gece Mavisi (Varsayılan)
   ================================================================= */
:root,
[data-theme="night-blue"] {
    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --bg-main: #0b0f19;
    --bg-card: rgba(18, 26, 43, 0.85);
    --bg-card-hover: rgba(28, 38, 62, 0.95);
    --bg-input: #151d30;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(99, 102, 241, 0.4);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-purple: #a855f7;

    --status-completed: #10b981;
    --status-active: #3b82f6;
    --status-locked: #475569;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.35);
    --shadow-glow-emerald: 0 0 30px rgba(16, 185, 129, 0.35);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Navbar */
    --navbar-bg: rgba(11, 15, 25, 0.85);

    /* Arka Plan Gradienti */
    --body-gradient:
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.8) 0%, transparent 100%);

    /* Buton / vurgu rengi */
    --btn-primary-from: #3b82f6;
    --btn-primary-to:   #6366f1;
    --tab-active-color: #3b82f6;
    --brand-grad-from: #3b82f6;
    --brand-grad-to:   #6366f1;
}

/* =================================================================
   TEMA 2 – Orman Yeşili
   ================================================================= */
[data-theme="forest-green"] {
    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --bg-main: #071510;
    --bg-card: rgba(10, 30, 20, 0.88);
    --bg-card-hover: rgba(18, 48, 32, 0.95);
    --bg-input: #0d2018;
    --border-color: rgba(255, 255, 255, 0.07);
    --border-highlight: rgba(16, 185, 129, 0.4);

    --text-primary: #f0fdf4;
    --text-secondary: #86efac;
    --text-muted: #4ade80;

    --accent-blue: #22d3ee;
    --accent-indigo: #10b981;
    --accent-emerald: #4ade80;
    --accent-amber: #fbbf24;
    --accent-rose: #f87171;
    --accent-purple: #a3e635;

    --status-completed: #4ade80;
    --status-active: #22d3ee;
    --status-locked: #374151;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow-blue: 0 0 30px rgba(34, 211, 238, 0.3);
    --shadow-glow-emerald: 0 0 30px rgba(74, 222, 128, 0.35);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --navbar-bg: rgba(7, 21, 16, 0.9);

    --body-gradient:
        radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(7, 21, 16, 0.85) 0%, transparent 100%);

    --btn-primary-from: #10b981;
    --btn-primary-to:   #22d3ee;
    --tab-active-color: #10b981;
    --brand-grad-from: #10b981;
    --brand-grad-to:   #22d3ee;
}

/* =================================================================
   TEMA 3 – Mor Gün Batımı
   ================================================================= */
[data-theme="purple-sunset"] {
    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --bg-main: #0f0714;
    --bg-card: rgba(24, 10, 36, 0.88);
    --bg-card-hover: rgba(38, 16, 58, 0.95);
    --bg-input: #180b24;
    --border-color: rgba(255, 255, 255, 0.07);
    --border-highlight: rgba(168, 85, 247, 0.4);

    --text-primary: #fdf4ff;
    --text-secondary: #d8b4fe;
    --text-muted: #a78bfa;

    --accent-blue: #c084fc;
    --accent-indigo: #a855f7;
    --accent-emerald: #f472b6;
    --accent-amber: #fb923c;
    --accent-rose: #f43f5e;
    --accent-purple: #e879f9;

    --status-completed: #f472b6;
    --status-active: #c084fc;
    --status-locked: #4b3563;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow-blue: 0 0 30px rgba(192, 132, 252, 0.35);
    --shadow-glow-emerald: 0 0 30px rgba(244, 114, 182, 0.3);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --navbar-bg: rgba(15, 7, 20, 0.9);

    --body-gradient:
        radial-gradient(circle at 15% 15%, rgba(168, 85, 247, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(244, 114, 182, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 50% 10%, rgba(251, 146, 60, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(15, 7, 20, 0.85) 0%, transparent 100%);

    --btn-primary-from: #a855f7;
    --btn-primary-to:   #ec4899;
    --tab-active-color: #c084fc;
    --brand-grad-from: #a855f7;
    --brand-grad-to:   #ec4899;
}

/* =================================================================
   TEMA 4 – Kehribar Ateşi (Amber Gold)
   ================================================================= */
[data-theme="amber-gold"] {
    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --bg-main: #130e06;
    --bg-card: rgba(30, 20, 10, 0.88);
    --bg-card-hover: rgba(48, 32, 16, 0.95);
    --bg-input: #1a1208;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(245, 158, 11, 0.45);

    --text-primary: #fffbeb;
    --text-secondary: #fde68a;
    --text-muted: #d97706;

    --accent-blue: #f59e0b;
    --accent-indigo: #ea580c;
    --accent-emerald: #10b981;
    --accent-amber: #fbbf24;
    --accent-rose: #f43f5e;
    --accent-purple: #f97316;

    --status-completed: #10b981;
    --status-active: #f59e0b;
    --status-locked: #57442a;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow-blue: 0 0 30px rgba(245, 158, 11, 0.35);
    --shadow-glow-emerald: 0 0 30px rgba(16, 185, 129, 0.3);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --navbar-bg: rgba(19, 14, 6, 0.9);

    --body-gradient:
        radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(234, 88, 12, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(19, 14, 6, 0.85) 0%, transparent 100%);

    --btn-primary-from: #f59e0b;
    --btn-primary-to:   #ea580c;
    --tab-active-color: #f59e0b;
    --brand-grad-from: #f59e0b;
    --brand-grad-to:   #ea580c;
}

/* =================================================================
   TEMA 5 – Okyanus Turkuaz (Ocean Teal)
   ================================================================= */
[data-theme="ocean-teal"] {
    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --bg-main: #05161d;
    --bg-card: rgba(8, 30, 40, 0.88);
    --bg-card-hover: rgba(14, 46, 62, 0.95);
    --bg-input: #09202a;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(6, 182, 212, 0.45);

    --text-primary: #ecfeff;
    --text-secondary: #a5f3fc;
    --text-muted: #22d3ee;

    --accent-blue: #06b6d4;
    --accent-indigo: #0284c7;
    --accent-emerald: #14b8a6;
    --accent-amber: #fbbf24;
    --accent-rose: #f43f5e;
    --accent-purple: #38bdf8;

    --status-completed: #14b8a6;
    --status-active: #06b6d4;
    --status-locked: #29424c;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow-blue: 0 0 30px rgba(6, 182, 212, 0.35);
    --shadow-glow-emerald: 0 0 30px rgba(20, 184, 166, 0.3);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --navbar-bg: rgba(5, 22, 29, 0.9);

    --body-gradient:
        radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(2, 132, 199, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(5, 22, 29, 0.85) 0%, transparent 100%);

    --btn-primary-from: #06b6d4;
    --btn-primary-to:   #0284c7;
    --tab-active-color: #06b6d4;
    --brand-grad-from: #06b6d4;
    --brand-grad-to:   #0284c7;
}

/* =================================================================
   TEMA 6 – Modern Aydınlık (Clean Light)
   ================================================================= */
[data-theme="clean-light"] {
    --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --bg-main: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-card-hover: rgba(248, 250, 252, 1);
    --bg-input: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
    --border-highlight: rgba(37, 99, 235, 0.45);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --accent-blue: #2563eb;
    --accent-indigo: #4f46e5;
    --accent-emerald: #059669;
    --accent-amber: #d97706;
    --accent-rose: #e11d48;
    --accent-purple: #7c3aed;

    --status-completed: #059669;
    --status-active: #2563eb;
    --status-locked: #94a3b8;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);
    --shadow-glow-blue: 0 0 25px rgba(37, 99, 235, 0.2);
    --shadow-glow-emerald: 0 0 25px rgba(5, 150, 105, 0.2);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --navbar-bg: rgba(255, 255, 255, 0.92);

    --body-gradient:
        radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(5, 150, 105, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(241, 245, 249, 0.9) 0%, transparent 100%);

    --btn-primary-from: #2563eb;
    --btn-primary-to:   #4f46e5;
    --tab-active-color: #2563eb;
    --brand-grad-from: #2563eb;
    --brand-grad-to:   #4f46e5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    background-image: var(--body-gradient);
    background-attachment: fixed;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}


/* ==================== TYPOGRAPHY ==================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* ==================== ÜST ÇUBUK (NAVBAR) ==================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navbar-bg, rgba(11, 15, 25, 0.85));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.4s ease;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.brand-title {
    font-size: 19px;
    font-weight: 800;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tab-active-color, var(--accent-blue));
    font-weight: 700;
    transition: color 0.4s ease;
}

.user-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-profile-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-emerald));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.user-details {
    text-align: left;
}

.user-name {
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
}

.user-role-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-emerald);
}

/* ==================== BUTTONS ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-decoration: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--btn-primary-from, #4f46e5), var(--btn-primary-to, #3b82f6));
    color: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    filter: brightness(1.15);
}

.btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

/* ==================== LOGIN CONTAINER ==================== */

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    padding: 24px;
    flex: 1;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    backdrop-filter: blur(20px);
    animation: fadeInScale 0.4s ease-out;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    font-size: 28px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.auth-tabs {
    display: flex;
    background: var(--bg-input);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    background: var(--accent-indigo);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.alert-message {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 18px;
    display: none;
}

.alert-error {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fda4af;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

/* ==================== ÖĞRENCİ PORTALI (DASHBOARD & ROADMAP) ==================== */

.main-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 64px;
    flex: 1;
}

/* İlerleme Genel Özeti */
/* İlerleme Genel Özeti - Kompakt Üst Bar */
.progress-hero-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.progress-hero-after {
    display: none;
}

.progress-hero-info {
    max-width: 600px;
}

.progress-hero-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.progress-hero-title {
    font-size: 20px;
    margin-bottom: 2px;
    color: #ffffff;
}

.progress-hero-subtitle {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.progress-hero-stats {
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-circle-wrap {
    position: relative;
    width: 64px;
    height: 64px;
}

.progress-circle-svg {
    transform: rotate(-90deg);
    width: 64px;
    height: 64px;
}

.progress-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

.progress-circle-bar {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease-in-out;
}

.progress-circle-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    color: #f8fafc;
}

.progress-circle-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 14px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== BÖLÜMLER (ROADMAP GRID) ==================== */

.section-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 22px;
    color: white;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

/* Modül Kartı */
.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
}

/* Durum 1: Tamamlanmış Bölüm */
.module-card.completed {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(160deg, rgba(16, 185, 129, 0.08) 0%, rgba(18, 26, 43, 0.9) 100%);
}

.module-card.completed:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-emerald);
    border-color: var(--accent-emerald);
}

/* Durum 2: Aktif / Sıradaki Bölüm */
.module-card.active-next {
    border-color: var(--accent-blue);
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.14) 0%, rgba(18, 26, 43, 0.95) 100%);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.25);
    animation: activeGlow 3s infinite alternate;
}

.module-card.active-next:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-blue);
}

/* Durum 3: Kilitli Bölüm */
.module-card.locked {
    opacity: 0.55;
    background: rgba(15, 20, 32, 0.6);
    border-color: rgba(255, 255, 255, 0.04);
    cursor: not-allowed;
}

.module-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.module-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}

.module-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.badge-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-active {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-locked {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.module-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.module-title {
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 8px;
    line-height: 1.35;
}

.module-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 20px;
}

.module-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.module-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

/* ==================== LMS EMBEDDED OYNATICI (VIEWER MODAL) ==================== */

.lms-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lms-modal.show {
    display: flex;
    opacity: 1;
}

.lms-viewer-bar {
    height: 64px;
    background: #0f172a;
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.lms-viewer-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lms-viewer-tag {
    background: var(--accent-indigo);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.lms-viewer-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.lms-viewer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lms-iframe-container {
    flex: 1;
    width: 100%;
    height: calc(100vh - 64px);
    background: #000;
    position: relative;
}

.lms-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ==================== ADMIN PANELİ STİLLERİ ==================== */

.admin-header {
    margin-bottom: 30px;
}

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.kpi-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.kpi-sub {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Veri Tablosu */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table-toolbar {
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.6);
}

.table-search-box {
    position: relative;
    max-width: 320px;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.data-table th {
    background: rgba(15, 23, 42, 0.8);
    padding: 12px 18px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Modallar */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show,
.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    animation: fadeInScale 0.25s ease-out;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-close:hover {
    color: white;
}

/* Modül Seçim Matrisi (Admin Detay) */
.module-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.matrix-item {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.matrix-item.unlocked {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.15);
}

.matrix-item.completed {
    border-color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.15);
}

/* ==================== ANİMASYONLAR ==================== */

@keyframes activeGlow {
    0% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
    }
    100% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.55);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
    }
    .user-details {
        display: none;
    }
    .progress-hero-card {
        padding: 20px;
    }
    .progress-hero-stats {
        width: 100%;
        justify-content: space-between;
    }
    .modules-grid {
        grid-template-columns: 1fr;
    }
    .lms-viewer-bar {
        padding: 0 12px;
    }
    .lms-viewer-title {
        font-size: 13px;
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ==================== 2 SÜTUNLU ŞIK & KAYAN MENÜ DÜZENİ ==================== */

.menu-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.menu-filter-btn {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.menu-filter-btn.active {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-blue));
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.two-column-menu-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 6px;
}

@media (max-width: 960px) {
    .two-column-menu-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.menu-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.menu-filter-btn {
    padding: 6px 14px;
    border-radius: 0px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    background: #fce4f3;
    border: 1.5px solid #4a044e;
    color: #4a044e;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-filter-btn:hover {
    background: #fff0f7;
    color: #e11d48;
    border-color: #e11d48;
}

.menu-filter-btn.active {
    background: #4a044e;
    color: #ffffff;
    border-color: #4a044e;
    box-shadow: 0 2px 8px rgba(74, 4, 78, 0.35);
}

.two-column-menu-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 6px;
}

@media (max-width: 960px) {
    .two-column-menu-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.menu-column {
    display: flex;
    flex-direction: column;
    background: #edf4fb; /* Örnek görseldeki açık mavi/buz zemin */
    border: 1.5px solid #4a044e; /* Koyu mor çerçeve */
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.menu-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #4a044e; /* Koyu mor üst başlık */
    border-bottom: 1.5px solid #3b0764;
    z-index: 2;
}

.menu-column-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-column-count {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-weight: 700;
    color: #fce4f3;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Menü Liste Kutusu (Bütün Menü Ekranda Açıkça Görünür) */
.menu-scroll-container {
    max-height: none;
    overflow: visible;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #edf4fb;
}

/* ==================== ÖRNEK GÖRSELDEKİ BİREBİR MENÜ BUTONU ==================== */
.menu-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px 5px 0;
    min-height: 35px;
    background: #fce4f3; /* Açık pastel pembe zemin */
    border: 1.5px solid #4a044e; /* Koyu mor çerçeve */
    border-radius: 0px; /* Köşeli dikdörtgen */
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: all 0.12s ease-in-out;
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.08);
    margin-bottom: 1px;
}

/* Sol taraftaki kalın dekoratif dikey şerit (Görseldeki gibi) */
.menu-item-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: #4a044e; /* Koyu mor sol şerit */
    transition: background 0.15s ease;
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

/* Başlık Yazı Tipi (Örnekteki Serif Georgia / Times Bold) */
.menu-item-title {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 13.5px;
    font-weight: 800;
    color: #4a044e; /* Koyu mor yazı */
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-left: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s ease;
}

.menu-item-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 10px;
}

/* Görseldeki "HAKKINDA" Butonu Gibi Aktif ve Hover Durumu (Canlı Pembe/Fuşya) */
.menu-item-card:hover,
.menu-item-card.active-next {
    background: #fff0f7;
    border-color: #be123c;
    box-shadow: 2px 2px 5px rgba(225, 29, 72, 0.2);
}

.menu-item-card:hover::before,
.menu-item-card.active-next::before {
    background: #e11d48; /* Görseldeki gibi canlı fuşya/pembe şerit */
}

.menu-item-card:hover .menu-item-title,
.menu-item-card.active-next .menu-item-title {
    color: #e11d48; /* Görseldeki gibi canlı fuşya/pembe metin */
}

/* Tamamlanan Bölüm */
.menu-item-card.completed {
    background: #f0fdf4;
    border-color: #166534;
}

.menu-item-card.completed::before {
    background: #16a34a;
}

.menu-item-card.completed .menu-item-title {
    color: #166534;
}

/* Kilitli Bölüm */
.menu-item-card.locked {
    opacity: 0.5;
    background: #f1f5f9;
    border-color: #64748b;
    cursor: not-allowed;
}

.menu-item-card.locked::before {
    background: #64748b;
}

.menu-item-card.locked .menu-item-title {
    color: #64748b;
}

/* Durum Rozetleri */
.badge-item-status {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 0px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-transform: uppercase;
}

/* ==========================================================================
   TEMA VE MENÜ TASARIM MODLARI (THEME & MENU DESIGN MODES)
   ========================================================================== */

/* 1. TEMA UYUMLU MODERN MENÜ STİLİ (Varsayılan ve Tavsiye Edilen) */
[data-menu-style="theme-adaptive"] .menu-column {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
    transition: border-color 0.3s, box-shadow 0.3s;
}

[data-menu-style="theme-adaptive"] .menu-column-header {
    background: var(--bg-card-hover);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 18px;
}

[data-menu-style="theme-adaptive"] .menu-column-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-primary);
}

[data-menu-style="theme-adaptive"] .menu-column-count {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    color: var(--tab-active-color, var(--accent-blue));
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px 10px;
}

[data-menu-style="theme-adaptive"] .menu-scroll-container {
    background: transparent;
    padding: 10px 12px;
    gap: 6px;
}

[data-menu-style="theme-adaptive"] .menu-item-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: none;
    min-height: 40px;
    padding: 6px 12px 6px 0;
    margin-bottom: 0px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-menu-style="theme-adaptive"] .menu-item-card::before {
    width: 4px;
    background: var(--border-color);
    border-radius: 4px 0 0 4px;
    transition: all 0.2s ease;
}

[data-menu-style="theme-adaptive"] .menu-item-title {
    font-family: var(--font-primary);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: normal;
    padding-left: 14px;
    transition: color 0.18s ease;
}

[data-menu-style="theme-adaptive"] .badge-item-status {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    padding: 2px 7px;
}

[data-menu-style="theme-adaptive"] .menu-item-card:hover,
[data-menu-style="theme-adaptive"] .menu-item-card.active-next {
    background: var(--bg-card-hover);
    border-color: var(--tab-active-color, var(--accent-blue));
    box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 14px rgba(59, 130, 246, 0.2);
    transform: translateX(3px);
}

[data-menu-style="theme-adaptive"] .menu-item-card:hover::before,
[data-menu-style="theme-adaptive"] .menu-item-card.active-next::before {
    background: var(--tab-active-color, var(--accent-blue));
    width: 5px;
}

[data-menu-style="theme-adaptive"] .menu-item-card:hover .menu-item-title,
[data-menu-style="theme-adaptive"] .menu-item-card.active-next .menu-item-title {
    color: var(--tab-active-color, var(--accent-blue));
}

[data-menu-style="theme-adaptive"] .menu-item-card.completed {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.35);
}

[data-menu-style="theme-adaptive"] .menu-item-card.completed::before {
    background: var(--accent-emerald);
}

[data-menu-style="theme-adaptive"] .menu-item-card.completed .menu-item-title {
    color: var(--accent-emerald);
}

[data-menu-style="theme-adaptive"] .menu-item-card.locked {
    opacity: 0.45;
    background: rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.04);
}

[data-menu-style="theme-adaptive"] .menu-item-card.locked::before {
    background: var(--text-muted);
}

[data-menu-style="theme-adaptive"] .menu-item-card.locked .menu-item-title {
    color: var(--text-muted);
}

/* 2. MİNİMALİST YALIN ÇİZGİLİ MENÜ STİLİ */
[data-menu-style="minimal"] .menu-column {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

[data-menu-style="minimal"] .menu-item-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
}

[data-menu-style="minimal"] .menu-item-card::before {
    display: none;
}

[data-menu-style="minimal"] .menu-item-title {
    font-family: var(--font-primary);
    padding-left: 6px;
}

/* 3. DÜZEN: KART IZGARASI (Card Grid Layout) */
[data-menu-layout="card-grid"] .two-column-menu-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
}

[data-menu-layout="card-grid"] .menu-scroll-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

/* 4. DÜZEN: KOMPAKT HIZLI LİSTE (Compact Layout) */
[data-menu-layout="compact"] .menu-item-card {
    min-height: 28px !important;
    padding: 2px 8px 2px 0 !important;
    margin-bottom: 1px !important;
}

[data-menu-layout="compact"] .menu-item-title {
    font-size: 12px !important;
}

[data-menu-layout="compact"] .badge-item-status {
    font-size: 10px !important;
    padding: 1px 5px !important;
}


/* ==========================================================================
   ADMİN SEKME NAVİGASYONU
   ========================================================================== */

.admin-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    border-radius: 8px 8px 0 0;
    font-family: var(--font-primary);
    margin-bottom: -1px;
    white-space: nowrap;
}

.admin-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
    color: white;
    border-bottom-color: var(--tab-active-color, var(--accent-blue));
    background: rgba(from var(--tab-active-color, #3b82f6) r g b / 0.07);
}

/* Sınıf Kartları */
.class-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: border-color 0.2s, transform 0.15s;
    cursor: default;
}

.class-card:hover {
    border-color: var(--tab-active-color, var(--accent-blue));
    transform: translateY(-2px);
}

/* Excel yükleme alanı */
.excel-drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.excel-drop-zone:hover {
    border-color: var(--tab-active-color, var(--accent-blue));
    background: rgba(59, 130, 246, 0.05);
}

/* ==========================================================================
   TEMA SEÇİCİ
   ========================================================================== */

.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.theme-card {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
    background: var(--bg-card);
}

.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.theme-card.selected {
    border-color: var(--tab-active-color, var(--accent-blue));
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.theme-preview {
    height: 90px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.theme-preview-bar {
    height: 28px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
}

.theme-preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.theme-preview-body {
    flex: 1;
    display: flex;
    gap: 6px;
    padding: 6px 10px;
}

.theme-preview-sidebar {
    width: 32px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
}

.theme-preview-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.theme-preview-row {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.12);
}

.theme-preview-row.accent {
    width: 60%;
}

.theme-preview-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
}

.theme-info {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.theme-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.theme-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: background 0.2s, border-color 0.2s;
}

.theme-card.selected .theme-check {
    background: var(--tab-active-color, var(--accent-blue));
    border-color: var(--tab-active-color, var(--accent-blue));
    color: white;
}

@media (max-width: 640px) {
    .theme-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PORTAL KOMPAKT TEMA SEÇİCİ
   ========================================================================== */

.theme-switcher-panel {
    margin-top: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.theme-switcher-panel:hover {
    box-shadow: var(--shadow-md);
}

.theme-switcher-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    color: var(--text-primary);
    font-size: 14px;
    transition: background 0.15s;
}

.theme-switcher-header:hover {
    background: var(--bg-card-hover);
}

.theme-switcher-chevron {
    font-size: 11px;
    color: var(--text-muted);
    transition: transform 0.25s;
}

.theme-switcher-body {
    padding: 0 18px 18px;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.theme-switcher-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 14px;
    line-height: 1.5;
}

.theme-pill-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.15s;
    text-align: left;
    width: 100%;
}

.theme-pill:hover {
    background: rgba(255,255,255,0.07);
    border-color: var(--tab-active-color, var(--accent-blue));
    color: var(--text-primary);
    transform: translateX(3px);
}

.theme-pill.active {
    border-color: var(--tab-active-color, var(--accent-blue));
    background: rgba(var(--brand-grad-from-rgb, 59,130,246), 0.12);
    color: var(--text-primary);
}

.theme-pill-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.theme-pill-check {
    margin-left: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--tab-active-color, var(--accent-blue));
    visibility: hidden;
}

.theme-pill.active .theme-pill-check {
    visibility: visible;
}

.theme-switcher-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 600px) {
    .theme-pill-row { gap: 6px; }
    .theme-pill { padding: 9px 12px; font-size: 12px; }
}

/* ==========================================================================
   ADMİN PANELİ - TEMA VE MENÜ TASARIM KONTROLLERİ
   ========================================================================== */

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

/* Özel iOS-Stili Toggle Switch */
.switch-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.switch-control:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.switch-label-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.switch-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.switch-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.switch-toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.switch-toggle input:checked + .switch-slider {
    background: linear-gradient(135deg, var(--tab-active-color, #3b82f6), #10b981);
    border-color: transparent;
}

.switch-toggle input:checked + .switch-slider:before {
    transform: translateX(22px);
}

/* Tasarım & Düzen Seçici Kartları */
.design-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.design-choice-card {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    position: relative;
    user-select: none;
}

.design-choice-card:hover {
    border-color: var(--tab-active-color, var(--accent-blue));
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.design-choice-card.active {
    border-color: var(--tab-active-color, var(--accent-blue));
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 0 0 1px var(--tab-active-color, var(--accent-blue)), 0 4px 12px rgba(0,0,0,0.2);
}

.design-choice-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.design-choice-card.active .design-choice-badge {
    background: var(--tab-active-color, var(--accent-blue));
    color: white;
}

.design-choice-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.design-choice-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Canlı Mini Önizleme Kutusu */
.admin-theme-preview-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 14px;
}

.admin-preview-item-mockup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
    transition: all 0.2s ease;
}

/* ==========================================================================
   PORTAL TEMA & TASARIM SEÇİCİ İÇİNDE SEKME NAVİGASYONU
   ========================================================================== */

.portal-switcher-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.portal-switcher-tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.portal-switcher-tab-btn.active {
    background: var(--tab-active-color, var(--accent-blue));
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.portal-tab-pane {
    display: none;
    animation: fadeInDown 0.2s ease;
}

.portal-tab-pane.active {
    display: block;
}

/* Üst Navbarda Hızlı Tema Butonu */
.nav-theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-theme-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--tab-active-color, var(--accent-blue));
    color: white;
    transform: translateY(-1px);
}

/* ==========================================================================
   ÖĞRENCİ - ÖĞRETMEN MESAJLAŞMA & DUYURU SİSTEMİ STİLLERİ
   ========================================================================== */

/* Navbar & Buton Mesaj Bildirim Rozeti */
.nav-msg-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.nav-msg-btn:hover {
    background: rgba(59, 130, 246, 0.22);
    border-color: var(--tab-active-color, var(--accent-blue));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.badge-unread-counter {
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
    animation: pulseBadge 2s infinite ease-in-out;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Mesaj Kartları */
.message-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
    transition: all 0.2s ease;
}

.message-card:hover {
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-md);
}

.message-card.status-pending {
    border-left: 4px solid #f59e0b;
}

.message-card.status-answered {
    border-left: 4px solid #10b981;
}

/* Mesaj Toplu İşlem Çubuğu */
.msg-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.msg-bulk-select-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.msg-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-blue);
    cursor: pointer;
}

.msg-count-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 700;
}

/* Profil Avatar Önizleme ve Hazır Simge Butonları */
.avatar-preset-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.avatar-preset-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--accent-blue);
    transform: translateY(-2px) scale(1.15);
}

/* Mesaj İçerik ve Konuşma Zinciri */
.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.chat-bubble {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    position: relative;
}

.chat-bubble.teacher {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    margin-left: 20px;
}

.chat-bubble.student {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    margin-right: 20px;
}

.chat-bubble-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.chat-bubble-sender {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-bubble.teacher .chat-bubble-sender {
    color: var(--accent-blue);
}

.chat-bubble.student .chat-bubble-sender {
    color: var(--accent-emerald);
}

/* Öğrenci Portalı Duyuru Banner */
.portal-announcement-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    animation: fadeInDown 0.3s ease;
}

/* ==================== SİTE FOOTER ==================== */
.site-footer {
    border-top: 1px solid var(--border-color);
    background: var(--navbar-bg, rgba(11, 15, 25, 0.85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 28px;
    margin-top: auto;
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.3s ease;
    z-index: 10;
}

.site-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand-title {
    font-weight: 700;
    color: var(--text-primary);
}

.footer-brand-author {
    color: var(--tab-active-color, var(--accent-blue));
    font-weight: 600;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 12px;
}

@media (max-width: 768px) {
    .site-footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .footer-links {
        justify-content: center;
    }
}


