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

:root {
  --lacivert-900: #0b1130;
  --lacivert-800: #121a45;
  --lacivert-700: #1a2461;
  --mor-600: #4338ca;
  --mor-500: #6d5bf5;
  --altin-500: #e8a940;
  --altin-400: #f4bc5e;
  --yesil-500: #17a673;
  --yesil-100: #e3f8ef;
  --kirmizi-500: #e14b5a;
  --kirmizi-100: #fde9eb;
  --bg: #f2f4fb;
  --panel: #ffffff;
  --panel-alt: #f7f8fd;
  --border: #e3e6f3;
  --text: #1b2140;
  --text-soft: #5b6285;
  --text-mute: #9298b8;
  --radius: 16px;
  --radius-sm: 10px;
  --golge: 0 8px 24px -12px rgba(20, 25, 70, 0.18);
  --golge-lg: 0 20px 48px -16px rgba(20, 25, 70, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .baslik-font { font-family: 'Manrope', 'Inter', sans-serif; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Giris sayfasi ---------- */
.giris-sahne {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(109, 91, 245, 0.35), transparent),
    radial-gradient(900px 500px at 110% 10%, rgba(232, 169, 64, 0.25), transparent),
    linear-gradient(160deg, var(--lacivert-900), var(--lacivert-800) 45%, var(--mor-600) 130%);
  padding: 24px;
}
.giris-kart {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 22px;
  padding: 40px 36px 32px;
  box-shadow: var(--golge-lg);
  position: relative;
  overflow: hidden;
}
.giris-kart::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--altin-400), var(--mor-500));
  opacity: 0.18;
}
.giris-rozet {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--mor-600), var(--lacivert-700));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  color: white;
  margin-bottom: 18px;
  box-shadow: var(--golge);
}
.giris-kart h1 { font-size: 21px; margin: 0 0 4px; letter-spacing: -0.01em; }
.giris-alt { color: var(--text-soft); font-size: 13.5px; margin: 0 0 28px; line-height: 1.5; }
.alan { margin-bottom: 16px; }
.alan label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-soft); margin-bottom: 6px; letter-spacing: 0.01em; }
.alan input, .alan select, .alan textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--panel-alt);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.alan input:focus, .alan select:focus, .alan textarea:focus {
  outline: none;
  border-color: var(--mor-500);
  background: white;
  box-shadow: 0 0 0 4px rgba(109, 91, 245, 0.12);
}
.buton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform .12s, box-shadow .12s, opacity .12s, background .15s;
}
.buton-birincil {
  background: linear-gradient(135deg, var(--mor-600), var(--lacivert-700));
  color: white;
  box-shadow: 0 10px 24px -8px rgba(67, 56, 202, 0.55);
  width: 100%;
}
.buton-birincil:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -8px rgba(67, 56, 202, 0.6); }
.buton-birincil:active { transform: translateY(0); }
.buton-ikincil { background: var(--panel-alt); color: var(--text); border: 1.5px solid var(--border); }
.buton-ikincil:hover { background: #eef0fa; }
.buton-altin { background: linear-gradient(135deg, var(--altin-500), var(--altin-400)); color: #3a2c05; }
.buton-tehlike { background: var(--kirmizi-100); color: #a12a37; }
.buton-tehlike:hover { background: #fbd7db; }
.buton-kucuk { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }
.buton[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

.mesaj-kutusu { margin-top: 14px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13.5px; display: none; }
.mesaj-kutusu.gorunur { display: block; }
.mesaj-kutusu.hata { background: var(--kirmizi-100); color: #a12a37; }
.mesaj-kutusu.basarili { background: var(--yesil-100); color: #0d6b4c; }

/* ---------- Uygulama govdesi ---------- */
.uygulama { display: flex; min-height: 100vh; }
.kenar-cubugu {
  width: 254px;
  flex-shrink: 0;
  background: linear-gradient(195deg, var(--lacivert-900), var(--lacivert-800) 60%, #1c2452);
  color: rgba(255,255,255,0.92);
  padding: 22px 16px;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.marka { display: flex; align-items: center; gap: 11px; padding: 4px 8px 22px; }
.marka-rozet {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--altin-500), var(--altin-400));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.marka-metin { line-height: 1.25; }
.marka-metin b { display: block; font-size: 13.5px; font-weight: 700; }
.marka-metin span { display: block; font-size: 10.5px; color: rgba(255,255,255,0.55); letter-spacing: 0.03em; text-transform: uppercase; }

.nav-grup { margin-top: 6px; }
.nav-grup-baslik { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); padding: 14px 12px 6px; font-weight: 700; }
.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(255,255,255,0.07); color: white; }
.nav-link.aktif { background: rgba(255,255,255,0.13); color: white; font-weight: 600; box-shadow: inset 3px 0 0 var(--altin-400); }
.nav-link .ikon { width: 18px; text-align: center; opacity: 0.9; }

.kenar-alt { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.1); }
.kullanici-rozet { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.kullanici-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--mor-500), var(--altin-500)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: white; flex-shrink: 0; }
.kullanici-detay { line-height: 1.3; overflow: hidden; }
.kullanici-detay b { font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kullanici-detay span { font-size: 10.5px; color: rgba(255,255,255,0.5); }

.ana-icerik { flex: 1; min-width: 0; }
.ust-cubuk {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 30px;
  background: rgba(242, 244, 251, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.ust-cubuk h1 { font-size: 19px; margin: 0; letter-spacing: -0.01em; }
.ust-cubuk .aciklama { font-size: 12.5px; color: var(--text-soft); margin-top: 2px; }
.icerik-govde { padding: 26px 30px 60px; max-width: 1320px; }

/* ---------- Kartlar / Grid ---------- */
.kart {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--golge);
  padding: 22px;
}
.kart-baslik { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }
.kart-baslik h2 { font-size: 15.5px; margin: 0; }
.kart-baslik .alt { font-size: 12px; color: var(--text-mute); margin-top: 2px; }

.istatistik-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 22px; }
.istatistik-kart {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--golge);
  position: relative;
  overflow: hidden;
}
.istatistik-kart .etiket { font-size: 12px; color: var(--text-soft); font-weight: 600; margin-bottom: 8px; }
.istatistik-kart .deger { font-size: 24px; font-weight: 800; font-family: 'Manrope', sans-serif; letter-spacing: -0.01em; }
.istatistik-kart .alt-deger { font-size: 11.5px; color: var(--text-mute); margin-top: 5px; }
.istatistik-kart.vurgu { background: linear-gradient(135deg, var(--lacivert-800), var(--mor-600)); color: white; }
.istatistik-kart.vurgu .etiket { color: rgba(255,255,255,0.7); }
.istatistik-kart.vurgu .alt-deger { color: rgba(255,255,255,0.6); }
.istatistik-kart.uyari { background: linear-gradient(135deg, #7a2b30, var(--kirmizi-500)); color: white; }
.istatistik-kart.uyari .etiket, .istatistik-kart.uyari .alt-deger { color: rgba(255,255,255,0.75); }
.istatistik-kart .simge { position: absolute; right: 14px; top: 14px; font-size: 26px; opacity: 0.16; }

/* ---------- Tablolar ---------- */
.tablo-sarici { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
table.veri-tablo { width: 100%; border-collapse: collapse; font-size: 13px; background: white; }
table.veri-tablo th {
  text-align: left; padding: 11px 14px;
  background: var(--panel-alt);
  color: var(--text-soft);
  font-weight: 700; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.03em;
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
table.veri-tablo td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
table.veri-tablo tbody tr:hover { background: #f8f9ff; }
table.veri-tablo tfoot td { font-weight: 700; background: var(--panel-alt); border-top: 2px solid var(--border); border-bottom: none; }
table.veri-tablo td.sayi, table.veri-tablo th.sayi { text-align: right; font-variant-numeric: tabular-nums; }
table.veri-tablo input, table.veri-tablo select { padding: 7px 9px; font-size: 12.5px; border: 1.5px solid var(--border); border-radius: 7px; width: 100%; font-family: inherit; background: var(--panel-alt); }
table.veri-tablo input:focus, table.veri-tablo select:focus { outline: none; border-color: var(--mor-500); background: white; }

.rozet { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.01em; }
.rozet-yesil { background: var(--yesil-100); color: #0d6b4c; }
.rozet-altin { background: #fdf1dc; color: #8a5c0a; }
.rozet-mor { background: #ece9fd; color: #4c3fc9; }
.rozet-kirmizi { background: var(--kirmizi-100); color: #a12a37; }
.rozet-gri { background: #eef0f6; color: var(--text-soft); }

.form-satir { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; align-items: end; }
.arac-cubugu { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bosluk { flex: 1; }

.durum-serit { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.durum-serit.bilgi { background: #eef0fd; color: #3730a3; }
.durum-serit.basarili { background: var(--yesil-100); color: #0d6b4c; }
.durum-serit.uyari { background: #fef3e0; color: #8a5c0a; }
.durum-serit.hata { background: var(--kirmizi-100); color: #a12a37; }

.bos-durum { text-align: center; padding: 50px 20px; color: var(--text-mute); }
.bos-durum .simge { font-size: 34px; margin-bottom: 10px; }

.sekme-cubugu { display: flex; gap: 4px; background: var(--panel-alt); padding: 4px; border-radius: 12px; margin-bottom: 20px; width: fit-content; flex-wrap: wrap; }
.sekme { padding: 9px 16px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-soft); border: none; background: transparent; }
.sekme.aktif { background: white; color: var(--text); box-shadow: var(--golge); }

.yazdirma-baslik { display: none; }
@media print {
  .kenar-cubugu, .ust-cubuk, .arac-cubugu, .yazdirma-gizle { display: none !important; }
  .ana-icerik, .icerik-govde { padding: 0; margin: 0; max-width: 100%; }
  .kart { box-shadow: none; border: none; }
  body { background: white; }
  .yazdirma-baslik { display: block; text-align: center; margin-bottom: 20px; }
}

.modal-arka { position: fixed; inset: 0; background: rgba(11,17,48,0.5); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-arka.acik { display: flex; }
.modal-kutu { background: white; border-radius: var(--radius); padding: 26px; width: 100%; max-width: 460px; box-shadow: var(--golge-lg); }
.modal-kutu h3 { margin: 0 0 4px; font-size: 16px; }
.modal-kutu .modal-alt { font-size: 12.5px; color: var(--text-soft); margin-bottom: 18px; }
.modal-eylemler { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.arama-sonuc-satir { padding: 9px 12px; cursor: pointer; border-bottom: 1px solid var(--border); font-size: 13px; }
.arama-sonuc-satir:last-child { border-bottom: none; }
.arama-sonuc-satir:hover { background: var(--panel-alt); }
.arama-sonuc-satir b { display: block; }
.arama-sonuc-satir span { font-size: 11.5px; color: var(--text-mute); font-variant-numeric: tabular-nums; }

::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c7cbe6; border-radius: 10px; }
