/* ===================================================================
   Menhec Kuran Okulu — Panel & Site Stilleri
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #0f766e;
    --primary-600: #0d6660;
    --primary-50: #ecfdf5;
    --primary-100: #d1fae5;
    --gold: #c19a3d;
    --ink: #0f172a;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f6f8fa;
    --white: #fff;
    --success: #059669;
    --success-bg: #ecfdf5;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --info: #2563eb;
    --info-bg: #eff6ff;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .12);
    --shadow-lg: 0 20px 50px -20px rgba(15, 23, 42, .25);
    --sidebar-w: 268px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5rem; line-height: 1.3; font-weight: 650; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
svg { flex: none; }

/* ===================== LAYOUT ===================== */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    flex: none;
    background: #0b3b38;
    background-image: linear-gradient(180deg, #0f4f4a, #072b29);
    color: #cfe6e3;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    transition: transform .25s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.sidebar-brand .logo {
    width: 42px; height: 42px; flex: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), #e0bf6a);
    color: #23201a;
    display: grid; place-items: center;
    font-weight: 700; font-size: 15px;
}
.sidebar-brand b { color: #fff; display: block; font-size: 15px; line-height: 1.2; }
.sidebar-brand span { font-size: 11.5px; color: #9dc4c0; letter-spacing: .3px; }

.sidebar-nav { padding: 14px 12px; overflow-y: auto; flex: 1; }
.sidebar-nav .nav-label {
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em;
    color: #6f9c98; padding: 14px 10px 6px; font-weight: 600;
}
.sidebar-nav a {
    display: flex; align-items: center; gap: 11px;
    padding: 9.5px 11px; margin-bottom: 2px;
    border-radius: 10px;
    color: #bfdcd9; font-size: 14px; font-weight: 500;
    transition: .15s;
}
.sidebar-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar-nav a.active { background: rgba(193, 154, 61, .16); color: #fff; box-shadow: inset 2px 0 0 var(--gold); }
.sidebar-nav a .count {
    margin-left: auto; background: var(--gold); color: #23201a;
    font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px;
}

.sidebar-foot { padding: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sidebar-foot a { color: #9dc4c0; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.sidebar-foot a:hover { color: #fff; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }

.topbar {
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 0 24px; height: 64px;
    display: flex; align-items: center; gap: 16px;
    position: sticky; top: 0; z-index: 30;
}
.topbar h1 { font-size: 1.15rem; margin: 0; }
.topbar .spacer { flex: 1; }
.topbar .hamburger { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); }

.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--primary-100); color: var(--primary-600);
    display: grid; place-items: center; font-weight: 650; font-size: 13px; flex: none;
}
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.lg { width: 72px; height: 72px; font-size: 22px; }
.user-chip .meta b { display: block; font-size: 13.5px; color: var(--ink); line-height: 1.2; }
.user-chip .meta span { font-size: 11.5px; color: var(--muted); }

.content { padding: 24px; flex: 1; }
.container { max-width: 1360px; margin: 0 auto; }

.page-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .t { flex: 1; min-width: 220px; }
.page-head h1 { margin: 0 0 2px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ===================== CARD ===================== */
.card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    margin-bottom: 20px; overflow: hidden;
}
.card-head {
    padding: 15px 18px; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.card-head h3 { margin: 0; font-size: 15px; }
.card-head .spacer { flex: 1; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }

.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.sidebar-right { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }

/* ===================== STAT ===================== */
.stat {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 14px;
}
.stat .ico {
    width: 46px; height: 46px; border-radius: 13px; flex: none;
    display: grid; place-items: center;
    background: var(--primary-50); color: var(--primary);
}
.stat .ico.gold { background: #fdf6e3; color: var(--gold); }
.stat .ico.blue { background: var(--info-bg); color: var(--info); }
.stat .ico.red { background: var(--danger-bg); color: var(--danger); }
.stat b { display: block; font-size: 1.6rem; color: var(--ink); line-height: 1.1; letter-spacing: -.5px; }
.stat span { font-size: 12.5px; color: var(--muted); }

/* ===================== TABLE ===================== */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th {
    text-align: left; padding: 11px 16px;
    background: #fafbfc; border-bottom: 1px solid var(--line);
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em;
    color: var(--muted); font-weight: 600; white-space: nowrap;
}
table.tbl td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: #fcfdfd; }
table.tbl td.actions { text-align: right; white-space: nowrap; }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user b { display: block; font-weight: 550; color: var(--ink); }
.cell-user small { color: var(--muted); font-size: 12px; }

/* ===================== BUTTON ===================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 15px; border-radius: var(--radius-sm);
    border: 1px solid transparent; background: var(--primary); color: #fff;
    font: inherit; font-size: 13.5px; font-weight: 550; cursor: pointer;
    transition: .15s; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--primary-600); color: #fff; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-light { background: #fff; border-color: var(--line); color: var(--text); }
.btn-light:hover { background: #f8fafc; color: var(--ink); border-color: #cbd5e1; }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: #a8842f; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b91c1c; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f1f5f9; color: var(--ink); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===================== FORM ===================== */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { margin-bottom: 0; }
.field.full { grid-column: 1 / -1; }
.form-sep {
    margin: 20px 0 14px; padding-bottom: 7px; border-bottom: 1px solid var(--line);
    font-size: 12.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--primary);
}
label { display: block; font-size: 13px; font-weight: 550; color: var(--ink); margin-bottom: 6px; }
label .req { color: var(--danger); }
.input, .select, .textarea, input[type=text], input[type=email], input[type=password],
input[type=date], input[type=time], input[type=number], input[type=tel], input[type=file],
input[type=search], input[type=url], input[type=datetime-local], input[type=month], input:not([type]),
select, textarea {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; font: inherit; font-size: 14px; color: var(--text);
    transition: .15s;
}
textarea { min-height: 110px; resize: vertical; }

input[type=search] {
    -webkit-appearance: none; appearance: none;
    padding-left: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: 12px center;
}
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
input:focus, select:focus, textarea:focus {
    outline: 0; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }

.check-list { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px; border: 1px solid var(--line); border-radius: 99px;
    font-size: 13px; cursor: pointer; user-select: none; background: #fff; transition: .15s;
}
.check-pill:hover { border-color: var(--primary); }
.check-pill input { width: auto; margin: 0; accent-color: var(--primary); }
.check-pill:has(input:checked) { background: var(--primary-50); border-color: var(--primary); color: var(--primary-600); font-weight: 550; }

.searchbar { display: flex; gap: 8px; flex-wrap: wrap; }
.searchbar input, .searchbar select { width: auto; min-width: 170px; }

/* ===================== CANLI DERS BANDI ===================== */
.live-card {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0f766e, #0b3b38);
    color: #eafaf7; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px;
    box-shadow: 0 18px 40px -22px rgba(15, 118, 110, .85);
}
.live-card::after {
    content: ''; position: absolute; right: -60px; top: -70px; width: 240px; height: 240px;
    border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.live-top { display: flex; align-items: center; gap: 9px; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.live-top b { font-weight: 650; }
.live-time { display: inline-flex; align-items: center; gap: 6px; opacity: .85; text-transform: none; letter-spacing: 0; font-size: 13px; }
.live-card h2 { color: #fff; margin: 10px 0 2px; font-size: 1.45rem; position: relative; }
.live-card p { margin: 0 0 16px; opacity: .85; font-size: 14px; position: relative; }
.live-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; position: relative; }
.live-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .8; }

.btn-live {
    background: #fff !important; color: var(--primary-600) !important; border: 0 !important;
    font-size: 15px; font-weight: 650; padding: 12px 24px;
}
.btn-live:hover { background: #eafaf7 !important; transform: translateY(-1px); }

.live-dot {
    width: 10px; height: 10px; border-radius: 50%; background: #4ade80; flex: none;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
    70% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.lesson-next {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    border: 1px dashed var(--primary); background: var(--primary-50);
    border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; color: var(--primary-600);
}
.lesson-next b { color: var(--ink); }

/* ===================== ARANABILIR SECICI (picker) ===================== */
.pk { position: relative; }
.pk-bar { position: relative; display: flex; gap: 8px; align-items: center; }
.pk-bar .pk-ico { position: absolute; left: 12px; color: var(--muted); pointer-events: none; display: flex; }
.pk-input { padding-left: 38px !important; }
.pk-bar .pk-scope { width: auto; min-width: 190px; flex: none; }

.pk-pop {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.pk-list { max-height: 292px; overflow-y: auto; }
.pk-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 13px;
    cursor: pointer; border-bottom: 1px solid #f1f5f9;
}
.pk-item:last-child { border-bottom: 0; }
.pk-item:hover, .pk-item.cur { background: var(--primary-50); }
.pk-item.on { background: #f8fafc; }
.pk-item .pk-tick {
    width: 20px; height: 20px; flex: none; border-radius: 6px; display: grid; place-items: center;
    border: 1px solid var(--line); color: #fff; background: #fff;
}
.pk-item.on .pk-tick { background: var(--primary); border-color: var(--primary); }
.pk-item .pk-t { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.pk-item .pk-t b { font-size: 14px; font-weight: 550; color: var(--ink); }
.pk-item .pk-t small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-msg { padding: 16px 13px; font-size: 13px; color: var(--muted); text-align: center; }
.pk-foot {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px;
    border-top: 1px solid var(--line); background: #f8fafc; font-size: 12px; color: var(--muted);
}
.pk-foot:empty { display: none; }

.pk-head { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; }
.pk-head .pk-count { font-size: 13px; color: var(--primary-600); }

.pk-chips { display: flex; flex-wrap: wrap; gap: 8px; max-height: 236px; overflow-y: auto; }
.pk-chips:empty::before {
    content: attr(data-empty); font-size: 13px; color: var(--muted);
    padding: 12px; width: 100%; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-sm);
}
.pk-chip {
    display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
    padding: 6px 7px 6px 13px; border: 1px solid var(--primary-100); border-radius: 99px;
    background: var(--primary-50); color: var(--primary-600); font-size: 13px;
}
.pk-chip b { font-weight: 550; }
.pk-chip i { font-style: normal; font-size: 11px; color: var(--muted); max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-chip .pk-x {
    display: grid; place-items: center; width: 20px; height: 20px; flex: none;
    border: 0; border-radius: 50%; background: rgba(15, 118, 110, .12); color: var(--primary-600); cursor: pointer;
}
.pk-chip .pk-x:hover { background: var(--danger); color: #fff; }

@media (max-width: 640px) {
    .pk-bar { flex-wrap: wrap; }
    .pk-bar .pk-scope { width: 100%; min-width: 0; }
}

/* ===================== BADGE / ALERT ===================== */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 99px;
    font-size: 11.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: #f1f5f9; color: var(--muted); }
.badge-primary { background: var(--primary-50); color: var(--primary-600); }

.alert {
    padding: 12px 16px; border-radius: var(--radius-sm);
    margin-bottom: 16px; font-size: 14px; border: 1px solid transparent;
}
.alert-success { background: var(--success-bg); color: #065f46; border-color: #a7f3d0; }
.alert-danger { background: var(--danger-bg); color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--warning-bg); color: #92400e; border-color: #fde68a; }
.alert-info { background: var(--info-bg); color: #1e40af; border-color: #bfdbfe; }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty svg { color: #cbd5e1; margin-bottom: 10px; }
.empty b { display: block; color: var(--ink); margin-bottom: 4px; }

/* ===================== LIST ITEMS ===================== */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 13px 18px; border-bottom: 1px solid #f1f5f9; display: flex; gap: 12px; align-items: flex-start; }
.list li:last-child { border-bottom: 0; }
.list li .grow { flex: 1; min-width: 0; }
.list li b { color: var(--ink); font-weight: 550; }
.list li small { color: var(--muted); font-size: 12.5px; }

.info-rows { display: grid; gap: 0; }
.info-rows > div { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.info-rows > div:last-child { border-bottom: 0; }
.info-rows span { color: var(--muted); min-width: 150px; font-size: 13px; }
.info-rows b { color: var(--ink); font-weight: 550; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a {
    padding: 10px 15px; font-size: 14px; color: var(--muted); font-weight: 500;
    border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.progress { height: 7px; background: #eef2f5; border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

/* ===================== MESAJLASMA ===================== */
.chat { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 560px; }
.chat-side { border-right: 1px solid var(--line); overflow-y: auto; max-height: 640px; }
.chat-side a {
    display: flex; gap: 10px; align-items: center; padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9; color: var(--text);
}
.chat-side a:hover { background: #fafbfc; }
.chat-side a.active { background: var(--primary-50); }
.chat-side .who { flex: 1; min-width: 0; }
.chat-side .who b { display: block; font-size: 13.5px; }
.chat-side .who small { color: var(--muted); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-main { display: flex; flex-direction: column; max-height: 640px; }
.chat-head { padding: 13px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: #fafbfc; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 72%; padding: 10px 14px; border-radius: 14px; font-size: 14px; background: #fff; border: 1px solid var(--line); }
.bubble time { display: block; font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.bubble.me { align-self: flex-end; background: var(--primary); color: #fff; border-color: var(--primary); }
.bubble.me time { color: rgba(255, 255, 255, .75); }
.chat-form { padding: 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; background: #fff; }
.chat-form textarea { min-height: 44px; max-height: 120px; }

/* ===================== LOGIN ===================== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art {
    background: linear-gradient(150deg, #0f4f4a, #05201f 70%);
    color: #d9ece9; padding: 56px; display: flex; flex-direction: column; justify-content: center;
    position: relative; overflow: hidden;
}
.auth-art::after {
    content: ''; position: absolute; inset: auto -120px -160px auto; width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(193, 154, 61, .3), transparent 65%);
}
.auth-art .logo-big {
    width: 64px; height: 64px; border-radius: 18px; margin-bottom: 26px;
    background: linear-gradient(135deg, var(--gold), #e6cd88); color: #241f14;
    display: grid; place-items: center; font-weight: 700; font-size: 20px;
}
.auth-art h2 { color: #fff; font-size: 2rem; margin-bottom: 12px; }
.auth-art p { color: #a8ccc8; max-width: 440px; }
.auth-art .feats { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.auth-art .feats li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: #cfe6e3; }
.auth-art .feats i {
    width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .1);
    display: grid; place-items: center; font-style: normal; color: var(--gold);
}
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.auth-box { width: 100%; max-width: 390px; }
.auth-box h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-box > p { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.auth-box .field { margin-bottom: 15px; }
.auth-foot { margin-top: 22px; font-size: 13px; color: var(--muted); text-align: center; }

/* Tanitim sitesi (public) stilleri artik assets/css/site.css icindedir. */

/* ===================== YARDIMCI ===================== */
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px }
.mb-0 { margin-bottom: 0 } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.text-muted { color: var(--muted) } .text-sm { font-size: 13px } .text-xs { font-size: 12px }
.text-center { text-align: center } .text-right { text-align: right }
.flex { display: flex } .items-center { align-items: center } .gap-1 { gap: 8px } .gap-2 { gap: 16px }
.flex-wrap { flex-wrap: wrap } .spacer { flex: 1 } .w-full { width: 100% }
.nowrap { white-space: nowrap }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
    .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid.sidebar-right { grid-template-columns: 1fr; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-art { display: none; }
}
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    body.nav-open .sidebar { transform: none; }
    .main { margin-left: 0; }
    .topbar .hamburger { display: block; }
    .grid.c3, .grid.c2 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .chat { grid-template-columns: 1fr; }
    .chat-side { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
    .content { padding: 16px; }
}
@media (max-width: 560px) {
    .grid.c4 { grid-template-columns: 1fr; }
    .user-chip .meta { display: none; }
}

/* ===================== TESLIM DETAYI ===================== */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.file-card {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    overflow: hidden; background: #fff; display: flex; flex-direction: column;
}
.file-card .file-prev {
    height: 168px; background: #f1f5f9; display: grid; place-items: center; overflow: hidden;
}
.file-card .file-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-card .file-prev video,
.file-card .file-prev embed { width: 100%; height: 100%; border: 0; }
.file-card .file-prev audio { width: 92%; }
.file-card .file-ico { color: var(--muted); }
.file-card .file-meta { padding: 10px 12px 4px; min-width: 0; }
.file-card .file-meta b {
    display: block; font-size: 13px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-card .file-meta small { color: var(--muted); font-size: 11.5px; }
.file-card .file-actions { display: flex; gap: 6px; padding: 10px 12px 12px; }
.file-card .file-actions .btn { flex: 1; justify-content: center; }

.attempt-block { border-bottom: 1px solid var(--line); padding: 16px 18px; }
.attempt-block:last-child { border-bottom: 0; }
.attempt-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.answer-row {
    border-left: 3px solid var(--success); background: var(--success-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 10px 14px; margin-bottom: 8px;
}
.answer-row.no { border-left-color: var(--danger); background: var(--danger-bg); }
.answer-row .q { font-weight: 600; font-size: 13.5px; margin-bottom: 7px; }
.answer-row .q span { color: var(--muted); margin-right: 4px; }
.answer-row .a { display: flex; flex-wrap: wrap; gap: 6px; }
.answer-row .opt {
    font-size: 12.5px; background: #fff; border: 1px solid var(--line);
    border-radius: 999px; padding: 4px 11px; color: var(--muted);
}
.answer-row .opt.correct { border-color: var(--success); color: var(--success); font-weight: 600; }
.answer-row .opt.wrong { border-color: var(--danger); color: var(--danger); text-decoration: line-through; }
.answer-row .opt i { font-style: normal; opacity: .7; margin-left: 5px; font-size: 11px; }

/* ===================== KARNE / RAPOR BELGESI ===================== */
.print-wrap { max-width: 900px; margin: 24px auto; padding: 0 16px; }

.print-doc {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.print-doc .doc-head {
    display: flex; align-items: center; gap: 14px;
    border-bottom: 2px solid var(--primary); padding-bottom: 16px; margin-bottom: 20px;
}
.print-doc .doc-head .grow { flex: 1; }
.print-doc .doc-head b { font-size: 18px; color: var(--ink); }
.doc-logo {
    width: 46px; height: 46px; border-radius: 12px; flex: none;
    background: linear-gradient(135deg, var(--primary), #12a598); color: #fff;
    display: grid; place-items: center; font-weight: 700; font-size: 18px;
}
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-bottom: 22px; }
.doc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.doc-stats > div {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 14px; text-align: center; background: #fafbfc;
}
.doc-stats b { display: block; font-size: 1.5rem; color: var(--primary); line-height: 1.2; letter-spacing: -.5px; }
.doc-stats span { font-size: 11.5px; color: var(--muted); line-height: 1.4; display: block; }
.doc-title {
    font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--primary);
    border-bottom: 1px solid var(--line); padding-bottom: 6px; margin: 26px 0 12px;
}
table.doc-table { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
table.doc-table th { background: var(--primary-50); color: var(--primary-600); }
.doc-note {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    min-height: 90px; padding: 12px; font-size: 14px; line-height: 1.7; background: #fff;
}
.doc-note:empty::before { content: attr(data-placeholder); color: #cbd5e1; }
.doc-note:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.doc-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 42px 0 10px; }
.doc-sign > div { border-top: 1px solid #94a3b8; padding-top: 7px; text-align: center; }
.doc-sign span { font-size: 12px; color: var(--muted); }
.doc-foot { margin-top: 22px; font-size: 11.5px; color: var(--muted); text-align: center; }

/* Yazdirma */
@media print {
    .sidebar, .topbar, .btn, .form-actions, .no-print, .tabs, .page-head form { display: none !important; }
    .main { margin: 0 }
    body { background: #fff }
    .content, .print-wrap { padding: 0; margin: 0; max-width: none; }
    .card { box-shadow: none; border-color: #d7dee6; break-inside: avoid; }
    .print-doc { border: 0; box-shadow: none; padding: 0; margin: 0; }
    .doc-stats > div { background: #fff }
    table.tbl { font-size: 11.5px }
    table.tbl th, table.tbl td { padding: 6px 8px }
    tr, .doc-sign { break-inside: avoid }
    a { text-decoration: none; color: #000 }
    @page { size: A4; margin: 14mm 12mm; }
}
