:root {
  --indigo-950: #1e1b4b;
  --indigo-900: #312e81;
  --indigo-800: #3730a3;
  --indigo-700: #4338ca;
  --indigo-600: #4f46e5;
  --indigo-200: #c7d2fe;
  --indigo-100: #e0e7ff;
  --indigo-50: #eef2ff;
  --amber: #fbbf24;
  --amber-soft: #fcd34d;
  --slate-900: #0f172a;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-50: #f8fafc;
  --blue: #2563eb;
  --rose: #e11d48;
  --emerald: #059669;
  --radius: 20px;
  --shadow: 0 4px 14px rgba(30, 27, 75, 0.08);
}

* { box-sizing: border-box; }
/* Büyük ekranlarda yazılar biraz büyüsün */
@media (min-width: 1600px) { html { font-size: 17px; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--slate-50);
  color: var(--slate-900);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #fff;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(100deg, #312e81 0%, #4338ca 45%, #6d28d9 100%);
  box-shadow: 0 6px 18px rgba(30, 27, 75, 0.25);
}
.site-header::after {
  /* alt kenarda ince "cetvel" şeridi */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 22px, #f59e0b 22px 24px);
}
.header-inner {
  position: relative;
  z-index: 1;
  padding: 12px 24px 14px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-logo {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s;
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); }
.brand-logo .tassel { transform-origin: 39px 13px; animation: tassel 3s ease-in-out infinite; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}
.brand-name span { color: var(--amber); }
.brand-tag {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber-soft);
  letter-spacing: 0.02em;
}

/* Header'da süzülen okul simgeleri */
.header-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fi {
  position: absolute;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}
.fi-abc { font-weight: 800; font-size: 1rem; width: auto; height: auto; opacity: 0.3; letter-spacing: 0.1em; }
.fi-1 { left: 30%; top: 14px; color: var(--amber); animation-delay: 0s; }
.fi-2 { left: 38%; top: 46px; color: #fff; animation-delay: -1.5s; width: 22px; height: 22px; }
.fi-3 { left: 47%; top: 12px; color: #fda4af; animation-delay: -3s; }
.fi-4 { left: 55%; top: 44px; color: var(--amber); animation-delay: -2s; width: 20px; height: 20px; }
.fi-5 { left: 63%; top: 16px; color: #fff; animation-delay: -4s; }
.fi-6 { left: 70%; top: 48px; color: #a5f3fc; animation-delay: -0.8s; width: 22px; height: 22px; }
.fi-7 { left: 43%; top: 30px; color: #fff; animation-delay: -2.6s; }
.fi-8 { left: 59%; top: 28px; color: #bbf7d0; animation-delay: -3.6s; width: 20px; height: 20px; }

/* Kara tahta (sağ taraf) */
.board { width: 190px; height: 78px; flex-shrink: 0; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)); }
.board .chalk {
  font-family: 'Segoe Print', 'Comic Sans MS', 'Plus Jakarta Sans', cursive;
  font-size: 19px;
  font-weight: 700;
  fill: #fff;
  fill-opacity: 0;
  stroke: #fff;
  stroke-width: 0.8;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: chalk 7s ease-in-out infinite;
}
.board .chalk-2 { animation-delay: 1.2s; }
.board .chalk-piece { animation: chalkpiece 7s ease-in-out infinite; }

.header-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Ziyaretçi girişi (header sağ) ---------- */
.header-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.user-area { display: flex; align-items: center; gap: 6px; min-width: 0; }
.user-area svg {
  width: 18px; height: 18px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.btn-login { background: var(--amber); color: var(--indigo-950); box-shadow: 0 3px 0 #d97706; }
.user-chip {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none; color: #fff; font-size: 0.85rem; font-weight: 700;
}
.user-chip:hover { background: rgba(255, 255, 255, 0.22); }
button.user-chip { font-family: inherit; cursor: pointer; }
.user-menu-wrap { position: relative; }
.user-menu {
  display: none; position: absolute; top: calc(100% + 10px); right: 0; z-index: 60;
  min-width: 230px; max-width: calc(100vw - 20px); padding: 6px;
  background: #fff; color: var(--slate-900); border: 1px solid var(--indigo-100); border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22);
}
.user-menu.open { display: block; }
.user-menu-head { padding: 10px 12px; border-bottom: 1px solid var(--slate-200); margin-bottom: 4px; display: flex; flex-direction: column; gap: 2px; }
.user-menu-head b { font-size: 0.9rem; color: var(--indigo-950); }
.user-menu-head small { font-size: 0.74rem; color: var(--slate-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu a, .user-menu button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0; background: none;
  color: var(--slate-600); font: inherit; font-size: 0.88rem; font-weight: 700; text-decoration: none; cursor: pointer;
}
.user-menu a:hover, .user-menu button:hover { background: var(--indigo-50); color: var(--indigo-800); }
.user-menu .user-menu-out { color: var(--rose); border-top: 1px solid var(--slate-200); border-radius: 0 0 10px 10px; margin-top: 4px; }
.user-menu .user-menu-out:hover { background: #fff1f2; color: var(--rose); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--amber); color: var(--indigo-950); font-weight: 800; font-size: 0.8rem;
}
.user-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.btn-logout { background: rgba(255, 255, 255, 0.14); padding: 9px; border-radius: 50%; }
.btn-logout:hover { background: rgba(225, 29, 72, 0.85); filter: none; }

.login-note {
  margin: 0 auto 16px; max-width: 680px; text-align: center;
  background: #fffbeb; color: #92400e; border: 1px solid #fde68a;
  border-radius: 14px; padding: 10px 14px; font-size: 0.88rem;
}
.login-note a { color: var(--indigo-700); font-weight: 800; }

/* Giriş ve profil sayfaları */
.auth-card { max-width: 460px; margin: 32px auto; text-align: center; padding: 32px 28px; }
.auth-icon {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px;
  display: grid; place-items: center; font-size: 2rem; background: var(--indigo-50);
}
.auth-card h1, .profile-card h1 { margin: 0 0 8px; font-size: 1.45rem; font-weight: 800; color: var(--indigo-900); }
.auth-lead { margin: 0 0 18px; color: var(--slate-600); font-size: 0.92rem; font-weight: 500; line-height: 1.55; }
.auth-error { margin-bottom: 12px; }
.auth-error:empty { display: none; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 13px 18px;
  background: #fff; color: #1f1f1f;
  border: 1px solid #747775; border-radius: 999px;
  font-family: Roboto, Arial, sans-serif; font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-google:hover { background: #f8faff; box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3); }
.btn-google svg { width: 20px; height: 20px; }
.auth-points { list-style: none; padding: 0; margin: 22px 0 18px; text-align: left; font-size: 0.85rem; color: var(--slate-600); font-weight: 500; display: grid; gap: 6px; }
.auth-back { font-size: 0.85rem; color: var(--indigo-700); text-decoration: none; }

.profile-card { max-width: 760px; margin: 12px auto; }
.profile-head { display: flex; gap: 16px; align-items: center; }
.profile-head .auth-icon { margin: 0; flex-shrink: 0; }
.profile-head .auth-lead { margin: 0; }
.google-account { font-size: 0.8rem; color: var(--slate-500); margin: 14px 0 18px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.optional { color: var(--slate-500); font-weight: 500; }
.kvkk {
  display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 10px;
  padding: 12px 14px; border-radius: 14px; background: var(--indigo-50);
  font-size: 0.8rem; font-weight: 500; color: var(--slate-600); line-height: 1.5; cursor: pointer;
}
.kvkk input { margin-top: 3px; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--indigo-600); }
.ok-msg { color: var(--emerald); font-size: 0.9rem; margin: 0 0 10px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--slate-200); margin: 0 0 20px; overflow-x: auto; }
.tabs a {
  padding: 10px 14px; color: var(--slate-600); text-decoration: none; font-size: 0.9rem; font-weight: 700;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs a:hover { color: var(--indigo-800); }
.tabs a.active { color: var(--indigo-800); border-bottom-color: var(--amber); }
.form-section { margin: 4px 0 12px; font-size: 0.95rem; color: var(--indigo-900); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.form-section small { font-size: 0.75rem; color: var(--slate-500); font-weight: 500; }
.form-grid + .form-section { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--slate-200); }
.history { box-shadow: none; }
.history-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.history-head .hint { flex: 1 1 260px; }
#zipProgress { margin: 0 0 12px; }
.okulsec .field + .field { margin-top: 6px; }
.okulsec-hint:empty { display: none; }
.okulsec-hint { margin-top: 4px; }
.my-schools { margin: 14px 0 20px; }
.my-schools .is-default { border-color: var(--amber); background: #fffbeb; }
.panel-sub { border: 1px dashed var(--indigo-200); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.panel-sub .btn { align-self: flex-start; margin-top: 4px; }
.history .doc-icon { font-size: 1.1rem; }

.auth-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: rgba(15, 23, 42, 0.55);
}
.auth-overlay-box {
  background: #fff; border-radius: 16px; padding: 20px 26px;
  display: flex; gap: 12px; align-items: center; color: var(--indigo-900); font-weight: 700;
}
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--indigo-100); border-top-color: var(--indigo-600);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .user-name { max-width: 100px; }
}
@media (max-width: 640px) {
  .header-right { gap: 8px; }
  .user-name { display: none; }
  .user-chip { padding: 3px; }
  .btn-login { padding: 8px 11px; font-size: 0.78rem; gap: 5px; }
  .btn-login svg { width: 15px; height: 15px; }
  .user-area .btn-logout { display: none; } /* mobilde çıkış hesap menüsünde */
  .user-menu { position: fixed; top: 78px; right: 8px; left: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .profile-head { flex-direction: column; text-align: center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(10deg); }
}
@keyframes tassel {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(14deg); }
}
@keyframes chalk {
  0% { stroke-dashoffset: 400; fill-opacity: 0; opacity: 1; }
  40% { stroke-dashoffset: 0; fill-opacity: 0; }
  55% { fill-opacity: 0.9; }
  85% { fill-opacity: 0.9; opacity: 1; stroke-dashoffset: 0; }
  100% { fill-opacity: 0.9; opacity: 0; stroke-dashoffset: 0; }
}
@keyframes chalkpiece {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-60px) translateY(-24px); }
  40% { transform: translateX(-10px) translateY(-24px); }
  55% { transform: translateX(0); }
}

/* Hero içinde hafif hareketli simgeler */
.hero-wrap { position: relative; overflow: hidden; }
.hero-wrap > *:not(.hero-deco) { position: relative; z-index: 1; }
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.hero-deco .fi { width: 34px; height: 34px; opacity: 0.12; color: var(--indigo-600); }
.hero-deco .h1 { left: 4%; top: 18px; }
.hero-deco .h2 { left: 12%; bottom: 20px; animation-delay: -2s; color: var(--rose); }
.hero-deco .h3 { right: 5%; top: 22px; animation-delay: -1s; color: #d97706; }
.hero-deco .h4 { right: 13%; bottom: 18px; animation-delay: -3s; }

@media (prefers-reduced-motion: reduce) {
  .fi, .board .chalk, .board .chalk-piece, .brand-logo .tassel { animation: none; }
  .board .chalk { stroke-dashoffset: 0; fill-opacity: 0.9; }
}
@media (max-width: 900px) {
  .board { width: 150px; height: 62px; }
  .fi-1, .fi-2, .fi-3 { display: none; }
  .fi-4 { left: 50%; } .fi-5 { left: 58%; } .fi-6 { left: 66%; } .fi-7 { left: 44%; top: 14px; } .fi-8 { left: 62%; top: 50px; }
}
@media (max-width: 640px) {
  /* Logo + yazı küçülebilir; tahta ve en sağdaki giriş/hesap her zaman tam görünür.
     Tahta header'ın yüksekliğini doldurur. */
  .header-inner { padding: 7px 10px 10px; gap: 8px; min-height: 0; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-name, .brand-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-right { flex-shrink: 0; gap: 8px; }
  .board { height: 58px; width: 141px; }
}
@media (max-width: 520px) {
  .brand { gap: 7px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-name { font-size: 1.02rem; letter-spacing: 0.01em; }
  .brand-tag { font-size: 0.6rem; margin-top: 3px; letter-spacing: 0; }
  .board { height: 54px; width: 131px; }
  .header-deco { display: none; }
  .hero-deco { display: none; }
  /* Giriş butonu: yalnızca "Giriş" yazısı (simgesiz) */
  .lg-yap { display: none; }
  .btn-login svg { display: none; }
  .btn-login { padding: 9px 11px; font-size: 0.8rem; }
}
@media (max-width: 400px) {
  .header-inner { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .header-right { gap: 6px; }
  .brand { gap: 6px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-name { font-size: 0.95rem; letter-spacing: 0; }
  .brand-tag { font-size: 0.56rem; }
  .board { height: 50px; width: 122px; }
  .btn-login { padding: 8px 9px; font-size: 0.78rem; }
}
@media (max-width: 350px) {
  .brand-name { font-size: 0.88rem; }
  .brand-tag { font-size: 0.52rem; }
  .board { height: 44px; width: 107px; }
}

/* ---------- Layout ---------- */
main { flex: 1; width: 100%; max-width: 1680px; margin: 0 auto; padding: 28px clamp(16px, 2.5vw, 40px); }
.panel {
  background: #fff;
  border: 1px solid var(--indigo-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}
.hero { text-align: center; max-width: 680px; margin: 0 auto 20px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; color: var(--indigo-900); }
.hero p { margin: 0; color: var(--slate-600); font-size: 0.95rem; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; }
.filters input { flex: 2 1 260px; }
.filters select { flex: 1 1 180px; }

.field,
.filters input,
.filters select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--indigo-200);
  border-radius: 14px;
  background: #fff;
  color: var(--slate-900);
}
.field:focus,
.filters input:focus,
.filters select:focus { outline: none; border-color: var(--indigo-600); }

.result-info { color: var(--slate-500); font-size: 0.85rem; margin: 0 0 12px 4px; }

/* ---------- Kartlar ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--indigo-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 10px 28px rgba(30, 27, 75, 0.14); transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.badge {
  background: var(--indigo-100);
  color: var(--indigo-800);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}
.count { font-size: 0.75rem; color: var(--slate-500); }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 800; color: var(--indigo-950); line-height: 1.35; overflow-wrap: anywhere; }
.card p { margin: 0 0 16px; font-size: 0.9rem; color: var(--slate-600); line-height: 1.55; white-space: pre-line; }
.card-actions { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--slate-200); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.15s;
}
.btn:hover { filter: brightness(0.92); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-flex { flex: 1; }
.btn-word { background: var(--blue); }
.btn-pdf { background: var(--rose); }
.btn-primary { background: var(--emerald); }
.btn-dark { background: var(--indigo-800); }
.btn-ghost { background: transparent; color: var(--slate-600); border: 1px solid var(--slate-200); }
.btn-danger { background: var(--rose); }
.btn-off { background: var(--slate-200); color: var(--slate-500); cursor: not-allowed; }
.btn-off:hover { filter: none; }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--slate-500);
  background: #fff;
  border: 1px solid var(--indigo-100);
  border-radius: var(--radius);
}

/* ---------- Ana menü (header altı) ---------- */
.main-nav {
  position: relative;
  z-index: 15;
  background: #fff;
  border-bottom: 1px solid var(--indigo-100);
  box-shadow: 0 2px 10px rgba(30, 27, 75, 0.05);
}
.nav-inner { max-width: 1680px; margin: 0 auto; padding: 0 clamp(12px, 2.5vw, 40px); }
.nav-list > li > .nav-link > svg:first-child { width: 16px; height: 16px; }
@media (min-width: 861px) and (max-width: 1320px) {
  .nav-right .nav-link span { display: none; } /* İndirdiklerim yalnızca simge */
}
@media (min-width: 861px) and (max-width: 1400px) {
  /* Menü tek satıra sığsın: Ana Sayfa dışındaki sabit öğelerde simge gizlenir */
  .nav-list > li:not(:first-child):not(.nav-right) > a.nav-link > svg:first-child { display: none; }
}
.nav-toggle { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list svg, .nav-toggle svg, .crumbs svg, .folder-card svg, .doc-icon svg, .dash svg, .block svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.nav-link {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 9px;
  border: 0; background: none; cursor: pointer;
  color: var(--slate-600); font-weight: 700; font-size: 0.84rem; text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-link svg { width: 17px; height: 17px; }
.nav-link:hover, .has-sub.open > .nav-link { color: var(--indigo-800); }
.nav-link.active { color: var(--indigo-800); border-bottom-color: var(--amber); }
.has-sub > .nav-link svg { width: 15px; height: 15px; transition: transform 0.2s; }
.has-sub.open > .nav-link svg { transform: rotate(180deg); }
.nav-right { margin-left: auto; }
.nav-drop {
  display: none;
  position: absolute; top: 100%; left: 0;
  min-width: 250px; max-height: 70vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--indigo-100); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(30, 27, 75, 0.16);
  padding: 6px;
}
.has-sub.open .nav-drop { display: block; }
.nav-drop a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--slate-600); text-decoration: none; font-size: 0.86rem;
}
.nav-drop a:hover { background: var(--indigo-50); color: var(--indigo-800); }
.nav-drop a b { color: var(--slate-500); font-size: 0.75rem; }
.nav-drop .nav-drop-all { color: var(--indigo-700); font-weight: 800; border-bottom: 1px solid var(--slate-200); border-radius: 10px 10px 0 0; margin-bottom: 4px; }

@media (max-width: 860px) {
  .nav-toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 4px; border: 0; background: none; cursor: pointer;
    color: var(--indigo-900); font-weight: 800;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-list { display: none; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  .nav-list.open { display: flex; }
  .nav-link { width: 100%; padding: 11px 6px; border-bottom: 0; border-left: 3px solid transparent; }
  .nav-link.active { border-bottom: 0; border-left-color: var(--amber); }
  .has-sub > .nav-link svg { margin-left: auto; }
  .nav-drop { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--indigo-100); border-radius: 0; margin-left: 12px; max-height: none; }
  .nav-right { margin-left: 0; }
}

/* ---------- Bölümler, klasörler, evrak satırları ---------- */
.search-hint { margin-top: 8px; text-align: center; }
.block { margin-bottom: 28px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 4px 12px; }
.block-head h2 { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--indigo-900); }
.block-head span { font-size: 0.8rem; color: var(--slate-500); }

.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.folder-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; background: #fff;
  border: 1px solid var(--indigo-100); border-radius: 16px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--slate-900);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.folder-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30, 27, 75, 0.12); border-color: var(--indigo-200); }
.folder-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309;
}
.folder-icon svg { width: 24px; height: 24px; }
.folder-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.folder-body b { font-size: 0.95rem; color: var(--indigo-950); overflow-wrap: anywhere; }
.folder-body small { font-size: 0.76rem; color: var(--slate-500); font-weight: 600; }
.folder-card > svg { width: 18px; height: 18px; color: var(--indigo-200); }
.folder-card:hover > svg { color: var(--indigo-600); }

.doc-list {
  background: #fff; border: 1px solid var(--indigo-100); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.doc-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.doc-row + .doc-row { border-top: 1px solid var(--slate-200); }
.doc-row:hover { background: var(--slate-50); }
.doc-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px;
  display: grid; place-items: center; background: var(--indigo-50); color: var(--indigo-600);
}
.doc-icon svg { width: 20px; height: 20px; }
.doc-body { flex: 1; min-width: 0; }
.doc-body h3 { margin: 0 0 3px; font-size: 0.97rem; font-weight: 800; color: var(--indigo-950); overflow-wrap: anywhere; }
.doc-body p { margin: 0 0 4px; font-size: 0.84rem; color: var(--slate-600); font-weight: 500; line-height: 1.45; }
.doc-meta { font-size: 0.75rem; color: var(--slate-500); }
.doc-meta i { font-style: normal; color: var(--indigo-200); }
.doc-actions { display: flex; gap: 6px; flex-shrink: 0; }
.doc-actions .btn { padding: 9px 13px; font-size: 0.8rem; }

.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 0.8rem; margin: 0 4px 6px; color: var(--slate-500); }
.crumbs a { display: inline-flex; align-items: center; gap: 5px; color: var(--indigo-700); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs svg { width: 14px; height: 14px; }
.crumbs span { color: var(--slate-600); }
.folder-title { margin: 0 4px 18px; font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-weight: 800; color: var(--indigo-900); }

/* Panelim (giriş yapan kullanıcı) */
.dash { display: grid; grid-template-columns: auto auto 1fr; gap: 18px 28px; align-items: center; }
.dash-hello { display: flex; align-items: center; gap: 14px; }
.dash-hello h2 { margin: 0 0 2px; font-size: 1.2rem; color: var(--indigo-900); }
.dash-hello p { margin: 0; font-size: 0.82rem; color: var(--slate-500); font-weight: 500; }
.avatar-lg { width: 50px; height: 50px; font-size: 1.05rem; }
.dash-links { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-link {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border: 1px solid var(--indigo-100); border-radius: 12px; background: var(--indigo-50);
  color: var(--indigo-800); text-decoration: none; font-size: 0.85rem; font-weight: 700;
}
.dash-link:hover { border-color: var(--indigo-200); }
.dash-link svg { width: 17px; height: 17px; }
.dash-recent { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash-recent .side-title { margin: 0 0 4px 10px; }
.dash-recent a {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 9px;
  color: var(--slate-600); text-decoration: none; font-size: 0.82rem;
}
.dash-recent a:hover { background: var(--slate-50); }
.dash-recent a svg { width: 15px; height: 15px; color: var(--indigo-600); }
.dash-recent a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-recent a small { color: var(--slate-500); font-size: 0.72rem; white-space: nowrap; }

@media (max-width: 960px) {
  .dash { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .doc-row { flex-wrap: wrap; padding: 14px; }
  .doc-actions { width: 100%; padding-left: 54px; }
  .doc-actions .btn { flex: 1; }
  .folder-grid { grid-template-columns: 1fr; }
}

/* ---------- Takvim ---------- */
.t-donem { --tc: #4f46e5; --tb: #eef2ff; }
.t-tatil { --tc: #059669; --tb: #ecfdf5; }
.t-belirli_gun { --tc: #d97706; --tb: #fffbeb; }
.t-sinav { --tc: #e11d48; --tb: #fff1f2; }
.t-diger { --tc: #64748b; --tb: #f1f5f9; }
.t-kisisel { --tc: #a21caf; --tb: #fdf4ff; }

.block-link { font-size: 0.82rem; color: var(--indigo-700); text-decoration: none; font-weight: 700; }
.block-link:hover { text-decoration: underline; }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.up-card {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px;
  background: #fff; border: 1px solid var(--indigo-100); border-left: 4px solid var(--tc);
  border-radius: 14px; box-shadow: var(--shadow); text-decoration: none; color: var(--slate-900);
  transition: transform 0.15s;
}
.up-card:hover { transform: translateY(-2px); }
.up-date {
  width: 46px; height: 50px; flex-shrink: 0; border-radius: 12px; background: var(--tb); color: var(--tc);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.up-date b { font-size: 1.25rem; }
.up-date small { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; margin-top: 2px; }
.up-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.up-body small { font-size: 0.72rem; color: var(--slate-500); }
.up-body b { font-size: 0.9rem; color: var(--indigo-950); overflow-wrap: anywhere; }

.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 24vw, 400px); gap: 20px; align-items: start; margin-bottom: 28px; }
.cal-panel { margin: 0; padding: 18px; }
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cal-head h2 { margin: 0; flex: 1; text-align: center; font-size: 1.2rem; color: var(--indigo-900); }
.cal-nav {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--indigo-50); color: var(--indigo-800);
}
.cal-nav:hover { background: var(--indigo-100); }
.cal-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cal-today { padding: 8px 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: 0.72rem; font-weight: 800; color: var(--slate-500); padding: 4px 0 6px; text-transform: uppercase; }
.cal-day {
  min-height: 86px; padding: 6px; border: 1px solid var(--slate-200); border-radius: 10px; background: #fff;
  display: flex; flex-direction: column; gap: 3px; align-items: stretch; text-align: left; cursor: pointer; font: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.cal-day:hover { border-color: var(--indigo-200); background: var(--slate-50); }
.cal-day.other { opacity: 0.45; }
.cal-day.weekend .cal-num { color: var(--slate-500); }
.cal-day.holiday { background: #f0fdf4; }
.cal-day.today .cal-num { background: var(--amber); color: var(--indigo-950); }
.cal-day.sel { border: 2px solid var(--indigo-600); padding: 5px; }
.cal-num {
  align-self: flex-start; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; color: var(--indigo-950);
}
.cal-pills { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pill {
  font-style: normal; font-size: 0.66rem; font-weight: 700; line-height: 1.3;
  padding: 1px 5px; border-radius: 5px; background: var(--tb); color: var(--tc);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pill.more { background: var(--slate-200); color: var(--slate-600); }
.cal-dots { display: none; gap: 3px; flex-wrap: wrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tc); display: inline-block; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 0.75rem; color: var(--slate-600); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }

.cal-side { display: flex; flex-direction: column; gap: 16px; }
.cal-side .panel { margin: 0; padding: 18px; }
.cal-side h2 { font-size: 1rem; margin: 0 0 12px; text-transform: none; }
.day-item {
  display: flex; gap: 10px; padding: 10px; border-radius: 12px; background: var(--tb);
  border-left: 3px solid var(--tc); margin-bottom: 8px; font-size: 0.85rem;
}
.day-item > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.day-item b { color: var(--indigo-950); overflow-wrap: anywhere; }
.day-item small { font-size: 0.74rem; color: var(--slate-600); font-weight: 500; }
.day-item a { font-size: 0.78rem; color: var(--indigo-700); font-weight: 700; text-decoration: none; margin-top: 2px; }
.day-item.done b { text-decoration: line-through; opacity: 0.6; }
.ajanda-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ajanda-form .field { padding: 10px 12px; }
.ajanda-form .row { flex-wrap: nowrap; }
.ajanda-form .error:empty { display: none; }
.aj-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow-y: auto; }
.aj-list li { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 10px; }
.aj-list li:hover { background: var(--slate-50); }
.aj-list label { flex: 1; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; min-width: 0; }
.aj-list input { margin-top: 3px; width: 16px; height: 16px; accent-color: #a21caf; flex-shrink: 0; }
.aj-list span { display: flex; flex-direction: column; min-width: 0; }
.aj-list b { font-size: 0.85rem; color: var(--indigo-950); overflow-wrap: anywhere; }
.aj-list small { font-size: 0.72rem; color: var(--slate-500); font-weight: 500; }
.aj-list li.done b { text-decoration: line-through; color: var(--slate-500); }
.aj-list li.late small { color: var(--rose); font-weight: 700; }
.aj-del { border: 0; background: none; padding: 6px; border-radius: 8px; cursor: pointer; color: var(--slate-500); }
.aj-del:hover { background: #fff1f2; color: var(--rose); }
.aj-del svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.ev-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center;
  background: var(--tb); font-size: 1.1rem;
}

@media (max-width: 1000px) {
  .cal-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cal-panel { padding: 12px; }
  .cal-grid { gap: 2px; }
  .cal-day { min-height: 54px; padding: 4px; border-radius: 8px; align-items: center; }
  .cal-day.sel { padding: 3px; }
  .cal-num { align-self: center; font-size: 0.75rem; }
  .cal-pills { display: none; }
  .cal-dots { display: flex; justify-content: center; }
  .cal-head h2 { font-size: 1.05rem; }
}

/* ---------- Planlar sihirbazı ---------- */
.pl-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 4px 20px; padding: 0; }
.pl-steps li { font-size: 0.8rem; font-weight: 700; color: var(--slate-500); }
.pl-steps li > span, .pl-steps li > a {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 7px; border-radius: 999px;
  background: #fff; border: 1px solid var(--slate-200); color: inherit; text-decoration: none;
}
.pl-steps li > a { color: var(--indigo-700); }
.pl-steps li i {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal;
  background: var(--slate-50); font-size: 0.72rem; color: var(--slate-600);
}
.pl-steps li.on > span { background: var(--indigo-950); color: #fff; border-color: var(--indigo-950); }
.pl-steps li.on i { background: rgba(255, 255, 255, 0.18); color: #fff; }
.pl-steps li.done > a, .pl-steps li.done > span { border-color: var(--indigo-200); background: var(--indigo-50); }
.pl-steps li.done i { background: var(--emerald); color: #fff; }
.pl-steps li:not(.done):not(.on) { opacity: 0.75; }

.pl-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 24px; }
.pl-type {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 18px; background: #fff; border: 1px solid var(--indigo-100); border-radius: 16px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--slate-900);
}
.pl-type:hover { border-color: var(--indigo-600); }
.pl-type-icon { grid-row: span 2; font-size: 1.8rem; }
.pl-type b { font-size: 1.05rem; color: var(--indigo-950); }
.pl-type small { color: var(--slate-500); font-size: 0.78rem; }
.pl-type > svg { grid-row: span 2; width: 18px; height: 18px; color: var(--indigo-200); fill: none; stroke: currentColor; stroke-width: 2; }

.pl-classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.pl-class {
  display: flex; flex-direction: column; gap: 4px; padding: 20px 18px; min-height: 82px;
  background: #fff; border: 1px solid var(--indigo-100); border-radius: 14px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--indigo-950); transition: border-color 0.15s, transform 0.15s;
}
.pl-class:hover { border-color: var(--indigo-600); transform: translateY(-2px); }
.pl-class b { font-size: 1.05rem; }
.pl-class small { font-size: 0.75rem; color: var(--slate-500); font-weight: 600; }
.pl-class.empty-c b { color: var(--slate-500); }

.pl-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 28px; }
.pl-side { position: sticky; top: 100px; min-width: 0; }
.pl-main { min-width: 0; }
.pl-class-list { background: #fff; border: 1px solid var(--indigo-100); border-radius: 14px; overflow: hidden; }
.pl-class-list a {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 14px;
  border-bottom: 1px solid var(--slate-200); color: var(--slate-600); text-decoration: none; font-size: 0.86rem; font-weight: 700;
}
.pl-class-list a:last-child { border-bottom: 0; }
.pl-class-list a:hover { background: var(--slate-50); }
.pl-class-list a.on { background: #fff7ed; color: #9a3412; }
.pl-class-list small { color: var(--slate-500); font-weight: 600; }
.pl-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.pl-tabs a {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--slate-200); background: #fff;
  color: var(--slate-600); text-decoration: none; font-size: 0.84rem; font-weight: 700;
}
.pl-tabs a.on { background: var(--indigo-950); color: #fff; border-color: var(--indigo-950); }
.pl-lessons { background: #fff; border: 1px solid var(--indigo-100); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pl-lesson { display: flex; align-items: center; gap: 12px; padding: 13px 16px; text-decoration: none; color: var(--slate-900); }
.pl-lesson + .pl-lesson { border-top: 1px solid var(--slate-200); }
.pl-lesson:hover { background: var(--slate-50); }
.pl-lesson-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-lesson-body b { font-size: 0.95rem; color: var(--indigo-950); }
.pl-lesson-body small { font-size: 0.78rem; color: var(--slate-500); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-dl { font-size: 0.75rem; color: var(--slate-500); white-space: nowrap; }
.pl-lesson > svg { width: 16px; height: 16px; color: var(--indigo-200); fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }

.pl-req { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 360px); gap: 20px; align-items: start; margin-bottom: 28px; }
.pl-form { margin: 0; }
.pl-form .form-grid { gap: 12px; }
.pl-info { margin: 0; }
.pl-info h2 { font-size: 1rem; }
.pl-info dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 10px; font-size: 0.84rem; }
.pl-info dt { color: var(--slate-500); font-weight: 600; }
.pl-info dd { margin: 0; color: var(--indigo-950); font-weight: 700; }

@media (max-width: 860px) {
  .pl-layout, .pl-req { grid-template-columns: 1fr; }
  .pl-side { position: static; }
  .pl-class-list { display: flex; overflow-x: auto; }
  .pl-class-list a { border-bottom: 0; border-right: 1px solid var(--slate-200); white-space: nowrap; gap: 8px; }
  .pl-classes { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ---------- Okullar ---------- */
.ok-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 24vw, 400px); gap: 24px; align-items: start; margin-bottom: 28px; }
.ok-main { min-width: 0; }
.ok-filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; padding: 16px; margin-bottom: 14px; }
.ok-filters .hint { grid-column: 1 / -1; }
.ok-filters .field { padding: 10px 12px; }
.ok-table-wrap { background: #fff; border: 1px solid var(--indigo-100); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.ok-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.ok-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate-500); padding: 12px 14px; background: var(--slate-50); border-bottom: 1px solid var(--slate-200); }
.ok-table td { padding: 11px 14px; border-bottom: 1px solid var(--slate-200); color: var(--slate-600); font-weight: 600; }
.ok-table td:first-child { color: var(--slate-500); width: 56px; }
.ok-table td a { color: var(--indigo-700); text-decoration: none; font-weight: 700; }
.ok-table td a:hover { text-decoration: underline; }
.ok-table tr:hover td { background: var(--slate-50); }
.ok-type { white-space: nowrap; }
.ok-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 16px 0; }
.ok-pager button {
  min-width: 38px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--indigo-100); background: #fff;
  color: var(--indigo-800); font-weight: 700; cursor: pointer; font-family: inherit;
}
.ok-pager button.on { background: var(--indigo-700); color: #fff; border-color: var(--indigo-700); }
.ok-pager button:disabled { opacity: 0.4; cursor: default; }
.ok-pager span { padding: 8px 4px; color: var(--slate-500); }

.ok-side, .ok-side-wrap { display: flex; flex-direction: column; gap: 16px; }
.ok-side .panel, .ok-side-wrap > .panel { margin: 0; padding: 18px; }
.ok-side h2, .ok-side-wrap h2 { font-size: 0.82rem; letter-spacing: 0.03em; color: var(--indigo-900); margin: 0 0 12px; }
.ok-pop { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ok-pop li { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--slate-200); font-size: 0.84rem; }
.ok-pop li:last-child { border-bottom: 0; }
.ok-pop a { flex: 1; color: var(--slate-600); text-decoration: none; }
.ok-pop a:hover { color: var(--indigo-700); }
.ok-pop b { background: var(--indigo-600); color: #fff; font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; }
.ok-rev-mini { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--slate-200); text-decoration: none; color: var(--slate-600); font-size: 0.82rem; }
.ok-rev-mini:last-child { border-bottom: 0; }
.ok-rev-mini q { font-style: italic; }
.ok-rev-mini small { color: var(--indigo-700); font-weight: 700; }
.stars { display: inline-flex; gap: 1px; }
.star { font-style: normal; color: var(--slate-200); font-size: 0.95rem; }
.star.on { color: #f59e0b; }

.ok-hero { display: flex; gap: 18px; align-items: flex-start; }
.ok-hero-icon { width: 68px; height: 68px; flex-shrink: 0; border-radius: 18px; display: grid; place-items: center; font-size: 2.1rem; background: var(--indigo-50); }
.ok-hero-body { flex: 1; min-width: 0; }
.ok-hero h1 { margin: 0 0 4px; font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--indigo-950); overflow-wrap: anywhere; }
.ok-hero-body > p { margin: 0 0 12px; color: var(--slate-600); font-weight: 600; }
.ok-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; font-size: 0.84rem; color: var(--slate-600); align-items: center; }
.ok-facts span { display: inline-flex; align-items: center; gap: 6px; }
.ok-review-form { border: 1px dashed var(--indigo-200); border-radius: 16px; padding: 16px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.ok-review-form h3 { margin: 0; font-size: 0.95rem; color: var(--indigo-900); }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.9rem; color: var(--slate-200); cursor: pointer; line-height: 1; transition: color 0.1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f59e0b; }
.star-input input:focus-visible + label { outline: 2px solid var(--indigo-600); border-radius: 4px; }
.ok-reviews { display: flex; flex-direction: column; gap: 10px; }
.ok-review { border: 1px solid var(--slate-200); border-radius: 14px; padding: 12px 14px; }
.ok-review.mine { border-color: var(--amber); background: #fffbeb; }
.ok-review-head { display: flex; align-items: center; gap: 10px; }
.ok-review-head > div { flex: 1; display: flex; flex-direction: column; }
.ok-review-head b { font-size: 0.86rem; color: var(--indigo-950); }
.ok-review-head small { font-size: 0.72rem; color: var(--slate-500); }
.ok-review-head .avatar { background: var(--indigo-50); }
.ok-review p { margin: 8px 0 0; font-size: 0.88rem; color: var(--slate-600); font-weight: 500; line-height: 1.5; white-space: pre-line; }
.ok-near { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; }
.ok-near a { color: var(--slate-600); text-decoration: none; }
.ok-near a:hover { color: var(--indigo-700); }
.ok-login-hint { margin-bottom: 14px; }

@media (max-width: 1000px) {
  .ok-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ok-filters { grid-template-columns: 1fr 1fr; }
  .ok-filters #okQ { grid-column: 1 / -1; }
  .ok-table .ok-type { display: none; }
}
@media (max-width: 600px) {
  .ok-filters { grid-template-columns: 1fr; }
  .ok-table td, .ok-table th { padding: 9px 8px; }
  .ok-hero { flex-direction: column; }
}

/* ---------- Ders Programım ---------- */
.page-tool #heroPanel { display: none; }
.page-lead { margin: -10px 4px 16px; color: var(--slate-600); font-size: 0.9rem; font-weight: 500; max-width: 760px; line-height: 1.5; }
.dp-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.dp-spacer { flex: 1; }
.dp-settings { padding: 18px; margin-bottom: 12px; }
.dp-grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 12px; }
.dp-grid-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; color: var(--slate-600); }
.dp-grid-form .span-2 { grid-column: span 2; }
.dp-grid-form .field { padding: 9px 11px; }
.dp-status { min-height: 1.2em; margin: 0 4px 8px; font-size: 0.8rem; color: var(--emerald); }
.dp-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--indigo-100); border-radius: var(--radius); box-shadow: var(--shadow); }
.dp-grid { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.dp-grid th, .dp-grid td { border-bottom: 1px solid var(--slate-200); border-right: 1px solid var(--slate-200); padding: 5px; }
.dp-grid thead th {
  background: var(--indigo-900); color: #fff; font-size: 0.85rem; padding: 10px 6px; position: sticky; top: 0;
}
.dp-grid thead th small { display: block; font-size: 0.7rem; color: var(--amber-soft); font-weight: 700; margin-top: 2px; }
.dp-grid thead th.dp-duty { background: #7c2d12; }
.dp-grid th.dp-time { width: 112px; background: var(--slate-50); color: var(--indigo-950); text-align: left; font-size: 0.82rem; }
.dp-grid thead th.dp-time { background: var(--indigo-950); color: #fff; }
.dp-grid th.dp-time small { display: block; color: var(--slate-500); font-weight: 600; font-size: 0.72rem; }
.dp-cell {
  width: 100%; min-height: 62px; border: 1px dashed var(--slate-200); border-radius: 10px; background: transparent;
  color: var(--indigo-200); font-size: 1.2rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 6px; font-family: inherit; transition: border-color 0.15s, background 0.15s;
}
.dp-cell:hover { border-color: var(--indigo-600); background: var(--indigo-50); color: var(--indigo-600); }
.dp-cell.filled { border: 0; font-size: 0.8rem; }
.dp-cell.filled b { font-size: 0.84rem; overflow-wrap: anywhere; text-align: center; line-height: 1.2; }
.dp-cell.filled span { font-weight: 800; font-size: 0.75rem; opacity: 0.85; }
.dp-cell.filled small { font-size: 0.68rem; opacity: 0.75; }
.dp-cell.filled:hover { filter: brightness(0.96); }
.dp-lunch td { background: #fffbeb; color: #92400e; text-align: center; font-weight: 700; font-size: 0.82rem; }
.dp-lunch th.dp-time { background: #fef3c7; }
.dp-summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 4px 28px; font-size: 0.82rem; color: var(--slate-600); }
.dp-chip { padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 0.75rem; }
.dp-reset { margin-left: auto; }
.print-only { display: none; }

@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: #fff; display: block; }
  .site-header, .main-nav, .site-footer, #heroPanel, #view > *:not(.dp-print), .modal-wrap { display: none !important; }
  main { padding: 0; max-width: none; }
  .print-only { display: block !important; }
  .dp-print { font-family: 'Times New Roman', serif; color: #000; }
  .dp-print h2 { text-align: center; font-size: 15pt; margin: 0 0 4px; }
  .dp-print > p { text-align: center; margin: 0 0 10px; font-size: 11pt; }
  .dp-print table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  .dp-print th, .dp-print td { border: 1px solid #555; padding: 6px 4px; text-align: center; font-size: 10pt; height: 15mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dp-print th { background: #e2e8f0 !important; height: auto; }
  .dp-print td:first-child { width: 26mm; font-weight: bold; }
  .dp-sign { display: flex; justify-content: space-between; margin-top: 14mm; font-size: 11pt; text-align: center; }
  .dp-sign > div { min-width: 60mm; }
}

/* ---------- Kişiye özel evrak: Hazırla penceresi ---------- */
.btn-tpl { background: linear-gradient(135deg, #7c3aed, #a21caf); }
.spinner-sm { width: 14px; height: 14px; border-width: 2px; border-color: rgba(255, 255, 255, 0.4); border-top-color: #fff; }
body.modal-open { overflow: hidden; }
.modal-wrap {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 16px;
  background: rgba(15, 23, 42, 0.55);
  animation: fadein 0.15s ease-out;
}
.modal {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: var(--radius); padding: 26px 24px 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
}
.modal h2 { margin: 0 34px 6px 0; font-size: 1.2rem; font-weight: 800; color: var(--indigo-900); overflow-wrap: anywhere; }
.modal-kicker { margin: 0 0 4px; font-size: 0.75rem; font-weight: 800; color: #a21caf; }
.modal-lead { margin-bottom: 16px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: var(--slate-50); color: var(--slate-600); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--slate-200); }
.sig-note { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 12px; padding: 9px 12px; color: #075985; }
.prep-info {
  display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 12px; border-radius: 12px;
  background: var(--indigo-50); font-size: 0.8rem; color: var(--slate-600); font-weight: 500;
}
.prep-info b { color: var(--indigo-900); }
@keyframes fadein { from { opacity: 0; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--indigo-950);
  color: var(--indigo-200);
  text-align: center;
  font-size: 0.85rem;
  padding: 22px 16px;
  margin-top: 32px;
}
.site-footer p { margin: 0; }

/* ---------- Admin ---------- */
.login-box { max-width: 380px; margin: 40px auto; }
.login-box h1 { margin: 0 0 16px; font-size: 1.4rem; color: var(--indigo-900); }
.stack { display: flex; flex-direction: column; gap: 12px; }
label.lbl { display: block; font-size: 0.8rem; color: var(--slate-600); margin-bottom: 4px; }
.error { color: var(--rose); font-size: 0.85rem; min-height: 1.2em; margin: 0; }
.ok { color: var(--emerald); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stat { border-radius: 16px; padding: 16px; text-align: center; }
.stat span { display: block; font-size: 0.75rem; margin-bottom: 4px; }
.stat b { font-size: 1.6rem; font-weight: 800; }
.stat-1 { background: var(--indigo-50); color: var(--indigo-900); }
.stat-2 { background: #ecfdf5; color: #065f46; }
.stat-3 { background: #fffbeb; color: #92400e; }
.stat-4 { background: #fdf2f8; color: #9d174d; }
.stats:has(.stat-4) { grid-template-columns: repeat(4, 1fr); }
.user-row .list-meta { line-height: 1.6; }
.tag-warn { background: #fef3c7; color: #92400e; }
@media (max-width: 1100px) { .stats:has(.stat-4) { grid-template-columns: repeat(2, 1fr); } }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.panel h2 { margin: 0 0 16px; font-size: 1.15rem; color: var(--indigo-900); }
.file-box {
  border: 2px dashed var(--indigo-200);
  background: var(--indigo-50);
  border-radius: 14px;
  padding: 12px;
}
.file-box input { width: 100%; font-size: 0.85rem; }
.file-current { font-size: 0.8rem; color: var(--slate-600); margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hint { font-size: 0.75rem; color: var(--slate-500); margin: 0; font-weight: 500; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }

.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.list-item h4 { margin: 0 0 4px; font-size: 0.95rem; color: var(--indigo-950); overflow-wrap: anywhere; }
.list-meta { font-size: 0.75rem; color: var(--slate-500); }
.list-actions { display: flex; gap: 6px; flex-shrink: 0; }
.list-actions .btn { padding: 8px 10px; font-size: 0.75rem; }

.list-item.editing { gap: 8px; }
.template-toggle {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px;
  background: #fdf4ff; border: 1px solid #f5d0fe; font-size: 0.82rem; font-weight: 500; color: var(--slate-600);
  line-height: 1.5; cursor: pointer;
}
.template-toggle input { margin-top: 3px; width: 17px; height: 17px; flex-shrink: 0; accent-color: #a21caf; }
.template-toggle b { color: #86198f; }
code { font-family: Consolas, 'Courier New', monospace; font-size: 0.85em; background: rgba(99, 102, 241, 0.1); padding: 1px 5px; border-radius: 5px; color: var(--indigo-800); }
.template-help { border: 1px dashed #f0abfc; border-radius: 14px; padding: 12px; font-size: 0.8rem; color: var(--slate-600); font-weight: 500; }
.template-help p { margin: 0 0 8px; }
.field-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  border: 1px solid var(--indigo-100); background: #fff; border-radius: 10px; padding: 5px 8px; cursor: pointer;
}
.chip small { font-size: 0.68rem; color: var(--slate-500); }
.chip:hover { border-color: var(--indigo-600); }
.chip.copied { border-color: var(--emerald); background: #ecfdf5; }
.chip.copied small::after { content: ' ✓ kopyalandı'; color: var(--emerald); }
.badge-tpl { background: #fae8ff; color: #86198f; font-size: 0.68rem; padding: 2px 8px; vertical-align: middle; }
.badge-sig { background: #e0f2fe; color: #075985; font-size: 0.68rem; padding: 2px 8px; vertical-align: middle; }
.sig-box { border: 1px solid #bae6fd; background: #f0f9ff; border-radius: 14px; padding: 12px 14px; }
.sig-box .field { margin-bottom: 6px; }
.check-inline { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; cursor: pointer; }
.steps { margin: 0 0 14px; padding-left: 20px; font-size: 0.82rem; color: var(--slate-600); font-weight: 500; line-height: 1.6; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.map-grid label { font-size: 0.75rem; color: var(--slate-600); display: flex; flex-direction: column; gap: 4px; }
.map-grid .field { padding: 8px 10px; }
.preview-wrap { overflow-x: auto; border: 1px solid var(--slate-200); border-radius: 10px; }
.preview { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.preview th, .preview td { padding: 6px 8px; border-bottom: 1px solid var(--slate-200); text-align: left; white-space: nowrap; }
.preview th { background: var(--slate-50); color: var(--slate-600); }
.progress { position: relative; height: 26px; margin-top: 12px; border-radius: 999px; background: var(--indigo-50); overflow: hidden; }
.progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--emerald), #34d399); transition: width 0.2s; }
.progress span { position: relative; display: block; text-align: center; line-height: 26px; font-size: 0.78rem; font-weight: 800; color: var(--indigo-950); }
.school-stats { display: flex; flex-wrap: wrap; gap: 6px; max-height: 360px; overflow-y: auto; }
.school-stats span { font-size: 0.75rem; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 8px; padding: 4px 8px; color: var(--slate-600); }
.ev-month { margin: 10px 4px 2px; text-transform: capitalize; }
.ev-badge { font-size: 0.66rem; padding: 2px 8px; vertical-align: middle; }
.list-item.ev-tatil { border-left: 4px solid #10b981; }
.list-item.ev-belirli_gun { border-left: 4px solid #f59e0b; }
.list-item.ev-donem { border-left: 4px solid var(--indigo-600); }
.list-item.ev-sinav { border-left: 4px solid var(--rose); }
.list-item.ev-diger { border-left: 4px solid var(--slate-500); }
.cat-item { flex-wrap: wrap; }
.cat-item > div:first-child { flex: 1 1 200px; min-width: 0; }
.cat-item .list-actions { flex-wrap: wrap; }
.cat-item.is-sub { background: var(--slate-50); border-left: 3px solid var(--indigo-100); }
.cat-item .tree-mark { color: var(--indigo-200); }
.list-item.cat-item.editing { flex-direction: column; align-items: stretch; }
.list-item.cat-item.editing .field { flex: none; width: 100%; }
.list-item.editing .field { flex: 1; padding: 8px 12px; }
.btn-icon { padding: 8px 11px !important; font-size: 0.9rem !important; }
.btn-ghost:disabled { opacity: 0.35; cursor: not-allowed; }
.list-filters { margin-bottom: 12px; }
.list-filters .field { flex: 1 1 160px; padding: 10px 12px; }
.admin-grid.even { grid-template-columns: 1fr 1fr; }

/* ---------- Admin: sol menü düzeni ---------- */
.admin-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  flex: 1;
  width: 100%;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--indigo-100);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 86px;
  height: calc(100vh - 86px);
  overflow-y: auto;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a,
.side-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--slate-600);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;
}
.side-nav a:hover, .side-logout:hover { background: var(--slate-50); color: var(--indigo-800); }
.side-nav a.active { background: var(--indigo-50); color: var(--indigo-800); box-shadow: inset 3px 0 0 var(--indigo-600); }
.side-nav svg, .side-logout svg {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.side-nav span { flex: 1; }
.nav-count {
  background: var(--indigo-100);
  color: var(--indigo-800);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
}
.side-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-500); margin: 0 12px 8px; }
.side-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.side-cats a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--slate-600);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
}
.side-cats a span { overflow-wrap: anywhere; }
.side-cats a b { color: var(--slate-500); font-size: 0.75rem; }
.side-cats a:hover { background: var(--slate-50); }
.side-cats a.active { background: #fffbeb; color: #92400e; }
.side-logout { margin-top: auto; border: 0; background: none; cursor: pointer; width: 100%; color: var(--rose); }
.side-logout:hover { background: #fff1f2; color: var(--rose); }

.admin-main { padding: 24px; min-width: 0; }
.page-title { margin: 0 0 18px; font-size: 1.4rem; font-weight: 800; color: var(--indigo-900); }

.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1.2fr) 2fr auto; gap: 10px; align-items: center; font-size: 0.85rem; }
.bar-label { color: var(--slate-600); overflow-wrap: anywhere; }
.bar { height: 10px; background: var(--indigo-50); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--indigo-600), #8b5cf6); border-radius: 999px; min-width: 4px; }

@media (max-width: 1100px) {
  .admin-grid.even { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--indigo-100);
    padding: 10px 12px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
  }
  .side-nav { flex-direction: row; gap: 4px; }
  .side-nav a, .side-logout { padding: 9px 12px; white-space: nowrap; }
  .side-nav a.active { box-shadow: inset 0 -3px 0 var(--indigo-600); }
  .side-cats { display: none; }
  .side-logout { margin-top: 0; margin-left: auto; width: auto; }
  .admin-main { padding: 18px 14px; }
}
@media (max-width: 520px) {
  .panel { padding: 18px; }
  .stats { grid-template-columns: 1fr; }
  .list-item { flex-direction: column; align-items: stretch; }
  .list-item.editing { flex-direction: column; }
  .side-nav span, .side-logout span { display: none; }
  .side-nav a.active span { display: inline; }
}
