:root {
  --kirmizi: #e74c3c; --koyu: #1e2a3a; --gri: #f3f5f8; --yesil: #27ae60; --mor: #8e44ad;
  --mavi: #3b82f6; --mavi-koyu: #2563eb;
  --yumusak: #f7fafd; --kenar: #e3e8ef;
  --grad: linear-gradient(135deg, #1e2a3a 0%, #2c3e50 55%, #37475e 100%);
  --golge: 0 10px 30px rgba(30, 42, 58, .12);
  --golge2: 0 2px 8px rgba(30, 42, 58, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Segoe UI Variable", "Segoe UI", Segoe, Arial, sans-serif; background: linear-gradient(180deg, #eef2f7 0%, #f7f9fc 100%); color: #223; min-height: 100vh; }
header {
  background: linear-gradient(135deg, #dcecff 0%, #c5e0ff 60%, #b6d8ff 100%); color: #12365c; display: flex; align-items: center; gap: 22px;
  padding: 12px 24px; flex-wrap: wrap;
  box-shadow: 0 4px 24px rgba(37, 99, 235, .18); position: sticky; top: 0; z-index: 1000;
}
.brand { display: flex; gap: 14px; align-items: center; }
img#logoImg { height: 64px; width: auto; border-radius: 12px; background: #0b1f3a; padding: 3px; box-shadow: 0 2px 10px rgba(30,64,175,.25); object-fit: contain; }
.brand h1 { font-size: 21px; letter-spacing: .2px; color: #1d4ed8; }
.brand .sub { font-size: 12px; opacity: .8; color: #2b5a8f; }
h1 { font-size: 20px; color: #1d4ed8; }
.sub { font-size: 12px; opacity: .75; color: #2b5a8f; }
nav { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav-btn { background: #3b82f6; border: 1px solid #2563eb; color: #fff; padding: 8px 14px; border-radius: 10px; cursor: pointer; transition: all .18s ease; font-size: 13px; box-shadow: 0 2px 6px rgba(37,99,235,.25); }
.nav-btn:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.35); }
.nav-btn.active { background: linear-gradient(135deg, #1638a8, #1d4ed8); border-color: transparent; box-shadow: 0 4px 14px rgba(29,78,216,.4); }
.auth { margin-left: 10px; display: flex; gap: 8px; align-items: center; }
.auth #userName { font-size: 13px; opacity: .95; color: #12365c; }
.auth button, .btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8); border: 0; color: #fff;
  padding: 8px 16px; border-radius: 10px; cursor: pointer; font-size: 14px;
  transition: all .18s ease; box-shadow: 0 3px 10px rgba(37, 99, 235, .3);
}
.auth button:hover, .btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-green { background: linear-gradient(135deg, var(--yesil), #1e9e55); box-shadow: 0 3px 10px rgba(39,174,96,.3); }
.btn.small { padding: 4px 10px; font-size: 12px; background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: none; }
main { padding: 20px; max-width: 1500px; margin: 0 auto; }
.view { min-height: 480px; }

.op-filtre { position: sticky; top: 74px; z-index: 500; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: linear-gradient(135deg, #eaf3ff, #dcecff); border: 1px solid var(--kenar); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(37,99,235,.12); }
.op-filtre select, .op-filtre input[type=date] { padding: 7px 8px; border: 1px solid #c3d6ee; border-radius: 8px; font-size: 12.5px; background: #fff; color: #223; }
body.karanlik .op-filtre { background: #16233a; border-color: #2e4159; }
body.karanlik .op-filtre select, body.karanlik .op-filtre input { background: #111826; color: #dbe4f0; border-color: #33455c; }
.kayit-filtre { display: grid; grid-template-columns: minmax(200px, 2fr) 210px 210px auto; gap: 14px; align-items: end; background: #fff; border: 1.5px solid #b9c9dd; border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 4px 14px rgba(20, 45, 85, .10); }
.kayit-filtre-arama { position: relative; }
.kayit-filtre-arama .kayit-filtre-ikon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 15px; color: #5b7290; pointer-events: none; }
.kayit-filtre-alan { display: flex; flex-direction: column; gap: 6px; }
.kayit-filtre label { font-size: 12px; font-weight: 800; letter-spacing: .4px; color: #1d3a5f; text-transform: uppercase; }
.kayit-filtre label::after { content: ""; display: block; height: 2px; width: 26px; background: #2563eb; border-radius: 2px; margin-top: 3px; }
.kayit-filtre-arama input, .kayit-filtre-alan input[type=date] { height: 42px; width: 100%; box-sizing: border-box; padding: 0 12px 0 36px; border: 1.5px solid #8fa8c8; border-radius: 8px; font-size: 14px; font-weight: 600; color: #1c2f4e; background: #f7faff; box-shadow: inset 0 1px 4px rgba(0,0,0,.05); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.kayit-filtre-alan input[type=date] { padding: 0 12px; }
.kayit-filtre-arama input:focus, .kayit-filtre-alan input[type=date]:focus { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.kayit-filtre-temiz { height: 42px; border-radius: 8px; padding: 0 18px; font-weight: 800; font-size: 13px; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border: 0; box-shadow: 0 3px 10px rgba(29,78,216,.3); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.kayit-filtre-temiz:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(29,78,216,.4); }
@media (max-width: 900px) {
  .kayit-filtre { grid-template-columns: 1fr 1fr; }
  .kayit-filtre-arama { grid-column: 1 / -1; }
}
body.karanlik .kayit-filtre { background: #111a2a; border-color: #3a4f6d; }
body.karanlik .kayit-filtre label { color: #b6cbea; }
body.karanlik .kayit-filtre-arama input, body.karanlik .kayit-filtre-alan input[type=date] { background: #0d1524; color: #e2ebf7; border-color: #4a6288; }
.menu-gibi-kutu { background: #dcecff; border-radius: 14px; padding: 10px; max-width: 100%; width: 100%; box-shadow: 0 6px 18px rgba(37,99,235,.12); }

/* Sayfalama çubuğu: sayfanın ALTINDA SABİT görünür (kayıt az olsa bile) */
.sayfa-bar { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 12px; flex-wrap: wrap; font-size: 13px; padding: 8px 12px; background: #f4f6f9; border-radius: 12px; }
.sayfa-bar-sabit { position: sticky; bottom: 10px; z-index: 900; background: rgba(255,255,255,.97); border: 1px solid var(--kenar); box-shadow: 0 -4px 18px rgba(0,0,0,.14); }
body.karanlik .sayfa-bar-sabit { background: rgba(17,24,38,.97); border-color: #33455c; }
.mg-baslik { background: linear-gradient(135deg, #2f6fed, #1d4ed8); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .4px; padding: 11px 14px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; box-shadow: 0 3px 10px rgba(37,99,235,.25); }
.mg-baslik .btn { margin: 0; }
.mg-ic { background: #fff; border-radius: 10px; padding: 12px; margin-top: 8px; }
#view-takiplerim .acc { width: 100%; margin-bottom: 8px; }
#view-takiplerim .acc-head { font-size: 13px; padding: 10px 12px; }
/* BİLDİRİM POP (harita işaret penceresi — sol menü tarzı) */
.leaflet-popup-content-wrapper.bildirim-pop-kapsayici { padding: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(20,45,85,.25); text-align: left; }
.bildirim-pop { font-size: 13px; max-width: 300px; min-width: 240px; }
.bildirim-pop-baslik { background: linear-gradient(135deg, #2f6fed, #1d4ed8); color: #fff; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.bildirim-pop-baslik-sol { display: flex; align-items: center; gap: 8px; }
.bildirim-pop-govde { background: #fff; border: 1px solid #dbe7f6; border-top: none; padding: 10px 12px; }
body.karanlik .bildirim-pop-govde { background: #111a2a; border-color: #3a4f6d; }
body.karanlik .bildirim-pop-govde p { color: #cfd8e8; }
body.karanlik .bildirim-pop-govde div[style*="color:#445"] { color: #aab8cc !important; }
/* HARİTA */
#view-map { position: relative; height: 72vh; border-radius: 16px; overflow: hidden; box-shadow: var(--golge); border: 1px solid rgba(255,255,255,.4); }
#map { position: absolute; inset: 0; }
#sidepanel { position: absolute; right: 12px; top: 12px; width: 340px; max-height: calc(100% - 40px); overflow: auto; background: rgba(255,255,255,.97); backdrop-filter: blur(6px); border-radius: 14px; box-shadow: var(--golge); z-index: 500; border: 1px solid var(--kenar); transition: transform .25s ease, opacity .25s ease; }
#sidepanel.kapali { transform: translateX(calc(100% + 40px)); opacity: 0; pointer-events: none; }
.panel-head { padding: 14px; border-bottom: 1px solid var(--kenar); }
.panel-ust-satir { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-ust-satir h3 { margin: 0; font-size: 15px; color: var(--koyu); }
#btnPanelGizle { position: absolute; right: 352px; top: 50%; transform: translateY(-50%); z-index: 550; background: #2563eb; color: #fff; border: 1px solid #1d4ed8; border-radius: 8px 0 0 8px; cursor: pointer; font-size: 15px; padding: 10px 7px; box-shadow: -2px 0 10px rgba(37,99,235,.35); transition: all .15s ease; }
#btnPanelGizle:hover { background: #1d4ed8; }
/* Bildirimler paneli tutamacı (sol menü #btnMenu deseni — en sağda dikey alan) */
#bildirimKulp { position: absolute; right: 352px; top: 50%; transform: translateY(-50%); z-index: 550; height: 138px; width: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; margin: 0; cursor: pointer; background: linear-gradient(135deg, #2f6fed, #1d4ed8); color: #fff; border: 1px solid #1d4ed8; border-left: none; border-radius: 0 12px 12px 0; box-shadow: 3px 0 12px rgba(37,99,235,.35); transition: right .25s ease, border-radius .25s ease, border-color .25s ease, transform .25s ease, width .25s ease; }
#bildirimKulp.kapali { right: 12px; width: 46px; border-left: 1px solid #1d4ed8; border-right: none; border-radius: 12px 0 0 12px; box-shadow: -3px 0 12px rgba(37,99,235,.35); }
#bildirimKulp:hover { background: #1d4ed8; }
.bk-ok { display: flex; align-items: center; justify-content: center; width: 22px; height: 28px; font-size: 13px; border-top: 1px solid rgba(255,255,255,.35); }
.bk-yazi { flex: 1; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; font-weight: 700; letter-spacing: 2px; padding-bottom: 10px; }
#bildirimKulp:not(.kapali) .bk-yazi { display: none; }
body.karanlik #bildirimKulp { box-shadow: none; }
.panel-head h3 { margin-bottom: 10px; font-size: 15px; color: var(--koyu); }
.filters { display: flex; flex-direction: column; gap: 6px; }
.filters select, .filters input[type="text"], .filters input:not([type]), .asec .filters input, .asec .filters select, .modal-box select { padding: 8px; border: 1px solid #cdd6e2; border-radius: 8px; background: #fff; font-size: 13px; transition: border-color .15s ease, box-shadow .15s ease; }
.filters select:focus, .filters input:focus, .asec .filters input:focus, .asec .filters select:focus, .modal-box select:focus, .modal-box input:focus, .modal-box textarea:focus { outline: none; border-color: var(--mavi); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.chk { font-size: 12px; display: flex; gap: 6px; align-items: center; }
#panelBody { padding: 14px; font-size: 13px; }
.hint { color: #667; font-size: 13px; line-height: 1.5; }
#btnKonumum { position: absolute; right: 12px; top: 60px; z-index: 500; background: #fff; border: 1px solid var(--kenar); border-radius: 10px; padding: 8px 12px; cursor: pointer; box-shadow: var(--golge2); transition: all .15s ease; }
#btnKonumum:hover { background: #f0f6ff; transform: translateY(-1px); }
#btnGorunum { position: absolute; right: 12px; top: 14px; z-index: 500; background: #fff; border: 1px solid var(--kenar); border-radius: 10px; padding: 8px 12px; cursor: pointer; box-shadow: var(--golge2); transition: all .15s ease; font-size: 13px; }
#btnGorunum:hover { background: #f0f6ff; transform: translateY(-1px); }
#btnGorunum.aktif { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(29,78,216,.4); }
#btnCad { position: absolute; right: 12px; top: 106px; z-index: 500; background: #fff; border: 1px solid var(--kenar); border-radius: 10px; padding: 8px 12px; cursor: pointer; box-shadow: var(--golge2); transition: all .15s ease; font-size: 13px; }
#btnCad:hover { background: #f0f6ff; transform: translateY(-1px); }
#btnCad.aktif { background: linear-gradient(135deg, #7c3aed, #5b21b6); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(124,58,237,.4); }
body.karanlik #btnCad { background: #1e2a3a; color: #dbe4f0; border-color: #33455c; }
#btnPanelGoster { position: absolute; right: 12px; top: 54px; z-index: 500; background: #fff; border: 1px solid var(--kenar); border-radius: 10px; padding: 8px 12px; cursor: pointer; box-shadow: var(--golge2); transition: all .15s ease; font-size: 13px; }
#btnPanelGoster:hover { background: #f0f6ff; transform: translateY(-1px); }
#btnPanelGoster.aktif { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(29,78,216,.4); }
#btnAktifler { position: absolute; right: 12px; top: 94px; z-index: 500; background: linear-gradient(135deg, #0e7490, #155e75); color: #fff; border: 0; border-radius: 10px; padding: 8px 12px; cursor: pointer; box-shadow: var(--golge2); transition: all .15s ease; font-size: 13px; }
#btnAktifler:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(14,116,144,.4); }
#btnAktifler:disabled { opacity: .6; cursor: wait; transform: none; }
.poi-item { padding: 9px 10px; border-left: 4px solid #ccc; margin-bottom: 8px; background: #fafbfc; border-radius: 8px; cursor: pointer; transition: all .15s ease; }
.poi-item:hover { background: #eef4fb; border-left-color: var(--mavi); transform: translateX(2px); }

/* KURUMLAR */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.list { max-height: 560px; overflow: auto; padding-right: 4px; }
.list::-webkit-scrollbar { width: 8px; }
.list::-webkit-scrollbar-thumb { background: #c8d2de; border-radius: 8px; }
.panel { background: #fff; border-radius: 14px; padding: 18px; box-shadow: var(--golge2); border: 1px solid rgba(255,255,255,.6); }
.panel-inner { background: #fff; border-radius: 12px; padding: 14px; }
.panel h3 { color: var(--koyu); }
.panel h3, .panel h4 { margin-bottom: 12px; }
.detay-bos { color: #778; font-size: 14px; }
.stars { color: #f5a623; }

/* TAKİP */
.report-card { border: 1px solid var(--kenar); border-radius: 12px; padding: 13px; margin-bottom: 10px; background: #fafcff; transition: box-shadow .15s ease; }
.report-card:hover { box-shadow: var(--golge2); }
.report-card .meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #556; margin: 6px 0; }
.op-kutular{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}
.op-kutu{display:inline-flex;align-items:center;gap:6px;border:1px solid #ccd;border-radius:20px;padding:6px 12px;background:#fff;font-size:13px;cursor:pointer;user-select:none}
.op-kutu.secilmis{background:#2c7be5;color:#fff;border-color:#2c7be5}
.op-grup-modal-list{display:flex;flex-direction:column;gap:6px;max-height:320px;overflow-y:auto}
.op-grup-satir{display:flex;align-items:center;gap:10px;border:1px solid #dfe6;border-radius:10px;padding:9px 12px;cursor:pointer;font-size:14px;user-select:none;background:#fff}
.op-grup-satir:hover{background:#f4f8ff}
.op-grup-satir.secilmis{border-color:#2c7be5;background:#eaf2ff;color:#1f5bb5}
.op-opSatir{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid #dfe6;border-radius:10px;padding:10px 12px;margin-bottom:6px;cursor:pointer;background:#fff}
.op-opSatir:hover{border-color:#9bb8e8}
.op-opSatir.secili{background:#eaf2ff;border-color:#2c7be5}
.op-rowInfo{flex:1;min-width:180px}
.op-rowBtn{display:flex;gap:6px;flex-wrap:wrap}
.islem-blok{border:1px solid #d5dbdb;border-radius:8px;padding:8px 10px;margin-top:8px;background:#f8f9fa;font-size:13px}
.islem-blok>b{display:block;margin-bottom:4px;color:#2c3e50}
.islem-satir{padding:3px 0;border-bottom:1px dashed #d5dbdb;font-size:12px}
.islem-satir:last-child{border-bottom:none}
.islem-cozum{border-left:4px solid #27ae60;background:#eafaf1}
.islem-red{border-left:4px solid #c0392b;background:#fdf0ef}
.badge { padding: 3px 12px; border-radius: 30px; font-size: 11px; font-weight: 600; color: #fff; letter-spacing: .3px; }
.b-new { background: linear-gradient(135deg, #e67e22, #d35400); } .b-pending { background: linear-gradient(135deg, #0ea5e9, #0284c7); } .b-in_review { background: linear-gradient(135deg, #3498db, #2980b9); } .b-in_progress { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.b-resolved { background: linear-gradient(135deg, #2ecc71, #27ae60); } .b-overdue { background: linear-gradient(135deg, #d63031, #c0392b); } .b-rejected { background: linear-gradient(135deg, #95a5a6, #7f8c8d); }
.b-high { background: linear-gradient(135deg, #d63031, #c0392b); } .b-normal { background: #95a5a6; }
.timeline { border-left: 2px solid #d8e0ea; margin-left: 6px; padding-left: 14px; font-size: 12px; color: #445; }
.timeline div { margin: 4px 0; position: relative; }
.timeline div::before { content: ""; position: absolute; left: -19px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--yesil); }
.photo { max-width: 180px; border-radius: 10px; margin-top: 6px; display: block; }

/* ACİL */
.acil-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.acil-card { background: linear-gradient(180deg, #fdf2f2, #fbeaea); border: 1px solid #f0c9c9; border-radius: 12px; padding: 14px; text-align: center; transition: all .15s ease; }
.acil-card:hover { transform: translateY(-2px); box-shadow: var(--golge2); }
.acil-card b { font-size: 26px; color: var(--kirmizi); display: block; }
.acil-card span { font-size: 12px; color: #955; }

/* İSTATİSTİK */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: linear-gradient(160deg, #fbfdff, #f4f8fc); border-radius: 12px; padding: 12px; text-align: center; border: 1px solid var(--kenar); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--mavi); }
.stat b { font-size: 24px; display: block; color: var(--koyu); }
.stat span { font-size: 11px; color: #667; }

/* MODAL */
.modal { position: fixed; inset: 0; background: rgba(20, 26, 38, .5); backdrop-filter: blur(3px); z-index: 2000; display: flex; align-items: center; justify-content: center; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box { background: #fff; border-radius: 16px; padding: 24px; width: 440px; max-width: 94vw; position: relative; max-height: 90vh; overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: slideUp .22s ease; }
@keyframes slideUp { from { transform: translateY(14px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; right: 12px; top: 8px; font-size: 22px; line-height: 1; border: 0; background: none; cursor: pointer; color: #556; transition: transform .15s ease; }
.modal-close:hover { transform: rotate(90deg); color: var(--kirmizi); }
.modal-box label { display: block; font-size: 12px; font-weight: 600; margin: 12px 0 4px; color: #445; }
.modal-box input, .modal-box select, .modal-box textarea { width: 100%; padding: 9px; border: 1px solid #cdd6e2; border-radius: 10px; margin-bottom: 4px; font-size: 13px; }
.modal-box textarea:focus, .modal-box input:focus { outline: none; border-color: var(--mavi); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
footer { text-align: center; padding: 20px; color: #889; font-size: 12px; }
#heatCanv { width: 100%; height: 340px; }
#topNbh { margin-top: 10px; font-size: 12px; }
#topNbh div { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed #eee; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* ===== SOL MENÜ (gizlenebilir, Mor Haritam tarzı akordiyon) ===== */
.hamburger { background: #2563eb; border: 1px solid #1d4ed8; border-radius: 10px; font-size: 18px; padding: 4px 10px; cursor: pointer; color: #fff; transition: all .15s ease; box-shadow: 0 2px 6px rgba(37,99,235,.3); }
.hamburger:hover { background: #1d4ed8; }
.menu-sabit-ok { position: fixed; top: 45%; left: 296px; z-index: 2700; width: 28px; height: 58px; border: 0; border-radius: 0 12px 12px 0; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 3px 0 12px rgba(0,0,0,.25); transition: left .26s cubic-bezier(.22,.68,0,1), background .15s; display: flex; align-items: center; justify-content: center; }
.menu-sabit-ok:hover { background: linear-gradient(135deg, #1d4ed8, #1638a8); }
body.menu-sabit #okSabit { left: 300px; }
#okSabit:not(.kapali) { /* açıkken ok '«' solda kalsın */ }
/* Ok düğmesi (sabit menü): içerik sağa KAYDIRILMADAN menü alanı kadar kenar payı bırakılır
   (transform ile ötelenince sağdaki içerik ekran dışına taşıyordu — kaldırıldı) */
body { overflow-x: hidden; }
header, main { transition: margin .26s cubic-bezier(.22,.68,0,1); will-change: margin; }
body.menu-sabit header { margin-left: 300px; }
body.menu-sabit main { margin-left: 300px; margin-right: 0; max-width: calc(100% - 300px); }
body.menu-acik:not(.menu-sabit) #sideOverlay { display: block; }
#sideMenu { position: fixed; left: 0; top: 0; bottom: 0; width: 300px; background: #dcecff; box-shadow: 2px 0 18px rgba(0,0,0,.16); z-index: 2500; transform: translateX(-102%); transition: transform .26s cubic-bezier(.22,.68,0,1); display: flex; flex-direction: column; overflow: hidden; }
body.menu-acik #sideMenu, body.menu-sabit #sideMenu { transform: translateX(0); }
body.menu-sabit #sideOverlay { display: none !important; }
.hamburger.on { background: #2563eb; color: #fff; border-color: #2563eb; }
.side-logo-blok { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 14px 14px; background: linear-gradient(135deg, #2563eb, #1638a8); color: #fff; position: relative; flex-shrink: 0; }
.menu-kapat { position: absolute; right: 10px; top: 6px; border: 0; background: none; font-size: 22px; cursor: pointer; color: #fff; opacity: .9; }
.menu-kapat:hover { opacity: 1; }
.side-logo-blok .menu-logo { height: 88px; width: 88px; border-radius: 16px; background: #0b1f3a; padding: 4px; object-fit: contain; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.menu-kurum { font-size: 16px; font-weight: 700; letter-spacing: .3px; }
.side-acc { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.side-acc::-webkit-scrollbar { width: 10px; }
.side-acc::-webkit-scrollbar-track { background: rgba(37,99,235,.12); border-radius: 8px; }
.side-acc::-webkit-scrollbar-thumb { background: rgba(37,99,235,.5); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.side-acc::-webkit-scrollbar-thumb:hover { background: rgba(37,99,235,.7); background-clip: padding-box; }
.side-acc .acc { width: 100%; }
.acc-head { list-style: none; display: flex; justify-content: space-between; align-items: center; background: #2563eb; background: linear-gradient(135deg, #2f6fed, #1d4ed8); color: #fff; font-size: 13px; font-weight: 700; padding: 11px 14px; border-radius: 6px; cursor: pointer; letter-spacing: .4px; user-select: none; transition: all .2s ease; box-shadow: 0 3px 10px rgba(37,99,235,.25); }
.acc-head::after { content: "▾"; font-size: 12px; transition: transform .18s ease; }
details.acc[open] .acc-head::after { transform: rotate(180deg); }
.acc-head:hover { background: #1d4ed8; background: linear-gradient(135deg, #1d4ed8, #1638a8); transform: scale(1.02); box-shadow: 0 10px 22px rgba(29,78,216,.3); }
.acc-body { padding: 6px 2px; display: flex; flex-direction: column; }
.acc-row { padding: 11px 14px; color: #000; font-size: 13px; cursor: pointer; background: #fff; border: 0; border-bottom: 1px solid #f0f0f0; text-align: left; transition: all .2s ease; font-family: inherit; }
.acc-row:hover { background: #f5f5f5; padding-left: 22px; color: #000; }
.acc-sub { margin: 4px 0 4px 16px; padding-left: 10px; border-left: 2px solid #dbe6ff; display: flex; flex-direction: column; gap: 2px; }
.acc-sub.kapali { display: none; }
.acc-sub-label { margin: 2px 2px 2px 12px; padding: 6px 8px; font-size: 11px; font-weight: 700; color: #000; text-transform: uppercase; letter-spacing: .5px; cursor: pointer; background: none; border: 0; text-align: left; display: flex; align-items: center; justify-content: space-between; width: calc(100% - 12px); transition: all .15s ease; font-family: inherit; }
.acc-sub-label:hover { color: #000; background: #cfe6ff; border-radius: 6px; }
.acc-sub-label::after { content: "▸"; font-size: 11px; transition: transform .18s ease; }
.acc-sub-label::after { transform: rotate(90deg); }
.acc-sub-label.kapali::after { transform: none; }
.acc-sub-row { display: flex; align-items: center; gap: 7px; padding: 7px 10px; color: #000; font-size: 12px; cursor: pointer; background: #f4f8ff; border: 0; border-radius: 6px; text-align: left; transition: all .15s ease; font-family: inherit; }
.acc-sub-row::before { content: "✳"; font-size: 11px; color: #5b7ea6; }
.acc-sub-row:hover { background: #e4efff; padding-left: 13px; color: #000; }
.acc-sub-row.on { background: #2563eb; color: #fff; font-weight: 700; box-shadow: 0 3px 8px rgba(37,99,235,.35); }
.acc-sub-row.on::before { color: #fff; }
.acc-risk { background: #ff8c00; color: #fff; font-size: 13px; font-weight: 700; padding: 12px 14px; border-radius: 6px; cursor: pointer; border: 0; text-align: left; letter-spacing: .4px; transition: all .2s ease; box-shadow: 0 4px 12px rgba(255,140,0,.25); }
.acc-risk:hover { background: #ffa31a; transform: scale(1.02); box-shadow: 0 10px 22px rgba(255,140,0,.35); }
.side-foot { padding: 10px 14px; font-size: 11px; color: #000; text-align: center; border-top: 1px solid var(--kenar); line-height: 1.5; flex-shrink: 0; background: #dcecff; }

/* ---- KADES (sol menü altı) ---- */
#kadesAlani { flex-shrink: 0; padding: 12px 14px 8px; display: flex; justify-content: center; border-top: 1px solid var(--kenar); background: #dcecff; }
#btnKades { display: flex; align-items: center; justify-content: center; width: 152px; height: 152px; background: #fff; border: 2px solid #c8102e; border-radius: 18px; padding: 10px; cursor: pointer; font-family: inherit; transition: all .18s; box-sizing: border-box; }
#btnKades:hover { background: #fff2f4; transform: scale(1.04); }
#btnKades img { width: 100%; height: 100%; object-fit: contain; display: block; }
body.karanlik #kadesAlani { background: #101624; border-top-color: #22304a; }
body.karanlik #btnKades { background: #1b2432; border-color: #e0566e; }
body.karanlik #btnKades:hover { background: #2a1a20; }
.side-div { border-top: 1px solid var(--kenar); margin: 12px 0; }
.side-b { display: block; font-size: 11px; color: #667; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.men-item { display: block; width: 100%; text-align: left; background: #f4f7fb; border: 0; padding: 10px 10px; border-radius: 10px; margin-bottom: 6px; font-size: 13px; cursor: pointer; transition: all .15s ease; color: #000; }
.men-item:hover { background: #e8eef7; padding-left: 14px; }
#sideOverlay { position: fixed; inset: 0; background: rgba(15, 20, 30, .4); z-index: 2400; }
.page-content { white-space: pre-line; font-size: 13px; line-height: 1.8; color: #334; margin-top: 8px; }
.modal-box.wide { width: 640px; }

/* ===== YÖNETİM: sol raylı panel ===== */
#view-yonetim { height: calc(100vh - 100px); }
#adminWrap { display: flex; align-items: stretch; height: 100%; }
#adminRail { width: 220px; min-width: 220px; background: linear-gradient(180deg, #dcecff, #c5e1ff); border-radius: 14px; padding: 10px 8px 10px; display: flex; flex-direction: column; transition: width .25s ease; overflow: hidden; box-shadow: 0 6px 18px rgba(37,99,235,.15); }
.rail-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 6px; padding-right: 6px; }
.rail-scroll > * { min-width: 0; }
.rail-scroll::-webkit-scrollbar { width: 10px; }
.rail-scroll::-webkit-scrollbar-track { background: rgba(37,99,235,.15); border-radius: 8px; }
.rail-scroll::-webkit-scrollbar-thumb { background: rgba(37,99,235,.55); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.rail-scroll::-webkit-scrollbar-thumb:hover { background: rgba(37,99,235,.75); background-clip: padding-box; }
.rail-head { display: flex; justify-content: center; align-items: center; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; font-weight: 700; padding: 10px 12px; font-size: 15px; border-radius: 10px; margin-bottom: 8px; flex-shrink: 0; box-shadow: 0 3px 10px rgba(37,99,235,.25); letter-spacing: .4px; text-align: center; }
.rail-head-txt { font-size: 13px; line-height: 1.35; font-weight: 800; letter-spacing: .3px; }
.rail-head button { background: none; border: 0; color: #fff; font-size: 16px; cursor: pointer; opacity: .9; transition: opacity .15s; }
.rail-head button:hover { opacity: 1; }
body.karanlik .rail-head { background: linear-gradient(135deg, #1d4ed8, #1638a8); color: #fff; }
body.karanlik .rail-head button { color: #fff; }
.rail-btn { text-align: left; background: none; border: 0; color: #000; padding: 10px 10px; border-radius: 10px; font-size: 13px; cursor: pointer; white-space: nowrap; transition: all .15s ease; flex-shrink: 0; width: 100%; max-width: 100%; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; }
.rail-sub { padding-left: 24px; font-size: 12.5px; }
.rail-btn:hover { background: #cfe6ff; color: #000; }
.rail-btn.active { background: #b9d9ff; color: #0b2f63; font-weight: 600; box-shadow: none; border-left: 3px solid #2563eb; }
body.karanlik .rail-btn.active { background: #23406b; color: #eaf3ff; box-shadow: none; border-left: 3px solid #62a5ff; }
.pasifBtn { background: #9aa7b8 !important; color: #fff !important; }

/* ---- Hizmet kategorisi seçim kartları (modern) ---- */
#hizmetKatListe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: 54vh; overflow: auto; padding: 2px; }
.hizmet-kat-kart { display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border: 1.5px solid var(--kenar); border-radius: 14px; padding: 12px 14px; cursor: pointer; font-family: inherit; transition: all .16s ease; box-shadow: 0 2px 8px rgba(15,42,74,.05); }
.hizmet-kat-kart:hover { border-color: #2563eb; background: #f0f6ff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(29,78,216,.14); }
.hizmet-kat-ikon { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; background: linear-gradient(135deg, #e8f1ff, #d7e9ff); border-radius: 12px; }
.hizmet-kat-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hizmet-kat-metin b { font-size: 13.5px; color: #12365c; line-height: 1.3; }
.hizmet-kat-metin small { font-size: 11px; color: #7a8aa5; }
.hizmet-kat-ok { font-size: 16px; color: #2563eb; font-weight: 800; opacity: 0; transform: translateX(-4px); transition: all .16s ease; }
.hizmet-kat-kart:hover .hizmet-kat-ok { opacity: 1; transform: translateX(0); }
body.karanlik .hizmet-kat-kart { background: #1b2432; border-color: #2e4159; }
body.karanlik .hizmet-kat-kart:hover { border-color: #62a5ff; background: #22304a; }
body.karanlik .hizmet-kat-metin b { color: #eaf3ff; }
body.karanlik .hizmet-kat-metin small { color: #9db0d6; }
@media (max-width: 520px) { #hizmetKatListe { grid-template-columns: 1fr; } }
.menu-grup { border: 1px solid var(--kenar); border-radius: 12px; margin-bottom: 10px; background: #fbfdff; overflow: hidden; }
.menu-grup-baslik { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: #eaf2fc; border-bottom: 1px solid var(--kenar); }
.menu-grup-baslik b { font-size: 13.5px; color: #0b2f63; }
.menu-grup-altlar .list-row { border-bottom: 1px solid #f0f4f9; }
body.karanlik .menu-grup { background: #151e2c; border-color: #2e4159; }
body.karanlik .menu-grup-baslik { background: #1b2740; border-color: #2e4159; }
body.karanlik .menu-grup-baslik b { color: #dbe4f0; }
.rail-acc-head { cursor: pointer; background: rgba(255,255,255,.55); font-weight: 700; }
.rail-alt-blok { flex-shrink: 0; margin-top: 8px; border-top: 1px solid rgba(37,99,235,.3); padding: 10px 8px 6px; font-size: 11px; color: #000; text-align: center; background: linear-gradient(180deg, #c5e1ff, #b8d9ff); border-radius: 0 0 12px 12px; }
.rail-alt-blok b, .rail-alt-blok div { color: inherit; }
body.karanlik .rail-alt-blok { border-top-color: rgba(255,255,255,.15); color: #dbe6f5; background: linear-gradient(180deg, #16233a, #101624); }
#adminRail .acc { width: 100%; }
#adminRail .acc-head { font-size: 12px; padding: 9px 12px; letter-spacing: .6px; }
#adminRail .acc-body { padding: 4px 0 6px; }
body.karanlik #adminRail .acc-head { background: linear-gradient(135deg, #2f6fed, #1d4ed8); color: #fff; }
#adminBody { flex: 1; padding-left: 18px; min-width: 0; overflow-y: auto; height: 100%; scrollbar-color: #9db4d0 #eef2f7; scrollbar-width: thin; }
#adminBody::-webkit-scrollbar { width: 10px; }
#adminBody::-webkit-scrollbar-track { background: #eef2f7; border-radius: 8px; }
#adminBody::-webkit-scrollbar-thumb { background: #9db4d0; border-radius: 8px; }
#adminBody::-webkit-scrollbar-thumb:hover { background: #7d97b8; }
#view-yonetim.kapali #adminRail { width: 0; padding: 12px 0; }
.rail-open { background: linear-gradient(135deg, var(--yesil), #1b9d5c); color: #fff; border: 0; border-radius: 10px; padding: 9px 14px; font-size: 13px; cursor: pointer; margin-bottom: 12px; box-shadow: 0 4px 12px rgba(39,174,96,.3); }
.asec { display: none; }
.asec.active { display: block; background: #fff; border: 1px solid var(--kenar); border-radius: 14px; padding: 18px; box-shadow: var(--golge2); animation: slideUp .2s ease; }
.asec .panel { border: 0; box-shadow: none; padding: 0; }
.asec .panel-baslik { margin-bottom: 14px; }
.asec .panel-baslik h3 { margin: 0; color: #223; }
.asec .ayar-blok { border: 1px solid var(--kenar); border-radius: 12px; padding: 16px; background: #fff; box-shadow: var(--golge2); margin-bottom: 14px; }
.asec .ayar-blok h4 { margin: 0 0 6px; color: #223; font-size: 15px; }
.asec .filters { flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.asec .form-block { border: 1px dashed #c9d4e0; background: #f7fafd; border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.asec .list-block h4 { margin-bottom: 8px; color: #334; }
.asec .filters input, .asec .filters select { padding: 8px; border: 1px solid #cdd6e2; border-radius: 10px; font-size: 13px; }
.list-item-admin { background: #fff; border: 1px solid var(--kenar); border-radius: 10px; padding: 10px; margin-bottom: 8px; font-size: 13px; }
.asec .hint { font-size: 12px; color: #778; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--kenar); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; transition: box-shadow .15s ease; }
.list-row:hover { box-shadow: var(--golge2); }
.list-row .row-info { flex: 1; min-width: 0; font-size: 13px; }
.list-row .row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.list-row .row-actions .btn { white-space: nowrap; }
.veri-ust { border: 1px dashed #c9d4e0; background: #f7fafd; border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.veri-ust h4 { margin-bottom: 10px; color: #334; }
/* ===== SLOGAN BLOK ===== */
.slogan-blok {
  margin: 18px auto 14px; max-width: 900px; text-align: center;
  background: linear-gradient(135deg, #dcecff, #c5e1ff); color: #000;
  padding: 14px 22px; border-radius: 30px;
  box-shadow: var(--golge2);
}
.slogan-blok .slogan-text {
  font-size: 13px; line-height: 1.6; margin: 0; opacity: .95; color: #000; font-weight: 600;
}

#toast { position: fixed; right: 14px; bottom: 14px; z-index: 3000; display: flex; flex-direction: column; gap: 6px; max-width: 320px; }
.toast-msg { background: linear-gradient(135deg, #2ecc71, #27ae60); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.25); animation: slideUp .2s ease; }
.toast-msg.err { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.toast-msg.info { background: linear-gradient(135deg, #34495e, #2c3e50); }

/* ---------- OPERATÖR / YÖNETİCİ BİLDİRİM BALONLARI (sağ alt köşe) ---------- */
#balonlar { position: fixed; right: 14px; bottom: 64px; z-index: 3001; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.balon {
  background: linear-gradient(135deg, #34495e, #2c3e50);
  color: #fff; border-radius: 12px; padding: 10px 10px 10px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.38); font-size: 13px; cursor: pointer;
  border-left: 4px solid #27ae60; animation: slideUp .25s ease;
  display: flex; gap: 10px; align-items: flex-start; max-width: 360px;
}
.balon-baslik { font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.balon-meta { font-size: 11px; opacity: .85; line-height: 1.5; word-wrap: break-word; }
.balon-kapat { margin-left: auto; background: rgba(255,255,255,.18); border: none; color: #fff; border-radius: 50%; width: 22px; height: 22px; font-size: 13px; line-height: 1; cursor: pointer; flex-shrink: 0; }
.balon.uyari {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  border-left-color: #ffd21f;
  animation: slideUp .25s ease, titreme .45s linear 4;
  box-shadow: 0 0 22px rgba(231, 76, 60, .55);
}
.balon.uyari .balon-baslik { color: #ffe27a; }
.balon.uyari .balon-rozet { display: inline-block; background: #ffd21f; color: #7a1f1a; font-size: 10px; font-weight: 800; border-radius: 10px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
@keyframes titreme { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
/* ---------- Yönetim rayı: alt menü (Kurum & Nokta Girişi) ---------- */
.rail-acc { width: 100%; min-width: 0; }
.rail-acc-body { display: none; width: 100%; min-width: 0; }
.rail-acc.acik .rail-acc-body { display: block; }
.rail-sub { padding-left: 26px !important; font-size: 12px !important; }

/* ---------- Raporlama ---------- */
.rapor-tablo { border-collapse: collapse; width: 100%; }
.rapor-tablo td, .rapor-tablo th { border: 1px solid #ddd; padding: 5px 9px; font-size: 13px; }
.rapor-tablo th { background: #f0f2f5; text-align: left; }

/* ---------- Modal onay kutuları: kutu solda, metin hemen yanında ---------- */
.modal-box input[type="checkbox"], .modal-box input[type="radio"] { width: auto; height: 16px; flex-shrink: 0; padding: 0; }
.modal-box label.chk { display: flex; align-items: center; gap: 6px; margin: 6px 0; font-weight: 500; }



/* ---------- Estetik giriş paneli ---------- */
.login-kutu { width: 380px; padding: 0; overflow: hidden; border-radius: 18px; }
.login-baslik { background: linear-gradient(135deg, #1d4ed8, #2c7be5); color: #fff; text-align: center; padding: 28px 20px 22px; }
.login-baslik h3 { margin: 10px 0 4px; font-size: 19px; font-weight: 800; }
.login-baslik p { margin: 0; font-size: 12px; opacity: .85; }
.login-logo { width: 92px; height: 92px; margin: 0 auto; border-radius: 18px; background: #0b1f3a; object-fit: contain; padding: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.login-ic { padding: 20px 24px 26px; }
.login-alan { margin-bottom: 12px; }
.login-alan label { display: block; font-size: 12px; font-weight: 700; color: #445; margin-bottom: 5px; }
.login-alan input { width: 100%; padding: 11px 14px; border: 1.5px solid #d7dee8; border-radius: 10px; font-size: 14px; color: #223; transition: border-color .15s, box-shadow .15s; box-sizing: border-box; }
.login-alan input:focus { outline: none; border-color: #2c7be5; box-shadow: 0 0 0 3px rgba(44,123,229,.15); }
.login-hata { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c0; border-radius: 8px; padding: 8px 12px; font-size: 12px; margin-bottom: 12px; }
.login-btn { width: 100%; background: linear-gradient(135deg, #1d4ed8, #2c7be5); border: none; border-radius: 10px; padding: 13px; color: #fff; font-size: 15px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(29,78,216,.35); transition: transform .1s, box-shadow .15s; }
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(29,78,216,.45); }
.login-btn:active { transform: translateY(0); }

/* ============ GKM v87: Erişilebilirlik + Karanlık Mod + Yeni Bileşenler ============ */
body.buyuk-yazi { font-size: 118%; }
body.buyuk-yazi .nav-btn, body.buyuk-yazi .acc-row, body.buyuk-yazi .rail-btn, body.buyuk-yazi .btn { font-size: 115%; }
body.yuksek-kontrast { filter: contrast(1.15) saturate(1.1); }
body.yuksek-kontrast .hint, body.yuksek-kontrast .meta, body.yuksek-kontrast .page-content { color: #000; }

body.karanlik {
  background: linear-gradient(180deg, #141a24 0%, #1b2432 100%); color: #dbe4f0;
}
body.karanlik header { background: linear-gradient(135deg, #101624 0%, #16233a 60%, #1a2a44 100%); color: #cfe1ff; box-shadow: 0 4px 24px rgba(0,0,0,.5); }
body.karanlik .brand h1, body.karanlik h1, body.karanlik .brand .sub, body.karanlik .sub { color: #9cc4ff; }
body.karanlik #btnKonumum, body.karanlik #btnGorunum, body.karanlik #btnPanelGoster, body.karanlik #btnPanelGizle { background: #1e2a3a; color: #dbe4f0; border-color: #33455c; }
body.karanlik #btnAktifler { background: linear-gradient(135deg, #0e7490, #155e75); color: #fff; }
body.karanlik #sidepanel { background: rgba(24, 32, 46, .97); border-color: #2a3a52; }
body.karanlik #sidepanel .panel-head { border-bottom-color: #2a3a52; }
body.karanlik .panel, body.karanlik .panel-inner, body.karanlik .asec.active, body.karanlik .report-card,
body.karanlik .list-row, body.karanlik .poi-item, body.karanlik .op-grup-satir, body.karanlik .op-opSatir,
body.karanlik .stat, body.karanlik .acil-card { background: #1b2432; border-color: #2a3a52; color: #dbe4f0; }
body.karanlik .report-card .meta, body.karanlik .hint, body.karanlik .panel h3, body.karanlik .panel-inner h4,
body.karanlik .asec .list-block h4, body.karanlik .veri-ust h4 { color: #b7c6d9; }
body.karanlik .panel h3, body.karanlik .panel-inner h4 { color: #dbe4f0; }
body.karanlik .modal-box { background: #1b2432; color: #dbe4f0; border: 1px solid #2e4159; }
body.karanlik .modal-box label, body.karanlik .login-alan label { color: #b7c6d9; }
body.karanlik .modal-box input, body.karanlik .modal-box select, body.karanlik .modal-box textarea,
body.karanlik .filters select, body.karanlik .filters input, body.karanlik .asec .filters input, body.karanlik .asec .filters select,
body.karanlik .login-alan input { background: #111826; color: #dbe4f0; border-color: #33455c; }
body.karanlik .modal-box input::placeholder, body.karanlik .filters input::placeholder { color: #6b7d94; }
body.karanlik .islem-blok { background: #161f2e; border-color: #2e4159; }
body.karanlik .timeline { border-left-color: #2e4159; color: #b7c6d9; }
body.karanlik .veri-ust, body.karanlik .asec .form-block { background: #151e2c; border-color: #2e4159; }
body.karanlik .poi-item:hover { background: #22304a; }
body.karanlik #sideMenu { background: #101624; }
body.karanlik .acc-row, body.karanlik .men-item { background: #1b2432; color: #dbe4f0; border-bottom-color: #22304a; }
body.karanlik .acc-row:hover, body.karanlik .men-item:hover, body.karanlik .acc-sub-row { background: #22304a; color: #dbe4f0; }
body.karanlik .acc-sub-label, body.karanlik .rail-btn, body.karanlik .rail-head, body.karanlik .rail-head button,
body.karanlik .side-foot, body.karanlik .slogan-blok { color: #dbe4f0; }
body.karanlik .rail-btn:hover { background: #22304a; }
body.karanlik #adminRail { background: linear-gradient(180deg, #101624, #16233a); }
body.karanlik .modal-close { color: #9db4d0; }
body.karanlik .page-content { color: #dbe4f0; }
body.karanlik footer { color: #5d7088; }
body.karanlik .detay-bos, body.karanlik .badge.b-normal { color: #889; }
body.karanlik .toast-msg.info { background: linear-gradient(135deg, #22304a, #1b2432); }

/* Üst bar erişilebilirlik düğmeleri */
.a11y-grup { display: flex; gap: 5px; align-items: center; margin-left: 8px; }
.a11y-btn { background: rgba(255,255,255,.9); border: 1px solid #ccd6e4; color: #1e2a3a; border-radius: 8px; padding: 6px 9px; cursor: pointer; font-size: 13px; line-height: 1; transition: all .15s ease; }
.a11y-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.a11y-btn.on { background: #2563eb; border-color: #2563eb; color: #fff; }
body.karanlik .a11y-btn { background: #1b2432; border-color: #33455c; color: #dbe4f0; }
body.karanlik .a11y-btn.on { background: #2563eb; color: #fff; }

/* Mahalle karnesi */
.karne-tablo { border-collapse: collapse; width: 100%; font-size: 13px; }
.karne-tablo th, .karne-tablo td { border: 1px solid #d7dee8; padding: 6px 10px; text-align: left; }
.karne-tablo th { background: #f0f4fa; }
body.karanlik .karne-tablo th { background: #22304a; color: #dbe4f0; }
.karne-not { display: inline-block; min-width: 26px; text-align: center; font-weight: 800; border-radius: 8px; padding: 2px 7px; color: #fff; }
body.karanlik .karne-tablo td { border-color: #2e4159; }

/* Güvenli bölge arama */
.guvenli-ara { margin-top: 10px; border-top: 1px dashed #d7dee8; padding-top: 10px; }
body.karanlik .guvenli-ara { border-top-color: #2e4159; }
.guvenli-sonuc { max-height: 230px; overflow: auto; margin-top: 6px; display: flex; flex-direction: column; gap: 5px; }
.guvenli-satir { background: #f4f8ff; border: 1px solid #d7dee8; border-radius: 9px; padding: 7px 9px; font-size: 12px; cursor: pointer; display: flex; gap: 8px; align-items: center; transition: all .14s ease; }
.guvenli-satir:hover { background: #e4efff; border-color: #3b82f6; }
body.karanlik .guvenli-satir { background: #1e2a3a; border-color: #33455c; color: #dbe4f0; }
.guvenli-satir b { color: #1d4ed8; }
body.karanlik .guvenli-satir b { color: #7fb2ff; }

/* QR modal */
#modal-qr .qr-gorsel { text-align: center; padding: 16px 0; }
#modal-qr img { border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.22); max-width: 220px; }

/* uyarı kutusu (mükerrer bildirim) */
.tekrar-uyari { border: 2px solid #f0a020; background: #fff7e6; border-radius: 10px; padding: 9px 11px; font-size: 12.5px; color: #7a4d00; margin: 8px 0; display: none; }
body.karanlik .tekrar-uyari { background: #2b2308; color: #ffd97a; border-color: #b97c19; }
.tekrar-uyari.goster { display: block; }

/* topluluk gücü: oy/yorum satırı */
.puan-yildiz { background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: #c2c9d4; padding: 0 2px; transition: transform .1s; }
.puan-yildiz:hover { transform: scale(1.25); color: #f5b301; }
.puan-yildiz.on { color: #f5b301; }
body.karanlik .puan-yildiz { color: #4a5a70; }
body.karanlik .puan-yildiz.on { color: #ffc93c; }
.yorum-puan { color: #f5b301; letter-spacing: 1px; }
body.karanlik .yorum-puan { color: #ffc93c; }
.topluluk-kutu { border: 1px dashed #c9d6e4; border-radius: 10px; padding: 9px 11px; margin-top: 9px; background: #f8fbff; font-size: 12px; }
body.karanlik .topluluk-kutu { background: #161f2e; border-color: #2e4159; }
.topluluk-kutu .tc-satir { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 5px 0; }
.topluluk-kutu input { flex: 1; min-width: 140px; }
.yorum-satir { border-bottom: 1px dashed #d7dee8; padding: 5px 0; font-size: 12px; color: #445; }
body.karanlik .yorum-satir { border-bottom-color: #2e4159; color: #b7c6d9; }
.oy-aktif { background: #27ae60 !important; color: #fff !important; border-color: #27ae60 !important; }

/* durak katmanı açıklama */
.durak-etiketi { font-size: 12px; margin-top: 8px; }



/* DENETİM LOGLARI düzeni — sabit başlık + kaydırılabilir alan */
#logBilgi { max-width: 100%; overflow-x: auto; }
#logBilgi .rapor-tablo { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 8px 0 0; }
#logBilgi thead { display: table; width: 100%; table-layout: fixed; }
#logBilgi thead th { background: #eef4fb; color: #34495e; font-size: 11.5px; padding: 7px 6px; text-align: left; border-bottom: 2px solid #c9d8ec; }
#logBilgi tbody { display: block; max-height: 55vh; overflow-y: auto; overflow-x: hidden; }
#logBilgi tbody tr { display: table; width: 100%; table-layout: fixed; }
#logBilgi tbody tr:hover { background: #f0f6ff; }
#logBilgi .rapor-tablo th, #logBilgi .rapor-tablo td { padding: 6px 7px; font-size: 11.5px; vertical-align: top; word-break: break-word; overflow-wrap: anywhere; white-space: normal; }
#logBilgi .rapor-tablo tr { border-bottom: 1px solid #e2e9f3; }
body.karanlik #logBilgi thead th { background: #1d2c42; color: #cfe1ff; border-bottom: 2px solid #2d4160; }
body.karanlik #logBilgi tbody tr:hover { background: #182438; }

/* VERSİYON + DB PERF panelleri düzeni */
#dbBilgi, #versiyonBilgi { min-width: 0; }
#dbBilgi { overflow-x: auto; }
#dbBilgi .stats-row { margin: 12px 0 4px; }
#dbBilgi .rapor-tablo { margin-top: 10px; min-width: 420px; }
#versiyonBilgi .grid-2 { gap: 14px; }
#versiyonBilgi .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; justify-content: start; }
#versiyonBilgi .panel-inner { width: 100%; max-width: none; }
#versiyonBilgi .panel-inner { background: #f8fbff; border: 1px solid #dbe5f2; border-radius: 12px; padding: 16px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: none; }
#versiyonBilgi .panel-inner h4 { margin: 0 0 8px; font-size: 13px; color: #55668a; }
body.karanlik #versiyonBilgi .panel-inner { background: #16233a; border-color: #2d4160; }
body.karanlik #versiyonBilgi .panel-inner h4 { color: #a9bde0; }
/* Yonetim: asec bolumleri tam genislik, sol hizali */
#adminWrap { width: 100%; }
#adminBody { width: 100%; display: block; }
.asec.active { width: 100%; max-width: none; margin: 0; box-sizing: border-box; }
.asec.active .panel { width: 100%; max-width: none; box-sizing: border-box; }
.asec.active .grid-2, .asec.active .stats-row, .asec.active .rapor-tablo { width: 100%; }

/* DB performans tablo yatay kaydirma */
#dbBilgi { overflow: auto; max-height: 62vh; width: 100%; border: 1px solid #e2e9f3; border-radius: 10px; }
#dbBilgi .rapor-tablo { min-width: 720px; width: max-content; max-width: none; }
#dbBilgi .rapor-tablo th, #dbBilgi .rapor-tablo td { white-space: nowrap; padding: 7px 12px; }

/* Mahalle sınır çizim penceresi: tam ekran modu — ana harita gibi kenardan kenara */
#modal-mahalle.modal.tam { padding: 0 !important; align-items: stretch; justify-content: stretch; background: #fff; overflow: hidden; }
#modal-mahalle .modal-box.tam {
  position: fixed !important; inset: 0 !important;
  width: auto !important; height: auto !important;
  max-width: none !important; max-height: none !important;
  min-width: 100vw !important; min-height: 100vh !important;
  border-radius: 0 !important; padding: 0 !important; margin: 0 !important;
  display: block !important; overflow: hidden !important;
  box-shadow: none !important;
  box-sizing: border-box;
}
#modal-mahalle .modal-box.tam h3,
#modal-mahalle .modal-box.tam .hint { display: none !important; }
#modal-mahalle .modal-box.tam #mahCizHarita {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important; min-height: 0 !important;
  border: none !important; border-radius: 0 !important;
  box-sizing: border-box;
}
#modal-mahalle .modal-box.tam .pencere-dugmeler { position: absolute; top: 12px; right: 14px; z-index: 1100; }
#modal-mahalle .modal-box.tam .modal-alt-dugmeler {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 1100;
  background: rgba(255,255,255,.96); padding: 8px 10px; border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25); margin: 0; max-width: 96vw;
}

/* Windows tarzı pencere düğmeleri (sağ üst: tam ekran / normal / kapat) */
.pencere-dugmeler { position: absolute; top: 10px; right: 12px; display: flex; gap: 4px; align-items: center; z-index: 10; }
.pencere-btn {
  width: 30px; height: 28px; border: 1px solid #cdd6e2; border-radius: 6px;
  background: #fff; color: #445; font-size: 14px; line-height: 1; cursor: pointer;
  transition: all .15s ease;
}
.pencere-btn:hover { background: #f0f6ff; border-color: var(--mavi); }
#modal-mahalle .pencere-dugmeler .modal-close { position: static; font-size: 18px; width: 30px; height: 28px; border: 1px solid #cdd6e2; border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: center; transition: all .15s ease; }
#modal-mahalle .pencere-dugmeler .modal-close:hover { background: #fdecec; border-color: var(--kirmizi); transform: none; }

/* ---------- VATANDAS BILDIRIM EKRANI (risk/hizmet): %40 genis + gri %20 saydam zemin ---------- */
#modal-report .modal-box {
  width: min(94vw, 620px);
  max-width: 620px;
  background: rgba(244, 246, 249, 0.6); /* acik gri, %40 saydam (opaklik %60) */
  backdrop-filter: blur(2px);
}
body.karanlik #modal-report .modal-box { background: rgba(27, 36, 50, 0.6); }

/* KVKK tam metin kutusu (kaydirilabilir) + onay zemini (modal zemini ile ayni) */
#modal-report .kvkk-blok { margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(148,163,184,.45); border-radius: 12px; background: rgba(244,246,249,.55); }
body.karanlik #modal-report .kvkk-blok { background: rgba(27,36,50,.55); border-color: #2e4159; }
#modal-report .kvkk-baslik { font-size: 12.5px; font-weight: 800; color: #123a5f; margin-bottom: 6px; }
body.karanlik #modal-report .kvkk-baslik { color: #cfe1f5; }
#modal-report .kvkk-baslik span { font-weight: 500; color: #64748b; font-size: 10.5px; }
#modal-report .kvkk-metin { max-height: 250px; overflow: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; font-size: 11.5px; line-height: 1.55; color: #334155; }
body.karanlik #modal-report .kvkk-metin { background: #16202e; border-color: #2e4159; color: #cbd5e1; }
#modal-report .kvkk-metin h2 { font-size: 12.5px; color: #1d4ed8; margin: 10px 0 4px; }
#modal-report .kvkk-metin p { margin: 4px 0; }
#modal-report .kvkk-metin ul { margin: 4px 0 6px; padding-left: 18px; }
#modal-report .kvkk-metin table { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 10.5px; }
#modal-report .kvkk-metin th, #modal-report .kvkk-metin td { border: 1px solid #dbe2ec; padding: 4px 6px; text-align: left; vertical-align: top; }
#modal-report .kvkk-metin th { background: #f0f6ff; }
#modal-report .kvkk-tarih { color: #64748b; font-size: 10.5px; margin: 2px 0 6px; }
#modal-report .kvkk-alt { margin-top: 8px; padding: 8px 10px; border-radius: 9px; background: rgba(244,246,249,.65); border: 1px solid rgba(148,163,184,.35); }
body.karanlik #modal-report .kvkk-alt { background: rgba(27,36,50,.65); border-color: #2e4159; }

/* ---------- KVKK 2 SUTUNLU ONAY + AYDINLATMA POPUP ---------- */
#modal-report .kvkk-alt {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(244, 246, 249, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
}
#modal-report .kvkk-alt .kvkk-etiket { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.35; }
#modal-report .kvkk-alt .kvkk-onay-metin { font-size: 12px; line-height: 1.55; color: #334155; }
body.karanlik #modal-report .kvkk-alt { background: rgba(27, 36, 50, 0.65); border-color: #2e4159; }
body.karanlik #modal-report .kvkk-alt .kvkk-onay-metin { color: #cbd5e1; }
#modal-report .kvkk-link-satir { margin-top: 8px; font-size: 12px; }
#modal-report .kvkk-link-satir a { color: #1d4ed8; font-weight: 700; text-decoration: underline; cursor: pointer; }
body.karanlik #modal-report .kvkk-link-satir a { color: #93c5fd; }
#modal-kvkk .kvkk-popup { width: min(92vw, 760px); max-width: 760px; }
#modal-kvkk .kvkk-metin { max-height: 62vh; overflow: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; font-size: 12px; line-height: 1.6; color: #334155; }
body.karanlik #modal-kvkk .kvkk-metin { background: #16202e; border-color: #2e4159; color: #cbd5e1; }
#modal-kvkk .kvkk-metin h2 { font-size: 13px; color: #1d4ed8; margin: 12px 0 4px; }
#modal-kvkk .kvkk-metin p { margin: 4px 0; }
#modal-kvkk .kvkk-metin ul { margin: 4px 0 6px; padding-left: 18px; }
#modal-kvkk .kvkk-metin table { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: 11px; }
#modal-kvkk .kvkk-metin th, #modal-kvkk .kvkk-metin td { border: 1px solid #dbe2ec; padding: 4px 6px; text-align: left; vertical-align: top; }
#modal-kvkk .kvkk-metin th { background: #f0f6ff; }
#modal-kvkk .kvkk-tarih { color: #64748b; font-size: 10.5px; margin: 2px 0 6px; }
#modal-kvkk .kvkk-popup-alt { margin-top: 10px; text-align: right; }
@media (max-width: 560px) {
  #modal-report .kvkk-alt { grid-template-columns: 1fr; }
}

/* ---------- BILDIRIM ACIKLAMASI: sabit genislik + dikey kaydirma; gonder saga ---------- */
#modal-report #repDesc {
  width: 100%;
  max-width: 100%;
  height: 76px;
  min-height: 64px;
  max-height: 76px;
  resize: none;
  overflow-y: auto;
  overflow-x: hidden;
}
#modal-report .gonder-satir { display: flex; justify-content: flex-end; margin-top: 10px; }
#modal-report #btnGonder { margin: 0; }

/* ===== ÜST ÇUBUK YARDIM DÜĞMESİ + YARDIM İNDEKS SAYFASI ===== */
.ust-yardim-btn {
  background: #fff; color: #1d4ed8; border: 1px solid #9cc4ff;
  padding: 8px 16px; border-radius: 10px; cursor: pointer; font-weight: 700;
  font-size: 13px; transition: all .18s ease; box-shadow: 0 2px 8px rgba(37,99,235,.16);
}
.ust-yardim-btn:hover { background: #eff6ff; border-color: #2563eb; transform: translateY(-1px); }
body.karanlik .ust-yardim-btn { background: #16233a; color: #dbe4f0; border-color: #334a6b; }
body.karanlik .ust-yardim-btn:hover { background: #22304a; }

.yardim-index {
  position: fixed; inset: 0; z-index: 3200; display: none;
  align-items: center; justify-content: center; padding: 18px;
  background: rgba(12, 24, 44, .58); backdrop-filter: blur(4px);
}
.yardim-index-pencere {
  width: min(1200px, 96vw); height: min(88vh, 860px);
  background: #fff; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.yardim-index-ust {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
}
.yardim-index-ust h2 { margin: 0; font-size: 19px; color: #12365c; }
.yardim-index-kapat {
  background: #fff; border: 1px solid #cdd6e2; color: #475569;
  border-radius: 10px; padding: 7px 14px; font-weight: 700; cursor: pointer;
}
.yardim-index-kapat:hover { background: #fdecec; border-color: #c0392b; color: #c0392b; }
.yardim-index-govde { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.yardim-index-icerik { padding: 22px 26px; overflow: auto; }
.yardim-index-icerik h3 { margin: 0 0 4px; color: #123a5f; font-size: 20px; }
.yardim-index-menu { background: #f4f8ff; border-left: 1px solid #dbe7f8; padding: 14px; overflow: auto; }
.yardim-toc-grup { margin-bottom: 14px; }
.yardim-toc-grup > b {
  display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  color: #1d4ed8; margin: 0 0 6px 4px;
}
.yardim-toc-btn {
  display: block; width: 100%; text-align: left; padding: 8px 10px; margin: 2px 0;
  border: 1px solid transparent; border-radius: 8px; background: transparent;
  color: #1f2c47; font-size: 12.5px; cursor: pointer;
}
.yardim-toc-btn:hover { background: #e8f1ff; }
.yardim-toc-btn.aktif { background: #1d4ed8; color: #fff; border-color: #1d4ed8; font-weight: 700; }
body.karanlik .yardim-index-pencere { background: #1b2432; color: #dbe4f0; }
body.karanlik .yardim-index-ust { background: #16233a; border-bottom-color: #2e4159; }
body.karanlik .yardim-index-ust h2 { color: #cfe1ff; }
body.karanlik .yardim-index-icerik { background: #1b2432; }
body.karanlik .yardim-index-menu { background: #151e2c; border-left-color: #2e4159; }
body.karanlik .yardim-toc-btn { color: #dbe4f0; }
body.karanlik .yardim-toc-btn:hover { background: #22304a; }
body.karanlik .yardim-toc-btn.aktif { background: #2563eb; color: #fff; }
body.karanlik .yardim-index-kapat { background: #1b2432; color: #dbe4f0; border-color: #334a6b; }

@media (max-width: 600px) {
  img#logoImg { height: 54px; }
  .side-logo-blok .menu-logo { height: 76px; width: 76px; }
  .login-logo { width: 80px; height: 80px; }
}

@media (max-width: 900px) {
  .yardim-index-pencere { height: min(92vh, 900px); }
  .yardim-index-govde { grid-template-columns: 1fr; }
  .yardim-index-menu { order: -1; border-left: 0; border-bottom: 1px solid #dbe7f8; max-height: 35vh; }
  .yardim-index-icerik { padding: 16px; }
}

