:root {
  --ink: #0f172a;
  --green: #0d2d5e;
  --green-2: #1c458b;
  --gold: #ffc90d;
  --gold-2: #fff4c4;
  --cream: #f3f6fb;
  --paper: #f7f9fc;
  --card: #ffffff;
  --line: #d5deee;
  --muted: #4b5b78;
  --red: #9f1239;
  --shadow: 0 20px 50px rgba(15, 23, 42, .08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 420px at 100% -8%, #ffe58a 0%, transparent 42%),
    var(--cream);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.5;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -.02em; margin: 0 0 .4rem; }
h1 { font-size: clamp(2.1rem, 4vw, 4.2rem); line-height: 1.05; }
h2 { font-size: 1.7rem; }
p { margin: 0 0 .8rem; }
a { color: var(--green-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.kicker { color: var(--green-2); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 680; margin-bottom: .4rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.lead.dar { max-width: 40rem; }
.yardim { color: var(--muted); font-size: .92rem; display: block; margin-top: .35rem; }
.uyari-kutu { background: #fff8dc; border: 1px solid #e6c200; border-radius: 14px; padding: .8rem .95rem; color: var(--ink); }
.uyari-kutu p { margin: .35rem 0; }
.saat-secim { align-content: start; }
.saat-secim .alan-hata { width: 100%; }
.uyari-kutu a { color: var(--green-2); }
.secim.dolu { opacity: .45; }
.takvim-aylar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.takvim-bas { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.takvim-bas .btn { padding: .35rem .7rem; }
.takvim-gunler { display: grid; grid-template-columns: repeat(7, 1fr); gap: .28rem; }
.takvim-ad { text-align: center; color: var(--muted); font-size: .78rem; }
.takvim-gun { border: 1px solid #c5d2e8; background: #fff; border-radius: 10px; min-height: 2.1rem; text-align: center; padding: .35rem 0; }
button.takvim-gun { cursor: pointer; font: inherit; }
.takvim-gun.kapali { background: #eef2f7; color: #94a3b8; }
.takvim-gun.tatil { background: #fff4c4; color: var(--ink); }
button.takvim-gun.secili { background: var(--green); color: var(--gold); border-color: var(--green); }
.takvim-yonetim .takvim-aylar { grid-template-columns: 1fr; }
.takvim-yonetim .takvim-gun { min-height: 4.6rem; text-align: left; padding: .35rem; display: flex; flex-direction: column; gap: .2rem; }
.takvim-no { font-weight: 650; }
.takvim-lejant { display: flex; flex-wrap: wrap; gap: .7rem 1rem; list-style: none; padding: 0; margin: 0 0 .8rem; }
.takvim-lejant li { display: flex; align-items: center; gap: .35rem; font-size: .86rem; }
.takvim-lejant i, .takvim-rozet { display: inline-block; width: .75rem; height: .75rem; border-radius: 999px; }
.takvim-gezi { display: grid; text-decoration: none; border-radius: 8px; padding: .15rem .3rem; line-height: 1.2; }
.takvim-gezi strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.takvim-gezi small { font-size: .68rem; white-space: normal; }
.takvim-rozet { width: auto; height: auto; border-radius: 999px; padding: .15rem .5rem; font-size: .78rem; }
.durum-beklemede { background: #fff4c4; color: var(--ink); }
.durum-onaylandi, .durum-belge, .durum-tamam { background: var(--green); color: var(--gold); }
.durum-belge { background: var(--green-2); }
.durum-tamam { background: var(--ink); }
.durum-red { background: #e2e8f0; color: #64748b; }

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 243, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar, .foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 74px; }
.brand { display: flex; gap: .75rem; align-items: center; color: inherit; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); }
.mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 14px; background: var(--green); color: var(--gold);
  font-family: var(--serif); font-weight: 640;
}
.nav { display: flex; gap: .4rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; padding: .45rem .75rem; border-radius: 999px; }
.nav a:hover { background: #fff; }

.hero { padding: 3.2rem 0 1rem; }
.hero-grid, .split, .harita-yer, .iki, .grafik-yer { display: grid; gap: 1.2rem; }
.hero-grid { grid-template-columns: minmax(0, 46rem); }
.split, .iki { grid-template-columns: 1fr 1fr; margin-bottom: 2.5rem; }
.hero-actions, .adim-btn, .satir-bas { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.hero-actions { margin-top: 1.4rem; }
.bolum { padding: 1rem 0 2rem; }

.btn {
  border: 0; background: var(--green); color: var(--gold); border-radius: 999px;
  padding: .78rem 1.15rem; text-decoration: none; cursor: pointer; font-weight: 580;
}
.btn:hover { background: var(--ink); }
.btn-ghost { background: transparent; color: var(--green); border: 1px solid #b7c6e2; }
.btn-ghost:hover { background: #fff; border-color: var(--green-2); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #e6b400; color: var(--ink); }
.side .btn-ghost { color: var(--gold); border-color: rgba(255, 201, 13, .55); }
.side .btn-ghost:hover { background: rgba(255, 201, 13, .12); }
.btn-tehlike { background: var(--red); }
.btn-block { width: 100%; }
.adim-btn { margin-top: 1.2rem; }

.panel, .fis {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.adimlar { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.adimlar li, .panel { padding: 1.15rem 1.2rem 1.2rem; }
.adimlar li { background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 20px; }
.adimlar span { font-family: var(--serif); color: var(--green-2); font-size: 1.4rem; }

.site-foot { border-top: 1px solid var(--line); margin-top: 2rem; }
.foot { padding: 1.2rem 0 1.6rem; align-items: flex-start; }
.foot p { color: var(--muted); max-width: 36rem; }

.sayfa { padding: 2rem 0 3rem; }
.dar-sayfa { max-width: 520px; }
.sayfa-bas { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1rem; }

.sihirbaz-nav { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 1rem 0; flex-wrap: wrap; }
.sihirbaz-nav li { padding: .4rem .7rem; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.7); }
.sihirbaz-nav li.aktif { background: var(--green); color: var(--gold); }
.adim { display: none; }
.adim.aktif { display: block; }

.alan, .alan-cift, .alan-uc { display: grid; gap: .35rem; }
.alan { margin: .85rem 0; }
.alan span, fieldset legend, .filtre label { font-weight: 580; }
.alan em { font-style: normal; color: var(--muted); font-weight: 480; }
.alan-cift { grid-template-columns: 1fr 1fr; gap: .8rem; }
.alan-uc { grid-template-columns: repeat(3, 1fr); }
.saat-kutu { display: flex; align-items: center; gap: .35rem; }
.saat-kutu select { width: auto; min-width: 5.6rem; }
.saat-kutu b { color: var(--ink); }
input, select, textarea {
  width: 100%; background: #fff; border: 1px solid #c5d2e8; border-radius: 12px; padding: .72rem .8rem;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--green-2); }
.alan-hata, .field-validation-error { color: var(--red); min-height: 0; }
.alan-hata:empty, .field-validation-valid { display: none; }
.input-validation-error { border-color: var(--red); }

.tur { border: 0; padding: 0; margin: .8rem 0; display: flex; gap: .8rem; flex-wrap: wrap; }
.tur legend { width: 100%; margin-bottom: .3rem; }
.tur label, .onay-satir, .secim { display: flex; gap: .5rem; align-items: flex-start; }
.tur input, .onay-satir input, .secim input { width: auto; margin-top: .25rem; }
.onay-grup { display: grid; gap: .4rem; margin: .6rem 0; }
.kvkk { margin-top: 1rem; background: var(--gold-2); padding: .8rem; border-radius: 14px; }
.sonuc-kutu { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-top: .35rem; overflow: hidden; }
.sonuc-kutu button { width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line); padding: .65rem .8rem; cursor: pointer; }
.sonuc-kutu button:hover { background: #eef3fb; }
.sonuc-kutu small { color: var(--muted); }

.fakulte-gruplari { display: grid; gap: 1rem; }
.secim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.secim { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .55rem .7rem; }
.secim:has(input:checked) { border-color: var(--green-2); background: #eef3fb; }

.ozet { display: grid; gap: .35rem; }
.ozet div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .35rem 0; }
.ozet b { text-align: right; }

.bildirim { border-radius: 14px; padding: .8rem 1rem; background: #fff; border: 1px solid var(--line); }
.bildirim.hata { background: #fdf1f1; color: var(--red); border-color: #efd0d0; }
.bildirim.tamam { background: #eef3fb; color: var(--green); border-color: #c9d7ee; }
.validation-summary-valid { display: none; }

.numara-bant { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--green); color: #fff; border-radius: 18px; padding: 1rem 1.2rem; margin: 1rem 0; }
.numara-bant strong { font-family: var(--serif); font-size: 2rem; color: var(--gold); }
.fis { padding: 1.2rem; margin: 1rem 0; }
.fis-ust, .fis-grid { display: flex; justify-content: space-between; gap: 1rem; }
.fis-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 1rem 0; }
.fis h3 { font-size: 1.05rem; }
.fis-no { text-align: right; }
.fis-no strong { display: block; font-family: var(--serif); font-size: 1.6rem; }
.yongalar { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.yongalar li, .yonga { background: var(--gold-2); border-radius: 999px; padding: .25rem .7rem; }
.yonga { display: inline-block; margin: 0 .3rem .3rem 0; }
.karar-not { background: var(--gold-2); padding: .8rem; border-radius: 12px; }
.zaman { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.zaman li { border-top: 3px solid var(--line); padding-top: .4rem; }
.zaman li.oldu { border-color: var(--green-2); }
.zaman span, .zaman b { display: block; }
.zaman span { color: var(--muted); font-size: .9rem; }
.arama-satir { display: flex; gap: .7rem; align-items: end; margin: 1rem 0; }
.arama-satir .alan { flex: 1; margin: 0; }
.ustten { margin-top: 1rem; }

.rozet { display: inline-flex; border-radius: 999px; padding: .15rem .55rem; font-size: .82rem; background: #eee; }
.r-Beklemede { background: var(--gold-2); color: var(--ink); }
.r-Onaylandi { background: #dbe7f8; color: var(--green); }
.r-BelgeYuklendi { background: #1c458b; color: #fff; }
.r-Tamamlandi { background: var(--ink); color: var(--gold); }
.r-Reddedildi { background: #f6d6d6; color: var(--red); }

.admin-body { background: #e7eef8; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--green); color: #fff; padding: 1.1rem; display: flex; flex-direction: column; gap: 1rem; }
.brand-light, .brand-light small { color: #fff; }
.side-nav { display: grid; gap: .25rem; }
.side-nav a { color: #fff; text-decoration: none; padding: .55rem .7rem; border-radius: 12px; }
.side-nav a:hover { background: rgba(255, 201, 13, .16); color: var(--gold); }
.admin-main { padding: 1.3rem 1.4rem 2.5rem; }
.kpi { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; margin-bottom: 1rem; }
.kpi article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .8rem .9rem; }
.kpi span { color: var(--muted); font-size: .85rem; display: block; }
.kpi strong { font-family: var(--serif); font-size: 1.7rem; }
.harita-yer { grid-template-columns: 1.5fr .7fr; align-items: start; margin-bottom: 1rem; }
.harita-kart svg { width: 100%; height: auto; display: block; }
.harita-kart path { stroke: #fff; stroke-width: .8; cursor: pointer; }
#harita { min-height: 280px; position: relative; }
.ipucu { position: fixed; z-index: 30; background: var(--ink); color: var(--gold); padding: .4rem .6rem; border-radius: 8px; pointer-events: none; font-size: .9rem; }
.il-liste { list-style: none; padding: 0; margin: .4rem 0 0; max-height: 520px; overflow: auto; }
.il-liste li { display: flex; justify-content: space-between; gap: .6rem; padding: .38rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.liste-islem { display: flex; gap: .4rem; align-items: center; flex: none; }
.liste-islem a.btn { text-decoration: none; }
.liste-form { width: 100%; }
.il-liste a { color: inherit; text-decoration: none; }
.il-liste b { font-variant-numeric: tabular-nums; }
.tablo { width: 100%; border-collapse: collapse; }
.tablo th, .tablo td { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tablo th { font-size: .82rem; color: var(--muted); font-weight: 580; }
.tablo .islem-btn { padding: .32rem .7rem; font-size: .86rem; white-space: nowrap; }
.tablo small { color: var(--muted); }
.satir-mavi td { background: #dbeafe; }
.satir-sari td { background: #fef3c7; }
.satir-yesil td { background: #86efac; }
.satir-mor td { background: #ddd6fe; }
.satir-kirmizi td { background: #fecaca; }
.satir-lejant { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0 0 1rem; }
.satir-lejant i { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; margin-right: .35rem; vertical-align: middle; }
.lejant-mavi { background: #dbeafe; }
.lejant-sari { background: #fef3c7; }
.lejant-yesil { background: #86efac; }
.lejant-mor { background: #ddd6fe; }
.lejant-kirmizi { background: #fecaca; }
.tablo-kaydir { overflow: auto; }
.belgeler { white-space: nowrap; }
.tel { display: inline-flex; align-items: center; gap: .28rem; }
.wa { display: inline-flex; line-height: 0; }
.wa svg { width: 1.15rem; height: 1.15rem; }
.etiket { display: inline-block; border-radius: 999px; padding: .18rem .6rem; font-size: .78rem; font-weight: 650; white-space: nowrap; }
.etiket-mavi { background: #dbeafe; color: #1e3a8a; }
.etiket-sari { background: #fef3c7; color: #92400e; }
.etiket-yesil { background: #86efac; color: #14532d; }
.etiket-mor { background: #ddd6fe; color: #4c1d95; }
.etiket-kirmizi { background: #fecaca; color: #991b1b; }
.etiket-notr { background: #e2e8f0; color: #334155; }
.pdf-ac { display: inline-flex; flex-direction: column; align-items: center; gap: .15rem; margin-right: .45rem; border: 0; background: transparent; cursor: pointer; color: inherit; font: inherit; font-size: .75rem; padding: 0; }
.pdf-ikon { position: relative; width: 2rem; height: 2.45rem; border-radius: 3px; background: #dc2626; color: #fff; font-size: .62rem; font-weight: 700; display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: .28rem; }
.pdf-ikon:before { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 9px 9px 0; border-color: transparent #fee2e2 transparent transparent; }
.pdf-yok { display: inline-block; margin-right: .45rem; color: var(--muted); font-size: .78rem; }
.pdf-pencere { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, .55); display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.pdf-pencere[hidden] { display: none; }
.pdf-kutu { width: min(960px, 100%); height: min(88vh, 900px); background: #fff; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
.pdf-kutu header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.pdf-kutu iframe { flex: 1; width: 100%; border: 0; background: #525659; }
.sekmeler, .sayfalama, .filtre { display: flex; gap: .4rem; flex-wrap: wrap; margin: .6rem 0 1rem; }
.sekmeler a, .sayfalama a { text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .7rem; }
.sekmeler a.aktif, .sayfalama a.aktif { background: var(--green); color: var(--gold); }
.filtre label { display: grid; gap: .25rem; font-size: .9rem; }
.filtre input, .filtre select { min-width: 160px; }
.grafik-yer { grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
.grafik-genis { grid-column: 1 / -1; }
.grafik-yer canvas { width: 100% !important; height: 250px !important; }
.satir-bas { justify-content: space-between; margin-bottom: .6rem; }

@media (max-width: 980px) {
  .hero-grid, .split, .iki, .adimlar, .alan-cift, .alan-uc, .fis-grid, .zaman, .harita-yer, .admin-shell, .kpi, .grafik-yer, .secim-grid, .takvim-aylar {
    grid-template-columns: 1fr;
  }
  .fis-ust { flex-direction: column; }
  .fis-no { text-align: left; }
  .kpi { grid-template-columns: 1fr 1fr; }
  .admin-main { padding: 1rem; }
}
@media print {
  .topbar, .site-foot, .hero-actions, .bildirim { display: none !important; }
  body { background: white; }
  .fis { box-shadow: none; }
}
