/* Giriş ve panel sayfalarının ortak stilleri (tanıtım sitesinin styles.css dosyasından bağımsızdır) */
:root {
  --blue: #1976bc;
  --blue-dark: #0f4f82;
  --navy: #0b2f4f;
  --lime: #e4ed3c;
  --ink: #12283a;
  --muted: #5a6f80;
  --line: #dde7ef;
  --bg: #f2f7fb;
  --danger: #b3261e;
  --ok: #1b7a3a;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); font-weight: 600; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(25, 118, 188, .45); outline-offset: 2px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn:disabled { opacity: .55; cursor: default; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover:not(:disabled) { background: var(--blue-dark); }
.btn-line { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-line:hover:not(:disabled) { border-color: var(--blue); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f1c9c6; }
.btn-danger:hover:not(:disabled) { border-color: var(--danger); }
.btn-top { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-top:hover { background: rgba(255, 255, 255, .14); }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }

/* ---------- Form ---------- */
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
label small { font-weight: 500; color: var(--muted); }
input, select {
  font: inherit; font-weight: 500; font-size: 16px; width: 100%;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25, 118, 188, .15); }
input[readonly] { background: var(--bg); }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.msg { font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 12px; }
.msg-error { background: #fdecea; color: var(--danger); }
.msg-ok { background: #e3f6e8; color: var(--ok); }
.msg-info { background: #e8f2fb; color: var(--blue-dark); }

/* ---------- Giriş / kurulum / şifre sayfaları ---------- */
body.auth {
  min-height: 100vh; display: grid; place-items: center; padding: 28px 16px;
  background:
    linear-gradient(rgba(255, 255, 255, .06) 2px, transparent 2px) 0 0 / 100% 120px,
    linear-gradient(90deg, rgba(255, 255, 255, .06) 2px, transparent 2px) 0 0 / 120px 100%,
    var(--blue);
}
.auth-card {
  width: 100%; max-width: 440px; background: #fff; border-radius: 22px; padding: 30px 28px;
  box-shadow: 0 24px 60px rgba(11, 47, 79, .35); display: grid; gap: 16px;
}
/* Marka şeridi: logodaki gibi mavi zemin üzerinde beyaz "MAYA PADEL" ve sarı "CARE".
   Sarı, beyaz zeminde okunmadığı için yazı mavi şeridin içinde durur. */
.auth-logo {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 16px; border-radius: 16px; background: var(--blue);
  text-decoration: none; color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .02em;
}
.auth-logo img { width: 48px; height: 48px; }
.auth-logo span span { color: var(--lime); letter-spacing: .14em; }
.auth-card h1 { font-size: 24px; font-weight: 800; line-height: 1.2; }
.auth-card form { display: grid; gap: 14px; }
.auth-hint { font-size: 14px; color: var(--muted); }
.auth-foot { font-size: 13.5px; color: var(--muted); text-align: center; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 999px; padding: 4px; }
.tabs button {
  font: inherit; font-weight: 700; font-size: 15px; border: 0; background: transparent; color: var(--muted);
  padding: 10px; border-radius: 999px; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }

/* ---------- Panel ---------- */
.p-top { background: var(--blue); color: #fff; }
.p-top-in {
  max-width: 1100px; margin: 0 auto; padding: 10px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
}
.p-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .02em; font-size: 16px; white-space: nowrap; }
.p-brand img { width: 40px; height: 40px; }
.p-brand span span { color: var(--lime); letter-spacing: .14em; }
.p-nav { display: flex; gap: 18px; font-size: 14.5px; }
.p-nav a { color: #fff; text-decoration: none; opacity: .85; padding: 6px 0; border-bottom: 2px solid transparent; }
.p-nav a:hover { opacity: 1; }
.p-nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--lime); }
.p-user { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; }
.p-user a { color: #fff; opacity: .85; font-weight: 600; }
.p-user a:hover { opacity: 1; }
.p-user strong { font-weight: 700; }

.p-main { max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px; display: grid; gap: 22px; }
.p-main h1 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; line-height: 1.2; }
.p-lead { color: var(--muted); font-size: 16px; margin-top: 6px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 16px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.card h2 { font-size: 19px; font-weight: 800; }
.card p { color: var(--muted); }
.sub-form { background: var(--bg); border-radius: 14px; padding: 18px; display: grid; gap: 14px; }
.sub-form h3 { font-size: 15px; font-weight: 800; }

.notice { background: #fffbe0; border: 1px solid #eadf8a; border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; }
.notice h3 { font-size: 15px; font-weight: 800; }
.notice p { color: var(--ink); font-size: 14.5px; }
.notice dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.notice dt { color: var(--muted); font-weight: 600; }
.notice dd { font-weight: 700; word-break: break-all; }
.notice code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 16px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th {
  text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap;
}
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td:first-child { min-width: 150px; }
tbody td:nth-child(2) { white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.pasif td { color: var(--muted); }
tr.satir-form td { padding: 4px 0 14px; }
td.islem { text-align: right; white-space: nowrap; }
td.islem .btn { margin: 2px 0 2px 6px; }
td small { display: block; color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); font-size: 15px; }

/* Kulüp logosu ya da (logo yoksa) baş harf rozeti */
.kulup-logo {
  flex: none; display: inline-grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; object-fit: contain;
}
img.kulup-logo { display: block; padding: 3px; }
.kulup-logo-kucuk { width: 40px; height: 40px; }
.kulup-logo-buyuk { width: 76px; height: 76px; border-radius: 16px; }
.bas-harf { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.kulup-logo-buyuk.bas-harf { font-size: 26px; }
.kulup-hucre { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.bag-dugme {
  display: block; background: none; border: 0; padding: 0; margin-top: 2px; cursor: pointer; text-align: left;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: underline;
}
.bag-satir { display: flex; flex-wrap: wrap; gap: 0 14px; }
.kort-liste { display: grid; gap: 8px; }
.kort-kalem {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.kort-kalem .bag-dugme { margin: 0 0 0 auto; }
.kort-kalem.pasif strong { color: var(--muted); }
.referans-satir { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.referans-satir .bag-dugme { margin-top: 0; }
.kimlik { display: flex; align-items: center; gap: 16px; }
.logo-onizleme { display: flex; align-items: center; gap: 14px; }
input[type="file"] { padding: 9px 12px; font-size: 14px; }

.rozet { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.rozet-top { background: var(--lime); color: var(--navy); }
.rozet-admin { background: var(--navy); color: #fff; }
.rozet-staff { background: #e8f2fb; color: var(--blue-dark); }
.rozet-club { background: #eef0d0; color: #4d5200; }
.rozet-ok { background: #e3f6e8; color: var(--ok); }
.rozet-off { background: #eceff2; color: var(--muted); }
.rozet-warn { background: #fff3cd; color: #8a6100; }

/* ---------- Personel paneli: bakım raporları ---------- */
.rapor-alan { width: 100%; max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.ust { display: grid; gap: 4px; }
.ust-satir { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.geri {
  justify-self: start; background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 700; color: var(--blue);
}
.kimlik-yazi { display: grid; gap: 6px; justify-items: start; font-size: 17px; }
/* Kort ve cam ekranlarının başı: geri bağlantısı, başlık, alt yazı ve kayıt durumu boşluksuz tek blok */
.ekran-ust { display: grid; gap: 0; }
.ekran-ust .ust { gap: 0; }
.ekran-ust .p-lead { margin-top: 2px; font-size: 15px; line-height: 1.35; }
.ekran-ust .kayit-durum { min-height: 19px; font-size: 13px; line-height: 19px; }
.cam-kart { gap: 10px; }
.cam-kart .secenek-alani { min-height: 0; }
.cam-kart .secenek-alani:empty { display: none; }

/* Dokunulabilir satırlar: rapor listesi ve rapordaki kortlar */
.satir-liste { display: grid; gap: 10px; }
.satir {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
a.satir:hover { border-color: var(--blue); }
.satir.pasif { color: var(--muted); }
.satir-yazi { flex: 1; min-width: 0; display: grid; gap: 2px; }
.satir-yazi strong { font-size: 16px; font-weight: 700; }
.satir-yazi small { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.card .satir { background: var(--bg); border-color: transparent; }
.card a.satir:hover { border-color: var(--blue); }

/* Yapılan işler */
.is-liste { display: grid; gap: 10px; }
label.is {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer;
  font-size: 16px; font-weight: 600; background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
}
input[type="checkbox"] { flex: none; width: 22px; height: 22px; padding: 0; accent-color: var(--blue); }
textarea {
  font: inherit; font-weight: 500; font-size: 16px; width: 100%; resize: vertical;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25, 118, 188, .15); }
label small.alan-uyari { color: var(--danger); font-weight: 600; }
.kayit-durum { min-height: 21px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.kayit-durum.hata { color: var(--danger); }
.kayit-durum .bag-dugme { display: inline; margin: 0; }

/* Kort haritası ve cam şeması: gri-mavi = henüz işaretlenmedi (camda kesik çizgi), yeşil = sağlam,
   sarı = tespit var, mavi = seçili */
.harita, .sema { display: grid; justify-items: center; }
.kort-harita { display: block; width: 100%; max-width: 760px; height: auto; touch-action: manipulation; }
.kort-harita.dikey { max-width: 400px; }
.cam-sema { display: block; width: 100%; max-width: 320px; height: auto; touch-action: manipulation; }
.kort-zemin { fill: #f4f9fd; stroke: #9db4c6; stroke-width: 1; }
.kort-cizgi { stroke: #c3d3df; stroke-width: 1; }
.kort-file { stroke: var(--navy); stroke-width: 2; }
.kort-tel { stroke: #9db4c6; stroke-width: 1; stroke-dasharray: 3 4; }
.kort-yazi { font-size: 11px; font-weight: 600; fill: var(--muted); }
.kort-yon { font-weight: 800; letter-spacing: .06em; fill: var(--navy); }
.dokunma { fill: transparent; }
.cam, .pleksi, .vida { -webkit-tap-highlight-color: transparent; }
.cam:focus, .pleksi:focus, .vida:focus { outline: none; }
[role="button"].cam, [role="button"].pleksi, [role="button"].vida { cursor: pointer; }
.cam-kutu { fill: #dbe9f5; stroke: #6f9cc2; stroke-width: 1; }
.cam-no { font-size: 11px; font-weight: 700; fill: var(--navy); pointer-events: none; }
.cam.eksik .cam-kutu { stroke-dasharray: 3 2; }
.cam.saglam .cam-kutu { fill: #bfe6c8; stroke: #2e8b4f; }
.cam.saglam .cam-no { fill: #14532d; }
.cam.tespit .cam-kutu { fill: #ffd24a; stroke: #a86f00; }
.cam.tespit .cam-no { fill: #5c3a00; }
.cam:focus-visible .cam-kutu, [role="button"].cam:hover .cam-kutu { stroke: var(--navy); stroke-width: 2; }
.pleksi-kutu { fill: #fff; stroke: #6f9cc2; stroke-width: 1.2; }
.pleksi.saglam .pleksi-kutu { fill: #bfe6c8; stroke: #2e8b4f; }
.pleksi.tespit .pleksi-kutu { fill: #ffd24a; stroke: #a86f00; }
.pleksi.secili .pleksi-kutu { fill: var(--blue); stroke: var(--navy); }
.pleksi:focus-visible .pleksi-kutu, [role="button"].pleksi:hover .pleksi-kutu { stroke: var(--navy); stroke-width: 2; }
.cam-sema-cerceve { fill: #eef6fc; stroke: #6f9cc2; stroke-width: 1.5; }
.vida-nokta { fill: #fff; stroke: #6f9cc2; stroke-width: 1.5; }
.vida.saglam .vida-nokta { fill: #bfe6c8; stroke: #2e8b4f; }
.vida.tespit .vida-nokta { fill: #ffd24a; stroke: #a86f00; }
.vida.secili .vida-nokta { fill: var(--blue); stroke: var(--navy); }
.vida-isaret { fill: none; stroke: #14532d; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.vida.tespit .vida-isaret { stroke: #5c3a00; }
.vida.secili .vida-isaret { stroke: #fff; }
.vida:focus-visible .vida-nokta, [role="button"].vida:hover .vida-nokta { stroke: var(--navy); stroke-width: 2.5; }

.aciklama { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ornek { display: inline-flex; align-items: center; gap: 7px; }
.ornek::before { content: ""; width: 16px; height: 10px; border-radius: 3px; background: #dbe9f5; border: 1px solid #6f9cc2; }
.ornek-pleksi::before { width: 9px; height: 9px; border-radius: 0; background: #fff; transform: rotate(45deg); }
.ornek-bos::before { border-style: dashed; }
.ornek-saglam::before { background: #bfe6c8; border-color: #2e8b4f; }
.ornek-tespit::before { background: #ffd24a; border-color: #a86f00; }
.card p.ilerleme { font-size: 14px; font-weight: 700; text-align: center; color: var(--muted); }
.card p.ilerleme.tamam { color: var(--ok); }

.secenek-alani { display: grid; gap: 8px; justify-items: center; align-content: start; text-align: center; min-height: 78px; }
/* Bir vida ya da pleksi seçiliyken seçenekler ekranın altında sabit durur; haritada kaydırırken kaybolmaz */
.secenek-alani.acik {
  position: sticky; bottom: 0; z-index: 2; background: #fff; padding: 12px 0;
  border-top: 1px solid var(--line); box-shadow: 0 -10px 16px -14px rgba(11, 47, 79, .35);
}
.card p.secenek-baslik { font-size: 16px; font-weight: 800; color: var(--ink); }
.secenekler { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.secenekler .btn { padding: 11px 18px; font-size: 15px; }
/* Kulüp paneli: gönderilmiş rapor (yalnızca okunur) */
a.geri { text-decoration: none; }
.cam.secili .cam-kutu { fill: var(--blue); stroke: var(--navy); }
.cam.secili .cam-no { fill: #fff; }
.is-ozet { list-style: none; display: grid; gap: 8px; }
.is-ozet li { display: grid; grid-template-columns: 20px minmax(0, 140px) minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: 15px; }
.is-ozet li::before { content: "\2013"; color: var(--muted); font-weight: 800; text-align: center; }
.is-ozet li.tamam::before { content: "\2713"; color: var(--ok); }
.is-ozet strong { font-weight: 700; }
.is-ozet span { color: var(--muted); }
.cam-detay { display: grid; gap: 8px; justify-items: center; text-align: center; }
.tespit-alani h3 { font-size: 16px; font-weight: 800; }
.card p.rapor-not { color: var(--ink); background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 15px; }

/* Cam ekranında şemanın üstü: solda önceki cam, ortada haritaya dönüş, sağda sonraki cam */
.cam-gecis { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.cam-gecis > :first-child { justify-self: start; }
.cam-gecis > :last-child { justify-self: end; }
.tespit-alani { display: grid; gap: 10px; }
.tespit-liste { display: grid; }
.tespit-satir { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.tespit-satir:first-child { border-top: 0; }
.tespit-satir span { flex: 1; }
.tespit-satir .bag-dugme { margin: 0; }

@media (max-width: 900px) {
  td.islem { white-space: normal; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 24px 20px; }
  .p-user { margin-left: 0; width: 100%; }
  .card { padding: 18px 16px; }
  /* Telefonda harita, parmakla rahat seçilsin diye kartın ve sayfanın kenar boşluklarına kadar genişler */
  .p-main:has(.rapor-alan) { padding-left: 12px; padding-right: 12px; }
  .harita { margin: 0 -12px; }
  /* Seçenek düğmeleri telefonda tek satıra sığsın */
  .secenekler { gap: 6px; }
  .secenekler .btn { padding: 10px 12px; font-size: 14px; }
  /* Rapor ekranlarında üstte ve parçalar arasında daha az boşluk */
  .p-main:has(.rapor-alan) { padding-top: 12px; }
  .rapor-alan { gap: 12px; }
  .rapor-alan h1 { font-size: 22px; }
  .geri { padding: 2px 0; }
  .cam-kart { padding: 12px 14px; gap: 8px; }
  .cam-gecis .btn { padding: 11px 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
