/* ============ Base / Tokens ============ */
:root{
  --topbar-h:56px;
  --sidebar-w:240px;

  --bg:#f6f7fb;
  --surface:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;

  --primary:#111827;
  --radius:12px;
  --shadow:0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:14px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.container{max-width:1100px;margin:0 auto;padding:0 16px}

/* ============ Topbar ============ */
.topbar {
    display: none; /* Üst menüyü gizle çünkü artık sol menü kullanacağız */
}

/* ============ Sidebar (Left Nav) ============ */
/* Sidebar stilleri custom-theme.css dosyasında tanımlı */

/* ============ Content Area ============ */
.content {
    min-height: 100vh;
    width: 100%;
}

.content > .d-flex {
    min-height: 100vh;
}

/* Main content container - custom-theme.css'de override ediliyor */

/* ============ Cards / Forms / Buttons ============ */
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:20px; box-shadow:var(--shadow);
}
.card + .card{ margin-top:12px }
.narrow{max-width:480px; margin:24px auto}

label{display:block; margin-bottom:12px; font-weight:600}
input, select, textarea{
  width:100%; padding:10px 12px; margin-top:6px;
  background:#fff; color:var(--text);
  border:1px solid #ccd; border-radius:10px;
}
textarea{resize:vertical}

button, .button{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 14px; border-radius:10px; border:0; cursor:pointer;
  background:var(--primary); color:#fff; text-decoration:none;
}
.button{ border-radius:10px }
.btn-ghost{ background:#fff; color:var(--text); border:1px solid var(--border) }

/* ============ Tables ============ */
.table{
  width:100%; border-collapse:separate; border-spacing:0;
  background:var(--surface); border:1px solid var(--border);
  border-radius:10px; overflow:hidden;
}
.table th,.table td{ padding:10px 12px; border-bottom:1px solid var(--border); text-align:left }
.table thead th{ background:#f9fafb; color:#6b7280; font-weight:700; font-size:12px }
.table tbody tr:hover{ background:#f7f7fb }
.table tr:last-child td{ border-bottom:0 }

/* ============ Stats / Grid ============ */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:12px 0 }
.stat{
  background:var(--surface); border:1px solid var(--border); border-radius:12px;
  padding:16px; box-shadow:var(--shadow);
}
.stat .label{ color:var(--muted); font-size:12px }
.stat .value{ font-size:24px; font-weight:800; margin-top:6px }

/* ============ Flash Messages ============ */
.flashes .flash{ padding:10px; border-radius:10px; margin:8px 0; border:1px solid }
.flash.success{ background:#e8f9ef; border-color:#b7f0cf }
.flash.error{ background:#fde8e8; border-color:#f5b5b5 }

/* ============ Footer ============ */
.footer{ color:#555; margin:24px 0 }

/* ============ Utilities ============ */
.muted{ color:var(--muted) }
.inline{ display:inline }

/* ============ (Optional) Responsive ============ */
/* Sidebar stilleri custom-theme.css dosyasında tanımlı */

/* Küçük buton stilleri */
.btn-ghost{ background:transparent; border:1px solid #374151; color:#fff; }
.button{ background:#111; color:#fff; border-radius:10px; padding:10px 14px; text-decoration:none; }
.flashes .flash{padding:10px;border-radius:10px;margin:8px 0;border:1px solid}
.flash.success{background:#e8f9ef;border-color:#b7f0cf}
.flash.error{background:#fde8e8;border-color:#f5b5b5}
/* Sidebar stilleri custom-theme.css dosyasında tanımlı - burada kaldırıldı */
    /* === KPI GRID === */
.kpi-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(220px,1fr));
  gap:18px;
  margin: 6px 0 18px;
}
@media (max-width: 1200px){ .kpi-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .kpi-grid{ grid-template-columns: 1fr; } }

.kpi-card{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(18,21,39,1) 0%, rgba(16,19,32,1) 100%);
  color:#e7e9ee;
  text-decoration:none;
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.kpi-card:hover{ transform: translateY(-2px); box-shadow:0 10px 22px rgba(0,0,0,.35); }
.kpi-card:focus{ outline:2px solid #7aa2ff; outline-offset:2px; }

/* Hafif ışıma efekti */
.kpi-card::after{
  content:"";
  position:absolute; inset:-40%;
  background: radial-gradient(650px 200px at var(--gx,20%) -20%, rgba(255,255,255,.08), transparent 60%);
  transform: translateZ(0);
  pointer-events:none;
}

/* Renk varyantları (ince kenar ve ikon zeminine yansır) */
.kpi-primary{ --accent:#4f79ff; border-color: rgba(79,121,255,.35); }
.kpi-success{ --accent:#2fb371; border-color: rgba(47,179,113,.35); }
.kpi-info   { --accent:#07b6d5; border-color: rgba(7,182,213,.35); }
.kpi-warning{ --accent:#e7b23c; border-color: rgba(231,178,60,.35); }

.kpi-icon{
  flex:0 0 auto;
  width:54px; height:54px;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:24px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 35%, #0f1320), #0f1320);
  border:1px solid color-mix(in oklab, var(--accent) 55%, transparent);
  box-shadow: inset 0 0 18px color-mix(in oklab, var(--accent) 25%, transparent);
}

.kpi-meta{ display:flex; flex-direction:column; line-height:1.15; }
.kpi-label{ font-size:13px; color:#cbd5e1; letter-spacing:.2px; }
.kpi-value{ font-size:28px; font-weight:800; letter-spacing:.3px; color:#fff; margin-top:2px; }
.kpi-sub{ font-size:12px; color:#a8b3c7; margin-top:6px; }

/* Yüzey parlaklığı */
@media (hover:hover){
  .kpi-card:hover::after{ --gx:60%; }
}

/* Açık temaya uyum (varsa) */
:root[data-bs-theme="light"] .kpi-card{
  background: linear-gradient(180deg, #ffffff, #f6f8fb);
  color:#1f2937; border-color: rgba(0,0,0,.06);
}
:root[data-bs-theme="light"] .kpi-icon{
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 18%, #fff), #fff);
  border-color: color-mix(in oklab, var(--accent) 40%, #0000);
}
:root[data-bs-theme="light"] .kpi-label{ color:#475569; }
:root[data-bs-theme="light"] .kpi-sub{ color:#64748b; }

