/* Sersistem Dijital — mobil öncelikli, koyu tema.
   APK içinde de aynı arayüz çalışacağı için dokunma hedefleri büyük tutuldu. */
:root {
  --zemin: #0b1220;
  --yuzey: #131c2e;
  --yuzey2: #1b263c;
  --cizgi: #24314b;
  --yazi: #e8edf7;
  --soluk: #8b98b0;
  --ana: #3761f1;
  --ana-koyu: #2749c4;
  --yesil: #17a673;
  --sari: #d99a2b;
  --kirmizi: #e0524a;
  --r: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: var(--zemin); color: var(--yazi);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.5;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font: inherit; color: inherit; }

/* ---------- giriş ---------- */
.giris-sar {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(1000px 600px at 50% -10%, #1a2a52 0%, var(--zemin) 60%);
}
.giris-kutu {
  width: 100%; max-width: 380px; background: var(--yuzey);
  border: 1px solid var(--cizgi); border-radius: 20px; padding: 30px 26px;
}
.giris-kutu .logo-buyuk {
  width: 56px; height: 56px; border-radius: 16px; background: var(--ana);
  display: grid; place-items: center; font-weight: 800; font-size: 20px; margin-bottom: 18px;
}
.giris-kutu h1 { font-size: 22px; margin-bottom: 4px; }
.giris-kutu p { color: var(--soluk); font-size: 13.5px; margin-bottom: 22px; }

/* ---------- form ---------- */
label { display: block; font-size: 13px; color: var(--soluk); margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=date], input[type=time],
input[type=search], input[type=number], select, textarea {
  width: 100%; background: var(--yuzey2); border: 1px solid var(--cizgi);
  border-radius: 11px; padding: 13px 14px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--ana); }
textarea { min-height: 120px; resize: vertical; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ana); border: none; border-radius: 11px;
  padding: 13px 18px; font-weight: 600; cursor: pointer; width: 100%;
}
.btn:active { background: var(--ana-koyu); }
.btn.ince { width: auto; padding: 10px 14px; font-size: 14px; }
.btn.sessiz { background: var(--yuzey2); border: 1px solid var(--cizgi); }
.btn.tehlike { background: var(--kirmizi); }
.hata { background: #3a1a1c; border: 1px solid #6b2b2b; color: #ffb4b0;
        padding: 11px 13px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; }
.basari { background: #10301f; border: 1px solid #1f5a3c; color: #86e0b4;
          padding: 11px 13px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; }

/* ---------- iskelet ---------- */
.ust {
  position: sticky; top: 0; z-index: 30; height: 58px;
  background: rgba(11,18,32,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cizgi);
  display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
}
.marka { display: flex; align-items: center; gap: 10px; }
.logo { width: 32px; height: 32px; border-radius: 9px; background: var(--ana);
        display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.marka-yazi { font-size: 15px; }
.marka-yazi b { font-weight: 700; }
.ust-sag { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.kisi { color: var(--soluk); }
.cikis { color: var(--soluk); border: 1px solid var(--cizgi); padding: 6px 11px; border-radius: 9px; }

.yan { display: none; }
.icerik { padding: 18px 16px 96px; max-width: 1180px; margin: 0 auto; }

.alt {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(11,18,32,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--cizgi);
  display: flex; overflow-x: auto; scrollbar-width: none;
  padding-bottom: env(safe-area-inset-bottom);
}
.alt::-webkit-scrollbar { display: none; }
.alt a {
  flex: 0 0 auto; min-width: 76px; padding: 9px 10px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--soluk); font-size: 10.5px; text-align: center;
}
.alt a.aktif { color: var(--ana); }

@media (min-width: 900px) {
  .yan {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; top: 58px; left: 0; bottom: 0; width: 224px;
    padding: 16px 12px; border-right: 1px solid var(--cizgi); background: var(--zemin);
  }
  .yan a {
    display: flex; align-items: center; gap: 12px; padding: 11px 13px;
    border-radius: 11px; color: var(--soluk); font-size: 14.5px;
  }
  .yan a.aktif { background: var(--yuzey2); color: var(--yazi); }
  .yan a:hover { background: var(--yuzey); }
  .icerik { margin-left: 224px; padding: 26px 28px 40px; }
  .alt { display: none; }
}

/* ---------- sayfa başlığı ---------- */
.sayfa-bas { display: flex; align-items: flex-start; justify-content: space-between;
             gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.sayfa-bas h1 { font-size: 21px; }
.sayfa-bas p { color: var(--soluk); font-size: 13.5px; margin-top: 3px; }

/* ---------- kart ---------- */
.kart { background: var(--yuzey); border: 1px solid var(--cizgi);
        border-radius: var(--r); padding: 18px; margin-bottom: 14px; }
.kart h2 { font-size: 15px; margin-bottom: 12px; }

/* ---------- panel kutuları ---------- */
.kutular { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 720px) { .kutular { grid-template-columns: repeat(4, 1fr); } }
.kutu { background: var(--yuzey); border: 1px solid var(--cizgi);
        border-radius: var(--r); padding: 16px; }
.kutu .sayi { font-size: 26px; font-weight: 700; line-height: 1.1; }
.kutu .etiket { color: var(--soluk); font-size: 12.5px; margin-top: 5px; }
.kutu.iyi .sayi { color: var(--yesil); }
.kutu.uyari .sayi { color: var(--sari); }
.kutu.kotu .sayi { color: var(--kirmizi); }

/* ---------- hızlı erişim ---------- */
.hizli { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .hizli { grid-template-columns: repeat(4, 1fr); } }
.hizli a {
  background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r);
  padding: 18px 14px; display: flex; flex-direction: column; gap: 10px;
  min-height: 104px; justify-content: space-between;
}
.hizli a:active { border-color: var(--ana); }
.hizli .ad { font-weight: 600; font-size: 14.5px; }
.hizli .ac { color: var(--soluk); font-size: 12px; }
.hizli svg { color: var(--ana); }

/* ---------- tablo ---------- */
.tablo-sar { overflow-x: auto; border: 1px solid var(--cizgi); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
th { background: var(--yuzey2); text-align: left; padding: 11px 13px;
     font-weight: 600; font-size: 12.5px; color: var(--soluk); white-space: nowrap; }
td { padding: 11px 13px; border-top: 1px solid var(--cizgi); vertical-align: top; }
tr:hover td { background: rgba(255,255,255,.02); }

/* ---------- rozet ---------- */
.rozet { display: inline-block; font-size: 11.5px; font-weight: 600;
         padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.r-yesil { background: #10301f; color: #6fdcab; }
.r-sari  { background: #33280f; color: #e8bf74; }
.r-kirmizi { background: #3a1a1c; color: #ff9d97; }
.r-mavi  { background: #16244a; color: #91aaf6; }
.r-gri   { background: var(--yuzey2); color: var(--soluk); }

/* ---------- liste ---------- */
.liste { display: flex; flex-direction: column; gap: 10px; }
.satir { background: var(--yuzey); border: 1px solid var(--cizgi);
         border-radius: 12px; padding: 14px; }
.satir .st { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.satir h3 { font-size: 14.5px; }
.satir p { color: var(--soluk); font-size: 13px; margin-top: 5px; white-space: pre-wrap; }
.satir .alt-bilgi { color: var(--soluk); font-size: 11.5px; margin-top: 9px; }

/* ---------- boş durum ---------- */
.bos-durum { text-align: center; padding: 40px 18px; color: var(--soluk); }
.bos-durum p { font-size: 14.5px; }
.bos-durum small { display: block; margin-top: 6px; font-size: 12.5px; opacity: .8; }

/* ---------- yardımcı ---------- */
.satirlar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.soluk { color: var(--soluk); }
.kucuk { font-size: 12.5px; }
.sag { text-align: right; }
.ayrac { height: 1px; background: var(--cizgi); margin: 16px 0; }
