/* Kurumsal tema katmanı: app.css'ten sonra yüklenir, yalnızca görünümü değiştirir.
   İlke: süs yerine düzen. Açık yüzeyler, tek kurum rengi (lacivert), ince çizgiler, net yazı hiyerarşisi.
   Durum renkleri (yeşil/kırmızı/turuncu/mavi) yalnızca anlam taşıdığı yerde kullanılır.
   Geri almak için index.html'deki <link href="/css/pro.css"> satırını silmek yeterli. */
:root {
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --faint: #94a3b8;
  --line: #e2e8f0; --line-2: #f1f5f9; --bg: #f6f7f9; --card: #fff;
  --brand: #1f3b6e; --brand-2: #172e57; --brand-soft: #eef2f9; --brand-ring: rgba(31, 59, 110, .18);
  --gold: #b8912a;
  --side: #ffffff; --side-2: #f6f7f9;
  --ok: #15803d; --ok-soft: #ecfdf3; --warn: #b45309; --warn-soft: #fff7ed;
  --danger: #b91c1c; --danger-soft: #fef2f2; --info: #1d4ed8; --info-soft: #eff6ff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, .08);
}
body { font: 14px/1.5 Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; letter-spacing: -.005em; color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
h1, h2, h3 { letter-spacing: -.015em; }

/* ---------- Kenar çubuğu: açık, sade ---------- */
.sidebar { background: var(--side); color: var(--ink-2); border-right: 1px solid var(--line); padding: 16px 12px; }
.sidebar .brand { color: var(--ink); padding: 4px 8px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.sidebar .brand b { font-size: 15px; font-weight: 700; color: var(--ink); }
.sidebar .brand small { color: var(--muted); font-size: 12px; }
.sidebar .brand-logo { background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.nav a { position: relative; padding: 8px 10px; margin: 1px 0; border-radius: 7px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; transition: background .12s, color .12s; }
.nav a svg { color: var(--faint); }
.nav a:hover { background: var(--side-2); color: var(--ink); }
.nav a:hover svg { color: var(--ink-2); }
.nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav a.active svg { color: var(--brand); }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.nav .sep { margin: 18px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--faint); }
.sidebar .me { background: var(--side-2); border: 1px solid var(--line); color: var(--ink); }
.sidebar .me b { color: var(--ink); }
.sidebar .me small { color: var(--muted); }
.sidebar .me .icon-btn, .sidebar .icon-btn.light { color: var(--muted); }
.sidebar .me .icon-btn:hover, .sidebar .icon-btn.light:hover { background: #e9edf3; color: var(--ink); }

/* ---------- Üst çubuk ve sayfa ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); min-height: 56px; padding: 10px 32px; }
.topbar h1 { font-size: 16px; font-weight: 600; color: var(--ink); }
.topbar .today { font-size: 12.5px; color: var(--muted); }
.page { padding: 28px 32px 56px; max-width: 1360px; }
.page-head { margin-bottom: 22px; }
.page-head h2 { font-size: 22px; font-weight: 700; color: var(--ink); }
.page-head p { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* Ana sayfa başlığı: sade, tarih üstte küçük */
.page-head.dash-hero { padding: 0 0 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); background: none; box-shadow: none; border-radius: 0; color: var(--ink); }
.page-head.dash-hero::after { display: none; }
.dash-hero .hero-date { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.dash-hero h2 { font-size: 24px; color: var(--ink); }
.dash-hero p { color: var(--muted); }

/* ---------- Kartlar ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 18px 20px; }
.card h2 { font-size: 14px; font-weight: 600; color: var(--ink); }
.grid2 > .card > h2:first-child, .card.pad > h2:first-child { margin: -2px -20px 14px; padding: 0 20px 12px; border-bottom: 1px solid var(--line-2); }
.grid2 { gap: 16px; }

/* KPI kutuları: beyaz, büyük rakam, anlam rengi yalnızca rakamda ve küçük noktada */
.stats { gap: 12px; margin-bottom: 20px; }
.stat { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); margin-right: 7px; vertical-align: 1px; }
.stat.ok::before { background: var(--ok); } .stat.warn::before { background: var(--warn); } .stat.danger::before { background: var(--danger); } .stat.info::before { background: var(--info); }
.stat small { display: inline; text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.stat b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; color: var(--ink); }
.stat.ok b { color: var(--ok); } .stat.warn b { color: var(--warn); } .stat.danger b { color: var(--danger); } .stat.info b { color: var(--info); }

/* ---------- Düğmeler ve formlar ---------- */
.btn { height: 34px; padding: 0 13px; border-radius: 7px; border: 1px solid #d6dce5; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink-2); box-shadow: 0 1px 1px rgba(15, 23, 42, .04); transition: background .12s, border-color .12s; }
.btn:hover { background: #f8fafc; border-color: #c5cdd8; }
.btn:focus-visible, .icon-btn:focus-visible, .nav a:focus-visible, .stu-card:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-ring); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn.ghost:hover { background: #eef1f5; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 6px; }
.btn.block { height: 42px; font-size: 14.5px; }
.input, select.input, textarea.input { border: 1px solid #d6dce5; border-radius: 7px; padding: 8px 11px; background: #fff; }
.input:hover { border-color: #c5cdd8; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

/* Sekmeler, hap seçiciler */
.tabbar { border-bottom-color: var(--line); }
.tabbar a { font-size: 13.5px; padding: 10px 14px; color: var(--muted); }
.tabbar a.on { color: var(--ink); border-bottom-color: var(--brand); }
.pills, .seg { background: #eef1f5; border-radius: 8px; padding: 3px; }
.pills a, .pills button, .seg button { border-radius: 6px; font-size: 13px; color: var(--ink-2); }
.pills .on, .seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }

/* Rozetler: düz, küçük, sade */
.badge { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: #eef1f5; color: var(--ink-2); }

/* ---------- Tablolar ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.t th { background: #f8fafc; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); }
.t tbody tr:hover { background: #f8fafc; }
.t tr.click { cursor: pointer; }
.t td:first-child b { font-weight: 600; color: var(--ink); }

/* Listeler, boş durum, avatar */
.item { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty { border: 1px dashed #d6dce5; background: #fff; color: var(--muted); }
.avatar { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* ---------- Öğrenci kartları: büyük profil kartı ---------- */
.list.stu-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.stu-cards .item.stu-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 16px 18px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .15s; }
.stu-cards .item.stu-card:hover { border-color: #c9d2df; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.stu-card .avatar.lg { width: 96px; height: 96px; font-size: 28px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.stu-card .avatar.lg img { width: 100%; height: 100%; object-fit: cover; }
.stu-card .who { width: 100%; min-width: 0; flex: none; }
.stu-card .who b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); white-space: normal; line-height: 1.3; overflow: visible; text-overflow: clip; }
.stu-card .stu-meta { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.stu-card .stu-meta .cls { font-size: 12px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 2px 9px; border-radius: 6px; }
.stu-card .stu-meta .no { font-size: 12px; color: var(--muted); background: var(--line-2); padding: 2px 8px; border-radius: 6px; }
.stu-card .stu-passive { position: absolute; top: 10px; right: 10px; }

/* ---------- Pencere ve bildirim ---------- */
.modal-backdrop { background: rgba(15, 23, 42, .45); }
.modal { border-radius: 12px; box-shadow: 0 20px 50px rgba(15, 23, 42, .25); }
.modal header { padding: 18px 22px 0; }
.modal header h3 { font-size: 16px; font-weight: 600; }
.modal-body { padding: 16px 22px 22px; }
.toast { background: var(--ink); border-radius: 8px; font-size: 13.5px; }

/* ---------- Giriş ekranı: sade kurumsal ---------- */
.auth { background: linear-gradient(180deg, #f6f7f9 0%, #eef1f5 100%); }
.auth-card { width: min(400px, 100%); border-radius: 14px; padding: 34px 30px 28px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.auth-card h1 { font-size: 20px; font-weight: 700; text-align: center; }
.auth-card .sub { text-align: center; font-size: 13.5px; }
.auth-logo { display: block; margin: 0 auto 4px; }

/* Ana sayfadaki kart üstü hareketi yok; sayfa geçişi çok hafif */
@media (prefers-reduced-motion: no-preference) {
  .page > * { animation: pro-in .2s ease-out both; }
  @keyframes pro-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 900px) {
  .page { padding: 18px 16px 48px; }
  .topbar { position: static; backdrop-filter: none; padding: 10px 16px; }
  .list.stu-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .stu-card .avatar.lg { width: 72px; height: 72px; }
}
