/* =====================================================================
   İSG Takip arayüz teması: içerik sitesi ve web uygulaması için ortak görünüm.
   site.css / www/style.css bileşenlerini (sidebar, nav-item, official-header-bg, card,
   form, tablo, düğme) yeniden biçimlendirir; en son yüklenir.
   ===================================================================== */
:root {
  --t-lacivert-0: #0b1626; --t-lacivert-1: #12213a; --t-lacivert-2: #1a3152; --t-lacivert-3: #24476f;
  --t-turuncu: #e8833a; --t-turuncu-k: #c2621f; --t-turuncu-a: #fff3ea;
  --t-zemin: #f3f5fa; --t-kenar: #e3e8f1; --t-metin: #0f1b2d; --t-ikincil: #5b6b82;
  --t-golge: 0 1px 2px rgba(15,27,45,.05), 0 8px 24px rgba(15,27,45,.06);
  --t-golge-y: 0 2px 4px rgba(15,27,45,.06), 0 16px 36px rgba(15,27,45,.12);
  --t-yaricap: 16px;
  --primary: #1a3152; --primary-dark: #0f1b2d; --primary-light: #e7eef8;
  --sidebar-bg: #12213a; --border: var(--t-kenar); --bg-main: var(--t-zemin); --text-main: var(--t-metin); --secondary: var(--t-ikincil);
}

body { background: var(--t-zemin) linear-gradient(180deg, #e9eef7 0, var(--t-zemin) 320px) no-repeat; color: var(--t-metin); }

/* ---------- Yan menü ---------- */
body .sidebar {
  background: linear-gradient(180deg, var(--t-lacivert-1) 0%, var(--t-lacivert-0) 100%);
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: 4px 0 24px rgba(11,22,38,.18);
}
body .sidebar-logo { border-bottom: 1px solid rgba(255,255,255,.07); }
body .sidebar-logo img, body .isg-logo--sidebar { border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
body .sidebar-logo .logo-title { font-weight: 800; letter-spacing: -.01em; }
body .sidebar-logo .logo-sub { color: #f6b88a; font-weight: 600; letter-spacing: .02em; }
body .nav-section {
  font-size: 10.5px !important; font-weight: 700; letter-spacing: .14em !important; text-transform: uppercase;
  color: #7f92ad; padding: 18px 22px 6px !important;
}
body .nav-item {
  margin: 1px 10px; padding: 9px 12px !important; border-radius: 10px; border-left: 0 !important;
  color: #cdd8e8; font-size: 14px !important; font-weight: 500; gap: 11px;
  transition: background .15s ease, color .15s ease;
}
body .nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
body .nav-item[aria-current="page"], body .nav-item.active {
  background: linear-gradient(90deg, rgba(232,131,58,.22), rgba(232,131,58,.06));
  color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--t-turuncu);
}
body .nav-item[aria-current="page"] .nav-ikon, body .nav-item.active .nav-ikon, body .nav-item.active i { color: #ffb37a; opacity: 1; }
body .nav-item.nav-sub { padding-left: 30px !important; font-size: 13.5px !important; }
body .sidebar-footer { border-top: 1px solid rgba(255,255,255,.07); }
body .user-info { margin: 6px 10px 2px; padding: 10px 12px !important; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); }
body .sidebar::-webkit-scrollbar { width: 6px; }
body .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 6px; }

/* ---------- Sayfa başlık bandı ---------- */
body .official-header-bg {
  position: relative; overflow: hidden; border: 0 !important; border-radius: 18px;
  padding: 26px 28px !important; color: #fff;
  background:
    radial-gradient(700px 220px at 105% -40%, rgba(232,131,58,.45), transparent 60%),
    linear-gradient(135deg, var(--t-lacivert-1) 0%, var(--t-lacivert-2) 60%, var(--t-lacivert-3) 100%);
  box-shadow: 0 14px 32px rgba(18,33,58,.22);
}
body .official-header-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent 20%, #000 85%);
}
body .official-header-bg > * { position: relative; z-index: 1; }
body .official-header-bg h1, body .official-header-bg h2 { color: #fff !important; font-size: clamp(22px, 2.4vw, 28px) !important; font-weight: 800; letter-spacing: -.015em; }
body .official-header-bg p { color: #d3ddeb !important; font-size: 15.5px; max-width: 720px; }
body .official-header-bg p strong { color: #fff; }
body .official-header-bg .btn-primary { background: var(--t-turuncu); border-color: var(--t-turuncu); color: #fff; box-shadow: 0 6px 16px rgba(232,131,58,.35); }
body .official-header-bg .btn-primary:hover { background: var(--t-turuncu-k); }
body .official-header-bg .fav-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #fff; }
body .official-header-bg .fav-btn:hover, body .official-header-bg .fav-btn[aria-pressed="true"] { background: rgba(232,131,58,.25); border-color: rgba(255,179,122,.6); color: #fff; }

/* ---------- Kartlar ---------- */
body .card, body .stat-card, body .quick, body .ozellik, body .isg-ar-kart, body .tanitim-kartlar article {
  border: 1px solid var(--t-kenar); border-radius: var(--t-yaricap); box-shadow: var(--t-golge); background: #fff;
}
body .card:hover, body .quick:hover, body .stat-card-clickable:hover { box-shadow: var(--t-golge-y); }
body .grid > .card:hover, body .grid > article.card:hover { transform: translateY(-2px); border-color: #c9d4e5; }
body .card h2 a, body .card h3 a { color: var(--t-lacivert-2); text-decoration: none; }
body .card h2 a:hover, body .card h3 a:hover { color: var(--t-turuncu-k); text-decoration: underline; text-underline-offset: 3px; }
body .stat-card { display: flex; align-items: center; gap: 14px; padding: 18px !important; }
body .stat-card > div:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body .stat-label { display: block; font-size: 13px; font-weight: 600; color: var(--t-ikincil); line-height: 1.3; }
body .stat-value { display: block; font-size: 28px; line-height: 1.1; color: var(--t-metin); }
body .stat-icon { border-radius: 14px; }
body .stat-icon .ikon { width: 26px; height: 26px; }
body .stat-value { font-weight: 800; letter-spacing: -.02em; }

/* ---------- Metin ve rehber sayfaları ---------- */
body .prose h2, body .card > h2 { position: relative; padding-left: 14px; }
body .prose h2::before, body .card > h2::before { content: ""; position: absolute; left: 0; top: .28em; bottom: .28em; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--t-turuncu), #f6b88a); }
body .prose p, body .prose li { color: #26364d; }
body .prose a, body main p a { color: #1d4f91; text-underline-offset: 3px; }
body .prose a:hover, body main p a:hover { color: var(--t-turuncu-k); }
body .box { border-radius: 14px; border: 1px solid #f3c9a6; background: linear-gradient(135deg, #fff8f2, #fff); }
body .kirinti a { color: #1d4f91; font-weight: 500; }

/* ---------- Tablolar ---------- */
body main table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--t-kenar); border-radius: 12px; overflow: hidden; font-size: 14.5px; }
body main th { background: #f1f5fb; color: #33465f; font-weight: 700; text-align: left; font-size: 13px; letter-spacing: .02em; }
body main th, body main td { padding: 11px 14px; border-bottom: 1px solid var(--t-kenar); }
body main tbody tr:last-child td { border-bottom: 0; }
body main tbody tr:nth-child(even) td { background: #fafbfe; }

/* ---------- Düğmeler ---------- */
body .btn-primary, body .btn.btn-play {
  background: linear-gradient(135deg, var(--t-lacivert-2), var(--t-lacivert-3)); border: 0; color: #fff;
  border-radius: 11px; font-weight: 600; box-shadow: 0 6px 16px rgba(26,49,82,.25); transition: transform .15s ease, box-shadow .15s ease;
}
body .btn-primary:hover, body .btn.btn-play:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(26,49,82,.3); }
body .btn-secondary { border-radius: 10px; border-color: #c9d4e5; color: var(--t-lacivert-2); font-weight: 600; }
body .btn-secondary:hover { border-color: var(--t-lacivert-2); background: #f5f8fc; }
body .btn-ghost { border-radius: 10px; }
body .sidebar .btn-ghost, body #logout-btn { color: #cdd8e8; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; width: 100%; justify-content: center; }
body .sidebar .btn-ghost:hover, body #logout-btn:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Formlar ---------- */
body .form-group label, body .isg-ar-alan > span { font-weight: 600; color: #33465f; font-size: 13.5px; }
body .form-group input, body .form-group select, body .form-group textarea,
body .isg-ar-alan input, body .isg-ar-alan select, body .filter-bar input, body .filter-bar select {
  border: 1px solid #cfd8e6; border-radius: 11px; background: #fbfcfe; transition: border-color .15s, box-shadow .15s, background .15s;
}
body .form-group input:focus, body .form-group select:focus, body .form-group textarea:focus,
body .isg-ar-alan input:focus, body .isg-ar-alan select:focus {
  border-color: var(--t-turuncu); background: #fff; box-shadow: 0 0 0 4px rgba(232,131,58,.16); outline: none;
}

/* ---------- Web uygulaması: giriş ekranı ---------- */
body.web-app .login-container { background: linear-gradient(135deg, var(--t-lacivert-0), var(--t-lacivert-2) 60%, var(--t-lacivert-3)); }
body.web-app .login-panel { background: radial-gradient(600px 300px at 80% 0%, rgba(232,131,58,.12), transparent 60%), linear-gradient(160deg, #eef2f8, #f7f9fc); }
body.web-app .login-card { border-radius: 20px; box-shadow: 0 30px 60px rgba(11,22,38,.35); border: 0; }
body.web-app .login-card h1 { font-weight: 800; letter-spacing: -.02em; color: var(--t-metin); }
body.web-app .tab-toggle { background: #f1f4f9; border-radius: 12px; padding: 4px; border: 0; gap: 4px; }
body.web-app .auth-tab { border-radius: 9px !important; border: 0 !important; margin: 0 !important; font-weight: 600; }
body.web-app .auth-tab.active { background: #fff; color: var(--t-lacivert-2); box-shadow: 0 2px 8px rgba(15,27,45,.1); }
body.web-app .misafir-devam { border: 1px dashed #c9d4e5; color: var(--t-lacivert-2); font-weight: 600; }
body.web-app .misafir-uyari { background: linear-gradient(135deg, #fff8f2, #fff); border-color: #f3c9a6; }
body.web-app .tanitim-alani { background: var(--t-zemin); }

/* ---------- Alt bilgi ---------- */
body .site-footer { background: var(--t-lacivert-1); color: #9fb0c8; border-top: 0; }
body .site-footer a { color: #dbe4f1; }
body .site-footer a:hover { color: #ffb37a; }

/* ---------- Telefon üst çubuğu ---------- */
body .mobil-ust { background: linear-gradient(90deg, var(--t-lacivert-1), var(--t-lacivert-2)); box-shadow: 0 4px 14px rgba(11,22,38,.25); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { body { background: #fff !important; } body .official-header-bg { background: #fff !important; color: #000; box-shadow: none; } body .official-header-bg h1, body .official-header-bg h2, body .official-header-bg p { color: #000 !important; } }
