/* ════════════════════════════════════════════════════════════
   AKÇELİK SİSTEM – Ana Stil
   Kurumsal renkler + Koyu/Açık mod + 7 renk teması
   ════════════════════════════════════════════════════════════ */

/* Kurumsal renkler */
:root {
  --brand-navy: #004A99;
  --brand-blue: #0096D6;
  --brand-teal: #009681;
}

/* ── Renk Temaları (accent) ──────────────────────────────── */
:root[data-accent="akcelik"] { --accent-h:199; --accent-s:100%; --accent-l:42%; }
:root[data-accent="blue"]   { --accent-h:217; --accent-s:91%; --accent-l:60%; }
:root[data-accent="indigo"] { --accent-h:239; --accent-s:84%; --accent-l:67%; }
:root[data-accent="violet"] { --accent-h:258; --accent-s:90%; --accent-l:66%; }
:root[data-accent="green"]  { --accent-h:152; --accent-s:69%; --accent-l:50%; }
:root[data-accent="orange"] { --accent-h:25;  --accent-s:95%; --accent-l:57%; }
:root[data-accent="rose"]   { --accent-h:346; --accent-s:84%; --accent-l:61%; }
:root { --accent-h:199; --accent-s:100%; --accent-l:42%; } /* varsayılan: Akçelik */

/* ── KOYU MOD (varsayılan) ───────────────────────────────── */
:root, :root[data-theme="dark"] {
  --accent:        hsl(var(--accent-h), var(--accent-s), var(--accent-l));
  --accent-hover:  hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) + 8%));
  --accent-dim:    hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 8%));
  --accent-soft:   hsl(var(--accent-h), 40%, 20%);
  --accent-text:   hsl(var(--accent-h), var(--accent-s), 80%);

  --bg:            #0d1117;
  --bg2:           #161b22;
  --bg3:           #1c2333;
  --surface:       #1e2840;
  --surface2:      #242f47;
  --border:        rgba(255,255,255,.08);
  --border2:       rgba(255,255,255,.14);

  --text:          #e6edf3;
  --text2:         #8b949e;
  --text3:         #6e7681;

  --sidebar-bg:    #161b22;
  --sidebar-text:  #8b949e;
  --sidebar-hover: rgba(255,255,255,.06);
  --sidebar-active:hsl(var(--accent-h), var(--accent-s), 15%);

  --success:  #238636;
  --success-soft: rgba(35,134,54,.18);
  --warning:  #d29922;
  --warning-soft: rgba(210,153,34,.18);
  --danger:   #da3633;
  --danger-soft:  rgba(218,54,51,.18);
  --info:     #388bfd;
  --info-soft:    rgba(56,139,253,.18);

  --shadow:   0 4px 24px rgba(0,0,0,.4);
  --shadow-sm:0 2px 8px rgba(0,0,0,.3);
  --radius:   10px;
  --radius-sm:6px;
  --sidebar-w:240px;
  --topbar-h: 56px;
}

:root[data-accent="akcelik"][data-theme="dark"],
:root[data-accent="akcelik"] {
  --sidebar-bg: #0c1a2e;
  --sidebar-active: rgba(0, 150, 214, 0.14);
}
:root[data-accent="akcelik"][data-theme="light"] {
  --sidebar-bg: #f7f9fc;
  --sidebar-active: rgba(0, 74, 153, 0.08);
}

/* ── AÇIK MOD ────────────────────────────────────────────── */
:root[data-theme="light"] {
  --accent:        hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 5%));
  --accent-hover:  hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) - 12%));
  --accent-dim:    hsl(var(--accent-h), var(--accent-s), calc(var(--accent-l) + 5%));
  --accent-soft:   hsl(var(--accent-h), 60%, 94%);
  --accent-text:   hsl(var(--accent-h), var(--accent-s), 35%);

  --bg:            #f0f2f5;
  --bg2:           #e8eaed;
  --bg3:           #dde1e7;
  --surface:       #ffffff;
  --surface2:      #f8f9fb;
  --border:        rgba(0,0,0,.09);
  --border2:       rgba(0,0,0,.14);

  --text:          #1c1e21;
  --text2:         #65676b;
  --text3:         #90949c;

  --sidebar-bg:    #ffffff;
  --sidebar-text:  #65676b;
  --sidebar-hover: rgba(0,0,0,.05);
  --sidebar-active:hsl(var(--accent-h), 60%, 94%);

  --success:  #1a7f37;
  --success-soft: rgba(26,127,55,.12);
  --warning:  #9a6700;
  --warning-soft: rgba(154,103,0,.12);
  --danger:   #cf222e;
  --danger-soft:  rgba(207,34,46,.12);
  --info:     #0969da;
  --info-soft:    rgba(9,105,218,.12);

  --shadow:   0 4px 24px rgba(0,0,0,.1);
  --shadow-sm:0 2px 8px rgba(0,0,0,.07);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  transition: background .25s, color .25s;
}
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .85; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }

/* ── Uygulama Düzeni ─────────────────────────────────────── */
.app-layout { display: flex; height: 100vh; overflow: hidden; }

/* ═══ SİDEBAR ═══════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width .2s ease, background .25s;
  overflow: hidden;
  z-index: 100;
}
.sidebar-logo {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-logo .logo-icon {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: background .25s;
}
.sidebar-logo .logo-img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
}
.nav-section {
  padding: 14px 16px 5px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--sidebar-text);
  cursor: pointer;
  border-radius: 0;
  margin: 1px 8px;
  border-radius: var(--radius-sm);
  transition: background .12s, color .12s;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
}
.nav-item:hover { background: var(--sidebar-hover); color: var(--text); }
.nav-item.active {
  background: var(--sidebar-active);
  color: var(--accent-text);
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.nav-item .ni-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  opacity: .8;
}
.nav-item.active .ni-icon { opacity: 1; }
.nav-item .ni-label { font-size: 13px; flex: 1; }
.nav-item .ni-badge {
  font-size: 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  padding: 1px 6px;
  font-weight: 700;
}
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.sidebar-footer .user-avatar {
  width: 32px; height: 32px;
  background: var(--accent-soft);
  color: var(--accent-text);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar-footer .user-info { flex: 1; overflow: hidden; }
.sidebar-footer .user-name  { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-footer .user-role  { font-size: 11px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-footer .btn-logout { background: none; border: none; color: var(--text3); font-size: 16px; padding: 4px; border-radius: 6px; }
.sidebar-footer .btn-logout:hover { color: var(--danger); background: var(--danger-soft); }

/* ═══ TOPBAR ═════════════════════════════════════════════════ */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.topbar {
  height: var(--topbar-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 12px;
  flex-shrink: 0;
  transition: background .25s;
}
.topbar-title { font-size: 16px; font-weight: 700; color: var(--text); flex: 1; }
.topbar-subtitle { font-size: 12px; color: var(--text2); }

/* Tema araçları */
.topbar-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--border2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text2);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* Renk seçici */
.color-picker { display: flex; align-items: center; gap: 5px; }
.color-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s, border-color .15s;
}
.color-dot:hover { transform: scale(1.2); }
.color-dot.active { border-color: var(--text); transform: scale(1.1); }
.color-dot[data-c="akcelik"] { background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 55%, var(--brand-teal) 100%); }
.color-dot[data-c="blue"]   { background: hsl(217,91%,60%); }
.color-dot[data-c="indigo"] { background: hsl(239,84%,67%); }
.color-dot[data-c="violet"] { background: hsl(258,90%,66%); }
.color-dot[data-c="green"]  { background: hsl(152,69%,50%); }
.color-dot[data-c="orange"] { background: hsl(25,95%,57%); }
.color-dot[data-c="rose"]   { background: hsl(346,84%,61%); }

/* ═══ İÇERİK ALANI ══════════════════════════════════════════ */
.content-area {
  flex: 1;
  padding: 20px 24px;
  overflow-y: auto;
  background: var(--bg);
  transition: background .25s;
}
.page-header { margin-bottom: 20px; }
.page-header h2 { font-size: 19px; font-weight: 700; color: var(--text); }
.page-header p  { font-size: 13px; color: var(--text2); margin-top: 3px; }

/* ═══ KARTLAR ════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background .25s, border-color .25s;
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-header .card-title-icon { font-size: 16px; }
.card-header .card-action { margin-left: auto; }
.card-body { padding: 18px; }

/* İstatistik kartları */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background .25s, border-color .25s, transform .15s, box-shadow .15s;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card:hover::before { opacity: 1; }
.stat-card .sc-label { font-size: 12px; color: var(--text2); font-weight: 500; }
.stat-card .sc-value { font-size: 28px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-card .sc-sub   { font-size: 11.5px; color: var(--text3); }
.stat-card .sc-icon  {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 32px; opacity: .08;
}

/* ═══ FORM KONTROLLER ════════════════════════════════════════ */
.form-group { margin-bottom: 14px; }
.form-label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--text2); }
.form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  background: var(--bg3);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .25s;
  outline: none;
}
.form-control::placeholder { color: var(--text3); }
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px hsl(var(--accent-h),var(--accent-s),40%,.2);
  background: var(--surface);
}
.form-control:disabled { opacity: .5; cursor: not-allowed; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ═══ BUTONLAR ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  transition: opacity .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
  outline: none;
}
.btn:active { transform: scale(.97); }
.btn-primary   { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: .88; box-shadow: 0 4px 12px hsl(var(--accent-h),var(--accent-s),40%,.4); }
.btn-success   { background: var(--success); color: #fff; }
.btn-success:hover { opacity: .88; }
.btn-warning   { background: var(--warning); color: #fff; }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-danger:hover  { opacity: .88; }
.btn-secondary { background: var(--surface2); color: var(--text); border-color: var(--border2); }
.btn-secondary:hover { background: var(--bg3); }
.btn-outline {
  background: transparent;
  border-color: var(--border2);
  color: var(--text2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--text2); border-color: transparent; }
.btn-ghost:hover { background: var(--sidebar-hover); color: var(--text); }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-lg { padding: 11px 22px; font-size: 14.5px; }
.btn-icon { padding: 7px 9px; }
.btn-icon-sm { padding: 4px 7px; }
.w-100 { width: 100%; justify-content: center; }

/* ═══ TABLO ══════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl thead th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .4px;
  background: var(--bg2);
}
table.tbl tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
table.tbl tbody tr:hover { background: var(--surface2); }
table.tbl tbody td { padding: 10px 14px; vertical-align: middle; color: var(--text); }
table.tbl tbody tr:last-child { border-bottom: none; }

/* ═══ ROZETLER ═══════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-success  { background: var(--success-soft);  color: var(--success); }
.badge-warning  { background: var(--warning-soft);  color: var(--warning); }
.badge-danger   { background: var(--danger-soft);   color: var(--danger); }
.badge-info     { background: var(--info-soft);     color: var(--info); }
.badge-primary  { background: var(--accent-soft);   color: var(--accent-text); }
.badge-secondary{ background: var(--surface2);      color: var(--text2); border: 1px solid var(--border2); }

/* ═══ MODAL ══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  animation: fadeIn .15s;
  padding: 20px;
}
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }
.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  width: 560px;
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: slideUp .18s cubic-bezier(.34,1.56,.64,1);
}
@keyframes slideUp { from { transform:translateY(24px); opacity:0 } to { transform:translateY(0); opacity:1 } }
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.modal-body    { padding: 20px; }
.modal-footer  { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
.modal-close   { background: none; border: none; font-size: 20px; color: var(--text3); border-radius: 6px; width: 28px; height: 28px; display:flex;align-items:center;justify-content:center; }
.modal-close:hover { background: var(--danger-soft); color: var(--danger); }

/* ═══ TOAST ══════════════════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 2000;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  min-width: 260px; max-width: 380px;
  box-shadow: var(--shadow);
  animation: toastIn .22s cubic-bezier(.34,1.56,.64,1);
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid rgba(255,255,255,.1);
}
@keyframes toastIn { from { transform: translateX(30px); opacity:0 } to { transform:translateX(0); opacity:1 } }
.toast-success { background: #1a3a25; color: #4caf7d; border-color: rgba(76,175,125,.3); }
.toast-error   { background: #3a1a1a; color: #f87171; border-color: rgba(248,113,113,.3); }
.toast-warning { background: #3a2d0a; color: #fbbf24; border-color: rgba(251,191,36,.3); }
.toast-info    { background: #1a2d4a; color: #60a5fa; border-color: rgba(96,165,250,.3); }
:root[data-theme="light"] .toast-success { background:#f0fdf4; color:#16a34a; border-color:#bbf7d0; }
:root[data-theme="light"] .toast-error   { background:#fef2f2; color:#dc2626; border-color:#fecaca; }
:root[data-theme="light"] .toast-warning { background:#fffbeb; color:#d97706; border-color:#fde68a; }
:root[data-theme="light"] .toast-info    { background:#eff6ff; color:#2563eb; border-color:#bfdbfe; }
.toast-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title { font-weight: 700; margin-bottom: 2px; }
.toast-msg   { font-size: 12.5px; opacity: .85; }

/* ═══ SPINNER ════════════════════════════════════════════════ */
.spinner {
  width: 28px; height: 28px;
  border: 2.5px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .65s linear infinite;
}
.spinner-sm { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg) } }
.loading-state {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  padding: 48px; color: var(--text2); font-size: 13px;
}

/* ═══ SAYFALAMA ══════════════════════════════════════════════ */
.pagination { display: flex; gap: 4px; align-items: center; }
.page-btn {
  min-width: 32px; height: 32px;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--text2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0 6px;
  transition: all .12s;
}
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.page-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ═══ YARDIMCI SINIFLAR ══════════════════════════════════════ */
.d-flex        { display: flex; }
.d-grid        { display: grid; }
.align-center  { align-items: center; }
.align-start   { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end   { justify-content: flex-end; }
.flex-1        { flex: 1; }
.gap-4  { gap: 4px; } .gap-6  { gap: 6px; } .gap-8  { gap: 8px; }
.gap-10 { gap: 10px;} .gap-12 { gap: 12px;} .gap-16 { gap: 16px;}
.mb-8  { margin-bottom: 8px; }  .mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }
.mt-8  { margin-top: 8px; }     .mt-12 { margin-top: 12px; }
.ml-auto { margin-left: auto; }
.text-right  { text-align: right; }
.text-center { text-align: center; }
.text-muted  { color: var(--text2); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-success{ color: var(--success); }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.fs-11  { font-size: 11px; }  .fs-12  { font-size: 12px; }
.fs-13  { font-size: 13px; }  .fs-16  { font-size: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.empty-state { text-align: center; padding: 48px; color: var(--text2); }
.empty-state .es-icon { font-size: 40px; margin-bottom: 12px; opacity: .4; }
.empty-state p { font-size: 13px; }

/* ═══ LOGIN SAYFASI ══════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: auto;
}
.login-bg-grid {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.login-bg-grid::before {
  content: '';
  position: absolute; inset: -50%;
  background-image: radial-gradient(circle at 60% 30%, hsl(var(--accent-h),var(--accent-s),30%,.15) 0%, transparent 50%),
                    radial-gradient(circle at 20% 80%, hsl(var(--accent-h),60%,20%,.1) 0%, transparent 40%);
}
.login-card {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 40px 36px;
  width: 400px;
  max-width: calc(100vw - 32px);
  box-shadow: var(--shadow);
}
.login-logo-area { text-align: center; margin-bottom: 30px; }
.login-logo-area .logo-badge {
  width: auto; height: auto;
  background: none;
  border-radius: 0;
  display: block;
  margin: 0 auto 14px;
}
.login-logo-area .logo-img {
  height: 52px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.login-logo-area h1 { font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.login-logo-area p  { font-size: 11px; color: var(--text2); margin-top: 4px; letter-spacing: .6px; text-transform: uppercase; }

/* ═══ TAB ════════════════════════════════════════════════════ */
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab-btn {
  padding: 8px 14px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: -1px;
  border-radius: 0;
  transition: color .15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 700; }

/* ═══ SEARCH BAR ═════════════════════════════════════════════ */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  transition: border-color .15s;
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 13px; padding: 8px 0;
}
.search-bar .search-icon { color: var(--text3); font-size: 15px; }

/* ═══ KOD BLOĞU ══════════════════════════════════════════════ */
code {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'Consolas', monospace;
  font-size: 12px;
  color: var(--accent-text);
}

/* ═══ PROGRESS BAR ═══════════════════════════════════════════ */
.progress-bar {
  height: 6px;
  background: var(--bg3);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}
.progress-bar .pb-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width .5s ease;
}

/* ═══ TABLEt RESPONSIVE ══════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --sidebar-w: 60px; }
  .nav-item .ni-label,
  .nav-item .ni-badge,
  .nav-section,
  .sidebar-footer .user-info { display: none; }
  .nav-item { padding: 10px; justify-content: center; margin: 2px 6px; }
  .nav-item .ni-icon { width: auto; margin: 0; font-size: 18px; }
  .nav-item.active::before { left: -6px; }
  .sidebar-logo { justify-content: center; padding: 0; }
  .sidebar-logo .logo-img { height: 32px; max-width: 48px; }
  .sidebar-footer { justify-content: center; }
  .sidebar-footer .btn-logout { margin: 0; }
}
@media (max-width: 640px) {
  .content-area { padding: 12px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .topbar { padding: 0 12px; }
  .topbar-title { font-size: 14px; }
  .color-picker { display: none; }
}
