/* ==========================================================================
   KRONOS STUDIO OS v7.0 — BOOTSTRAP 5 + PURE CSS DESKTOP SAAS FRAMEWORK
   Sıfır Tailwind • Saf CSS Değişken Mimarisi • Masaüstü Program Görünümü
   ========================================================================== */

:root {
  color-scheme: light dark;
}
:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  color-scheme: dark;
}
:root:has(> head > meta[name="color-scheme"][content="light"]) {
  color-scheme: light;
}

:root,
[data-theme="light"] {
  color-scheme: light;
  --bg-desktop: #e6e9f0;
  --bg-window: rgba(248, 250, 252, 0.92);
  --bg-titlebar: rgba(241, 245, 249, 0.94);
  --bg-menubar: #f8fafc;
  --bg-dock: #0f172a;
  --bg-sidebar: #f1f5f9;
  --bg-workspace: #f4f6fb;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-input: #ffffff;

  --border-window: rgba(15, 23, 42, 0.14);
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  --shadow-window: 0 28px 70px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-float: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg-desktop: #06080d;
  --bg-window: rgba(13, 17, 23, 0.95);
  --bg-titlebar: rgba(9, 12, 18, 0.96);
  --bg-menubar: #0d1117;
  --bg-dock: #07090e;
  --bg-sidebar: #0b0f17;
  --bg-workspace: #090c12;
  --bg-surface: #111621;
  --bg-surface-hover: #171e2c;
  --bg-subtle: #161c28;
  --bg-input: #0b0f17;

  --border-window: rgba(255, 255, 255, 0.1);
  --border-color: #1e2636;
  --border-strong: #2b3548;

  --text-main: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-faint: #475569;

  --shadow-window: 0 32px 80px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.07);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-float: 0 24px 55px -10px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(255, 255, 255, 0.09);
}

/* Koyu Siyah Mod (Saf Siyah / OLED Yüksek Kontrast Teması) */
[data-theme="black"] {
  color-scheme: dark;
  --bg-desktop: #000000;
  --bg-window: rgba(2, 2, 4, 0.98);
  --bg-titlebar: rgba(0, 0, 0, 0.99);
  --bg-menubar: #030305;
  --bg-dock: #000000;
  --bg-sidebar: #040407;
  --bg-workspace: #000000;
  --bg-surface: #08080c;
  --bg-surface-hover: #101018;
  --bg-subtle: #0c0c12;
  --bg-input: #030306;

  --border-window: rgba(255, 255, 255, 0.14);
  --border-color: #191924;
  --border-strong: #272738;

  --text-main: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-faint: #52525b;

  --shadow-window: 0 32px 80px -12px rgba(0, 0, 0, 0.96), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.65);
  --shadow-float: 0 24px 55px -10px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Antrasit Gri Mod (Siyah ile Beyaz Arasında Orta Koyu Kül/Arduvaz Gri Teması) */
[data-theme="graphite"] {
  color-scheme: dark;
  --bg-desktop: #181e29;
  --bg-window: rgba(31, 38, 51, 0.96);
  --bg-titlebar: rgba(25, 31, 43, 0.97);
  --bg-menubar: #1d2432;
  --bg-dock: #141923;
  --bg-sidebar: #1b2230;
  --bg-workspace: #202736;
  --bg-surface: #283142;
  --bg-surface-hover: #303b4f;
  --bg-subtle: #232b3a;
  --bg-input: #1b2230;

  --border-window: rgba(255, 255, 255, 0.14);
  --border-color: #364156;
  --border-strong: #475569;

  --text-main: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  --shadow-window: 0 30px 75px -12px rgba(10, 14, 22, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.09);
  --shadow-card: 0 2px 8px rgba(10, 14, 22, 0.28);
  --shadow-float: 0 22px 50px -10px rgba(10, 14, 22, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Gümüş Gri Mod (Göz Yormayan Yumuşak İnci/Platin Gri Teması) */
[data-theme="silver"] {
  color-scheme: light;
  --bg-desktop: #c8d2e1;
  --bg-window: rgba(226, 232, 240, 0.95);
  --bg-titlebar: rgba(209, 218, 230, 0.96);
  --bg-menubar: #dce3ee;
  --bg-dock: #1e293b;
  --bg-sidebar: #d5deeb;
  --bg-workspace: #dde4ef;
  --bg-surface: #ecf0f6;
  --bg-surface-hover: #e2e8f0;
  --bg-subtle: #d2dceb;
  --bg-input: #f4f7fb;

  --border-window: rgba(15, 23, 42, 0.18);
  --border-color: #c0cce0;
  --border-strong: #94a3b8;

  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --text-faint: #64748b;

  --shadow-window: 0 28px 70px -12px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.1);
  --shadow-card: 0 1px 4px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-float: 0 20px 45px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.1);
}

/* Koyu Krem & Bronz Mod (Doygun Sıcak Kum / Kapuçino / Toprak Teması) */
[data-theme="mocha"] {
  color-scheme: light;
  --bg-desktop: #bfb097;
  --bg-window: rgba(227, 216, 196, 0.96);
  --bg-titlebar: rgba(212, 198, 174, 0.97);
  --bg-menubar: #dcd0ba;
  --bg-dock: #1e150b;
  --bg-sidebar: #d5c7ae;
  --bg-workspace: #e1d5c0;
  --bg-surface: #eee5d4;
  --bg-surface-hover: #dfd2b9;
  --bg-subtle: #cebe9f;
  --bg-input: #f5eee0;

  --border-window: rgba(56, 38, 14, 0.22);
  --border-color: #bfa984;
  --border-strong: #9e845c;

  --text-main: #21170b;
  --text-secondary: #473623;
  --text-muted: #664f36;
  --text-faint: #876d4f;

  --shadow-window: 0 28px 70px -12px rgba(33, 23, 11, 0.32), 0 0 0 1px rgba(56, 38, 14, 0.14);
  --shadow-card: 0 1px 4px rgba(33, 23, 11, 0.1), 0 1px 2px rgba(33, 23, 11, 0.06);
  --shadow-float: 0 20px 45px -10px rgba(33, 23, 11, 0.26), 0 0 0 1px rgba(56, 38, 14, 0.14);
}

/* Krem / Sıcak Bej Mod (Açık Sıcak Kağıt & Fildişi Teması) */
[data-theme="cream"] {
  color-scheme: light;
  --bg-desktop: #dfd8c8;
  --bg-window: rgba(250, 247, 240, 0.96);
  --bg-titlebar: rgba(243, 237, 224, 0.97);
  --bg-menubar: #f6f1e6;
  --bg-dock: #261c10;
  --bg-sidebar: #f3ede0;
  --bg-workspace: #f8f5ed;
  --bg-surface: #fffdf8;
  --bg-surface-hover: #f4ede0;
  --bg-subtle: #ebe2cf;
  --bg-input: #fffefb;

  --border-window: rgba(66, 46, 18, 0.16);
  --border-color: #dfd5c0;
  --border-strong: #c5b697;

  --text-main: #2b2115;
  --text-secondary: #5c4b37;
  --text-muted: #7d6a53;
  --text-faint: #a3917a;

  --shadow-window: 0 28px 70px -12px rgba(43, 33, 21, 0.25), 0 0 0 1px rgba(66, 46, 18, 0.1);
  --shadow-card: 0 1px 4px rgba(43, 33, 21, 0.07), 0 1px 2px rgba(43, 33, 21, 0.04);
  --shadow-float: 0 20px 45px -10px rgba(43, 33, 21, 0.2), 0 0 0 1px rgba(66, 46, 18, 0.1);
}

/* Buz Mavisi / Ferah Mod (Yumuşak Okyanus & Kristal Mavi Gündüz Teması) */
[data-theme="ice"] {
  color-scheme: light;
  --bg-desktop: #cfe0f2;
  --bg-window: rgba(240, 247, 255, 0.96);
  --bg-titlebar: rgba(226, 238, 252, 0.97);
  --bg-menubar: #e8f2fc;
  --bg-dock: #0c2238;
  --bg-sidebar: #e1eefb;
  --bg-workspace: #ebf4fc;
  --bg-surface: #f8fbff;
  --bg-surface-hover: #e4f0fb;
  --bg-subtle: #d6e8f8;
  --bg-input: #ffffff;

  --border-window: rgba(12, 34, 56, 0.16);
  --border-color: #c2daf0;
  --border-strong: #91bbe2;

  --text-main: #0c2238;
  --text-secondary: #2d4b6b;
  --text-muted: #507091;
  --text-faint: #7b9ec2;

  --shadow-window: 0 28px 70px -12px rgba(12, 34, 56, 0.25), 0 0 0 1px rgba(12, 34, 56, 0.09);
  --shadow-card: 0 1px 4px rgba(12, 34, 56, 0.07), 0 1px 2px rgba(12, 34, 56, 0.04);
  --shadow-float: 0 20px 45px -10px rgba(12, 34, 56, 0.2), 0 0 0 1px rgba(12, 34, 56, 0.09);
}

/* Vurgu Rengi Paletleri */
:root,
[data-accent="indigo"] {
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-light: rgba(79, 70, 229, 0.12);
  --accent-border: rgba(79, 70, 229, 0.32);
  --accent-glow: rgba(79, 70, 229, 0.25);
}
[data-theme="dark"][data-accent="indigo"],
[data-theme="black"][data-accent="indigo"],
[data-theme="graphite"][data-accent="indigo"] {
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-light: rgba(99, 102, 241, 0.16);
  --accent-border: rgba(99, 102, 241, 0.38);
}

[data-accent="emerald"] {
  --accent: #059669;
  --accent-hover: #047857;
  --accent-light: rgba(16, 185, 129, 0.12);
  --accent-border: rgba(16, 185, 129, 0.32);
  --accent-glow: rgba(16, 185, 129, 0.25);
}
[data-theme="dark"][data-accent="emerald"],
[data-theme="black"][data-accent="emerald"],
[data-theme="graphite"][data-accent="emerald"] {
  --accent: #10b981;
  --accent-hover: #34d399;
}

[data-accent="cyan"] {
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-light: rgba(14, 165, 233, 0.12);
  --accent-border: rgba(14, 165, 233, 0.32);
  --accent-glow: rgba(14, 165, 233, 0.25);
}
[data-theme="dark"][data-accent="cyan"],
[data-theme="black"][data-accent="cyan"],
[data-theme="graphite"][data-accent="cyan"] {
  --accent: #0ea5e9;
  --accent-hover: #38bdf8;
}

[data-accent="rose"] {
  --accent: #e11d48;
  --accent-hover: #be123c;
  --accent-light: rgba(225, 29, 72, 0.12);
  --accent-border: rgba(225, 29, 72, 0.32);
  --accent-glow: rgba(225, 29, 72, 0.25);
}
[data-theme="dark"][data-accent="rose"],
[data-theme="black"][data-accent="rose"],
[data-theme="graphite"][data-accent="rose"] {
  --accent: #f43f5e;
  --accent-hover: #fb7185;
}

[data-accent="amber"] {
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-light: rgba(245, 158, 11, 0.12);
  --accent-border: rgba(245, 158, 11, 0.32);
  --accent-glow: rgba(245, 158, 11, 0.25);
}
[data-theme="dark"][data-accent="amber"],
[data-theme="black"][data-accent="amber"],
[data-theme="graphite"][data-accent="amber"] {
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
}

[data-accent="violet"] {
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-light: rgba(139, 92, 246, 0.12);
  --accent-border: rgba(139, 92, 246, 0.32);
  --accent-glow: rgba(139, 92, 246, 0.25);
}
[data-theme="dark"][data-accent="violet"],
[data-theme="black"][data-accent="violet"],
[data-theme="graphite"][data-accent="violet"] {
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
}

[data-accent="slate"] {
  --accent: #475569;
  --accent-hover: #334155;
  --accent-light: rgba(100, 116, 139, 0.14);
  --accent-border: rgba(100, 116, 139, 0.35);
  --accent-glow: rgba(100, 116, 139, 0.25);
}
[data-theme="dark"][data-accent="slate"],
[data-theme="black"][data-accent="slate"],
[data-theme="graphite"][data-accent="slate"] {
  --accent: #94a3b8;
  --accent-hover: #cbd5e1;
}

/* Bronz / Toprak Kahve Vurgu Rengi (Sıcak Altın-Kahve Tonu) */
[data-accent="bronze"] {
  --accent: #8c6222;
  --accent-hover: #734f18;
  --accent-light: rgba(140, 98, 34, 0.13);
  --accent-border: rgba(140, 98, 34, 0.34);
  --accent-glow: rgba(140, 98, 34, 0.25);
}
[data-theme="dark"][data-accent="bronze"],
[data-theme="black"][data-accent="bronze"],
[data-theme="graphite"][data-accent="bronze"] {
  --accent: #d49b43;
  --accent-hover: #e5b363;
  --accent-light: rgba(212, 155, 67, 0.16);
  --accent-border: rgba(212, 155, 67, 0.38);
}

/* Adaçayı Yeşili Vurgu Rengi (Doğal Mint / Adaçayı Yeşili Tonu) */
[data-accent="sage"] {
  --accent: #3b8766;
  --accent-hover: #2e6d51;
  --accent-light: rgba(59, 135, 102, 0.14);
  --accent-border: rgba(59, 135, 102, 0.34);
  --accent-glow: rgba(59, 135, 102, 0.25);
}
[data-theme="dark"][data-accent="sage"],
[data-theme="black"][data-accent="sage"],
[data-theme="graphite"][data-accent="sage"] {
  --accent: #56b38b;
  --accent-hover: #74c6a3;
  --accent-light: rgba(86, 179, 139, 0.16);
  --accent-border: rgba(86, 179, 139, 0.38);
}

/* Tarçın / Kiremit Vurgu Rengi (Sıcak Bakır / Tarçın Tonu) */
[data-accent="terracotta"] {
  --accent: #c26d38;
  --accent-hover: #a65828;
  --accent-light: rgba(194, 109, 56, 0.14);
  --accent-border: rgba(194, 109, 56, 0.34);
  --accent-glow: rgba(194, 109, 56, 0.25);
}
[data-theme="dark"][data-accent="terracotta"],
[data-theme="black"][data-accent="terracotta"],
[data-theme="graphite"][data-accent="terracotta"] {
  --accent: #e08b56;
  --accent-hover: #eba375;
  --accent-light: rgba(224, 139, 86, 0.16);
  --accent-border: rgba(224, 139, 86, 0.38);
}

/* ==========================================================================
   1. TEMEL SIFIRLAMA VE TİPOGRAFİ
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: var(--text-main);
  background-color: var(--bg-desktop);
  user-select: text;
  -webkit-user-select: text;
  -webkit-font-smoothing: antialiased;
}

body.os-wallpaper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-image:
    radial-gradient(at 0% 0%, var(--accent-light) 0px, transparent 45%),
    radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.09) 0px, transparent 45%),
    radial-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 20px 20px;
}

.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace !important;
}

/* Özel İnce Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================================================
   2. ANA MASAÜSTÜ PROGRAM ÇERÇEVESİ (WINDOW SHELL) & LOGIN PENCERESİ
   ========================================================================== */
.os-window {
  width: 100%;
  max-width: 1800px;
  height: calc(100vh - 20px);
  background: var(--bg-window);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-window);
  border-radius: 14px;
  box-shadow: var(--shadow-window);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

/* Yanda Yazısız Kompakt Masaüstü Login Penceresi (login.html için) */
.login-app-window {
  width: 100%;
  max-width: 430px;
  background: var(--bg-surface);
  border: 1px solid var(--border-window);
  border-radius: 16px;
  box-shadow: var(--shadow-window);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: fadeSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-brand-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  color: #ffffff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -4px var(--accent-glow);
}

.login-role-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.role-pill {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.role-pill:hover {
  color: var(--text-main);
}
.role-pill.active {
  background: var(--bg-surface);
  color: var(--accent);
  box-shadow: var(--shadow-card);
}

.os-window.is-maximized {
  max-width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: none;
}

.os-window.is-minimized {
  transform: scale(0.92) translateY(45px);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 991.98px) {
  body.os-wallpaper {
    padding: 0;
  }
  .os-window {
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }
}

@media (max-width: 767.98px) {
  .login-app-window {
    margin: 12px;
  }
}

/* ==========================================================================
   3. PENCERE BAŞLIK ÇUBUĞU (TITLEBAR) VE MENÜ BARI
   ========================================================================== */
.os-titlebar {
  height: 38px;
  background: var(--bg-titlebar);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex-shrink: 0;
  z-index: 30;
}

.os-traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 10px;
}

.traffic-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.traffic-dot:hover {
  transform: scale(1.15);
  filter: brightness(1.1);
}
.traffic-dot.close { background: #ef4444; }
.traffic-dot.min { background: #f59e0b; }
.traffic-dot.max { background: #10b981; }

.os-cmd-trigger {
  width: 100%;
  max-width: 420px;
  height: 26px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.os-cmd-trigger:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

.kbd-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Vurgu Rengi Seçici Noktalar */
.accent-picker {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}
.accent-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease;
  forced-color-adjust: none;
}
.theme-swatch-preview {
  forced-color-adjust: none;
}
.accent-dot.active {
  transform: scale(1.25);
  outline: 2px solid var(--text-main);
  outline-offset: 1px;
}

/* Windows Kontrol Butonları */
.win-controls {
  display: flex;
  align-items: center;
  height: 100%;
  margin-right: -12px;
}
.win-btn {
  width: 38px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.win-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}
.win-btn.close:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Üst Menü & Hızlı Aksiyon Şeridi */
.os-menubar {
  height: 36px;
  background: var(--bg-menubar);
  border-bottom: 1px solid var(--border-color);
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 40;
}

.os-menu-item {
  position: relative;
  flex-shrink: 0;
}
.os-menu-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.14s ease;
}
.os-menu-btn:hover,
.os-menu-btn.active {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.os-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 235px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-float);
  padding: 5px;
  display: none;
  z-index: 60;
}
.os-dropdown.show {
  display: block;
  animation: fadeSlideDown 0.15s ease;
}
.os-dropdown-item {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease;
}
.os-dropdown-item:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}
.os-dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 4px 0;
}

/* ==========================================================================
   4. ÇİFT RAYLI SOL NAVİGASYON (ACTIVITY DOCK + MODULE TREE SIDEBAR)
   ========================================================================== */
.os-body-wrap {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* 4.1 En Sol İkon Rıhtımı (Activity Bar - VS Code / Linear Tarzı) */
.os-activity-dock {
  width: 48px;
  background: var(--bg-dock);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  flex-shrink: 0;
  z-index: 25;
}

.dock-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}
.dock-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}
.dock-btn.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--accent-glow);
}
.dock-btn.active::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #ffffff;
}

/* 4.2 İkincil Modül Ağacı Menüsü (Tree Explorer Sidebar) */
.os-tree-sidebar {
  width: 232px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 20;
}

html:not(.os-ready) .os-tree-sidebar,
html:not(.os-ready) .os-right-panel {
  transition: none !important;
}

@media (min-width: 992px) {
  html[data-left-collapsed="1"] .os-tree-sidebar,
  .os-tree-sidebar.collapsed {
    width: 0 !important;
    border-right: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }
}

.panel-toggle-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.14s ease;
}
.panel-toggle-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent-border);
}

/* Mobil Karartma Arka Planı (Menü Açıkken Dışarı Tıklayınca Kapatır) */
.os-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 13, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.os-mobile-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 991.98px) {
  .os-titlebar {
    height: 44px;
    padding: 0 10px;
  }
  .os-mobile-icon-btn {
    min-width: 30px;
    height: 28px !important;
    padding: 0 8px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
  }
  .os-menubar {
    height: 38px;
    padding: 0 8px;
    gap: 4px;
  }
  .os-menu-btn {
    padding: 5px 8px;
    font-size: 11.5px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 7px;
  }
  .os-menu-btn.active {
    background: var(--accent-light);
    color: var(--accent);
    border-color: var(--accent-border);
  }
  .os-tree-sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 286px !important;
    max-width: 86vw !important;
    z-index: 50;
    box-shadow: var(--shadow-float);
    transform: translateX(-115%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .os-activity-dock ~ .os-tree-sidebar {
    left: 48px;
    max-width: calc(100vw - 48px) !important;
  }
  .os-tree-sidebar.mobile-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border-right: 1px solid var(--border-strong);
  }
  .os-tree-sidebar .tree-item {
    padding: 9px 12px;
    font-size: 12.5px;
    margin: 2px 6px;
  }
}

@media (max-width: 767.98px) {
  .os-menubar .os-dropdown {
    position: fixed;
    top: 84px;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 160px);
    overflow-y: auto;
    z-index: 1050;
    padding: 8px;
    border-radius: 12px;
  }
  .os-menubar .os-dropdown-item {
    padding: 9px 12px;
    font-size: 12.5px;
  }
}

@media (max-width: 575.98px) {
  .os-activity-dock {
    width: 42px;
  }
  .dock-btn {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .os-activity-dock ~ .os-tree-sidebar {
    left: 42px;
    max-width: calc(100vw - 42px) !important;
  }
  .os-viewport {
    padding: 10px;
  }
  .os-menu-btn {
    padding: 4px 6.5px;
    font-size: 11px;
    gap: 3px;
  }
}

.tree-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 10px 12px 4px;
}

.tree-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin: 1px 6px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
}
.tree-item:hover {
  background: var(--bg-surface);
  color: var(--text-main);
}
.tree-item.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
  border: 1px solid var(--accent-border);
}

.tree-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 99px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.tree-submenu {
  margin-left: 18px;
  padding-left: 8px;
  border-left: 1px dashed var(--border-strong);
  display: none;
}
.tree-group.open .tree-submenu {
  display: block;
}
.tree-group .tree-chevron {
  font-size: 9px;
  transition: transform 0.18s ease;
}
.tree-group.open .tree-chevron {
  transform: rotate(90deg);
}

/* ==========================================================================
   5. MDI ÇOKLU SEKME ÇUBUĞU (WORKSPACE TABS) VE İÇERİK ALANI
   ========================================================================== */
.os-main-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-workspace);
  overflow: hidden;
  min-width: 0;
}

.os-tabbar {
  height: 35px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 8px;
  flex-shrink: 0;
  overflow-x: auto;
}

.os-tabs-list {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.os-tab {
  height: 30px;
  padding: 0 11px;
  border-radius: 7px 7px 0 0;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: all 0.12s ease;
}
.os-tab:hover {
  background: var(--bg-surface-hover);
  color: var(--text-main);
}
.os-tab.active {
  background: var(--bg-workspace);
  color: var(--text-main);
  font-weight: 600;
  border-color: var(--border-color);
  border-top: 2px solid var(--accent);
}
.os-tab-close {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--text-muted);
}
.os-tab-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.os-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
}

/* ==========================================================================
   6. KARTLAR, TABLOLAR, KANBAN VE ROZETLER (STUDIO UI COMPONENTS)
   ========================================================================== */
.studio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.studio-card:hover {
  border-color: var(--border-strong);
}

.kpi-card {
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.kpi-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-1px);
}
.kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Butonlar */
.btn-studio {
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.btn-studio:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.btn-studio-primary {
  border: 1px solid transparent;
  background: var(--accent);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 3px 10px var(--accent-glow);
  transition: all 0.14s ease;
}
.btn-studio-primary:hover {
  background: var(--accent-hover);
}

/* Form Elemanları */
.studio-input,
.studio-select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.studio-input:focus,
.studio-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* Veri Tablosu */
.studio-table-wrap {
  overflow-x: auto;
}
.studio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 800px;
}
.studio-table thead th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.studio-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}
.studio-table tbody tr {
  cursor: pointer;
  transition: background 0.12s ease;
}
.studio-table tbody tr:hover {
  background: var(--accent-light);
}

/* Kompakt Tablo Yoğunluğu Modu */
body.density-compact .studio-table tbody td,
body.density-compact .studio-table thead th {
  padding: 5px 10px;
  font-size: 11.5px;
}

/* Durum Rozetleri */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-emerald { background: rgba(16, 185, 129, 0.14); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.28); }
.status-emerald .dot { background: #10b981; }

.status-sky { background: rgba(14, 165, 233, 0.14); color: #0ea5e9; border: 1px solid rgba(14, 165, 233, 0.28); }
.status-sky .dot { background: #0ea5e9; }

.status-indigo { background: rgba(99, 102, 241, 0.14); color: #6366f1; border: 1px solid rgba(99, 102, 241, 0.28); }
.status-indigo .dot { background: #6366f1; }

.status-amber { background: rgba(245, 158, 11, 0.14); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.28); }
.status-amber .dot { background: #f59e0b; }

.status-rose { background: rgba(244, 63, 94, 0.14); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.28); }
.status-rose .dot { background: #f43f5e; }

.status-bronze { background: rgba(140, 98, 34, 0.14); color: #8c6222; border: 1px solid rgba(140, 98, 34, 0.3); }
.status-bronze .dot { background: #8c6222; }

.status-sage { background: rgba(59, 135, 102, 0.14); color: #3b8766; border: 1px solid rgba(59, 135, 102, 0.3); }
.status-sage .dot { background: #3b8766; }

.status-terracotta { background: rgba(194, 109, 56, 0.14); color: #c26d38; border: 1px solid rgba(194, 109, 56, 0.3); }
.status-terracotta .dot { background: #c26d38; }

/* İlerleme Çubuğu */
.progress-track {
  width: 100%;
  height: 6px;
  background: var(--bg-subtle);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* Kanban Sütunları */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(225px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.kanban-col {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 11px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kanban-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.kanban-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

/* ==========================================================================
   7. SAĞ TELEMETRİ PANELİ, DENETÇİ (INSPECTOR) VE ALT KONSOL
   ========================================================================== */
.os-right-panel {
  width: 268px;
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border-color);
  padding: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), padding 0.22s ease, opacity 0.18s ease;
}

@media (min-width: 992px) {
  html[data-right-collapsed="1"] .os-right-panel,
  .os-right-panel.collapsed {
    width: 0 !important;
    border-left: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }
}

@media (max-width: 991.98px) {
  .os-right-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 292px !important;
    max-width: 88vw !important;
    z-index: 50;
    box-shadow: var(--shadow-float);
    transform: translateX(115%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.2s ease;
  }
  .os-right-panel.mobile-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border-left: 1px solid var(--border-strong) !important;
    padding: 12px !important;
  }
}

.os-inspector-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 350px;
  max-width: 92vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-strong);
  box-shadow: var(--shadow-float);
  z-index: 55;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.os-inspector-drawer.open {
  transform: translateX(0);
}

.os-terminal-drawer {
  height: 175px;
  background: #07090e;
  color: #e2e8f0;
  border-top: 1px solid #1e293b;
  display: none;
  flex-direction: column;
  flex-shrink: 0;
}
.os-terminal-drawer.open {
  display: flex;
}

/* Alt Durum Çubuğu (Status Bar) */
.os-statusbar {
  height: 27px;
  background: var(--bg-titlebar);
  border-top: 1px solid var(--border-color);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 30;
}

/* ==========================================================================
   8. NATIVE <DIALOG> MODALLAR (SCROLL CONTAINMENT UYUMLU)
   ========================================================================== */
dialog.studio-dialog {
  padding: 0;
  border: none;
  background: transparent;
  width: calc(100% - 24px);
  max-width: 520px;
  margin: auto;
  outline: none;
  overscroll-behavior: contain;
}
dialog.studio-dialog.dialog-sm {
  max-width: 430px;
}
dialog.studio-dialog:modal {
  overscroll-behavior: contain;
}
dialog.studio-dialog::backdrop {
  background: rgba(6, 8, 13, 0.62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  overflow: hidden;
  overscroll-behavior: contain;
}
.dialog-box {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  animation: fadeSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.dialog-header {
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: pulseLive 2s infinite ease-in-out;
}

/* ==========================================================================
   9. GENİŞLETİLMİŞ BİLEŞEN & SUPERADMIN TABLO / KART UYUMLULUK SINIFLARI
   ========================================================================== */
:root {
  --accent-soft: var(--accent-light);
  --border-subtle: var(--border-color);
  --bg-elevated: var(--bg-subtle);
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.bento-card:hover {
  border-color: var(--border-strong);
}

.kpi-value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}

/* .data-grid ve .studio-table Tam Eşitleme */
.data-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 760px;
}
.data-grid thead th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.data-grid tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}
.data-grid tbody tr {
  transition: background 0.12s ease;
}
.data-grid tbody tr:hover {
  background: var(--accent-light);
}
body.density-compact .data-grid tbody td,
body.density-compact .data-grid thead th {
  padding: 6px 10px;
  font-size: 11.5px;
}

/* Rozet (Badge Pill) Sınıfları */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-emerald { background: rgba(16, 185, 129, 0.14); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.28); }
.badge-sky, .badge-cyan { background: rgba(14, 165, 233, 0.14); color: #0ea5e9; border: 1px solid rgba(14, 165, 233, 0.28); }
.badge-indigo { background: rgba(99, 102, 241, 0.14); color: #6366f1; border: 1px solid rgba(99, 102, 241, 0.28); }
.badge-amber { background: rgba(245, 158, 11, 0.14); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.28); }
.badge-rose { background: rgba(244, 63, 94, 0.14); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.28); }
.badge-bronze { background: rgba(140, 98, 34, 0.14); color: #8c6222; border: 1px solid rgba(140, 98, 34, 0.3); }
.badge-sage { background: rgba(59, 135, 102, 0.14); color: #3b8766; border: 1px solid rgba(59, 135, 102, 0.3); }
.badge-terracotta { background: rgba(194, 109, 56, 0.14); color: #c26d38; border: 1px solid rgba(194, 109, 56, 0.3); }

/* Ek Buton & Form Sınıfları */
.btn-studio-danger {
  border: 1px solid rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e !important;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.14s ease;
}
.btn-studio-danger:hover {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff !important;
}

.btn-studio-ghost {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
.btn-studio-ghost:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.studio-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

/* Yardımcı Metin Renkleri */
.text-main { color: var(--text-main) !important; }
.text-indigo { color: var(--accent) !important; }
.text-emerald { color: #10b981 !important; }
.text-rose { color: #f43f5e !important; }
.text-amber { color: #f59e0b !important; }
.text-cyan { color: #0ea5e9 !important; }

/* Dialog Box Doğrudan Alt Sınıfları (.studio-dialog-header / body / footer) */
dialog.studio-dialog:not(:has(.dialog-box)) {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.studio-dialog-header {
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.studio-dialog-body {
  padding: 16px;
  background: var(--bg-surface);
}
.studio-dialog-footer {
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* ==========================================================================
   10. MOBİL SABİT ALT MENÜ (NATIVE BOTTOM NAV) & MOBİL ERGONOMİ
   ========================================================================== */
.os-mobile-bottom-nav {
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  flex-shrink: 0;
  z-index: 45;
  position: relative;
}

.mobile-nav-item {
  border: none;
  background: transparent;
  color: var(--text-muted);
  height: 56px;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.16s ease, transform 0.14s ease;
  text-decoration: none;
}

.mobile-nav-item i {
  font-size: 15.5px;
  line-height: 1;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-item:active {
  transform: scale(0.94);
}

.mobile-nav-item.active {
  color: var(--accent);
  font-weight: 700;
}

.mobile-nav-item.active i {
  transform: translateY(-1px);
}

.mobile-nav-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24%;
  right: 24%;
  height: 2.5px;
  border-radius: 0 0 4px 4px;
  background: var(--accent);
}

/* Merkez Hızlı İşlem (+) FAB Butonu */
.mobile-nav-center-action {
  color: var(--text-main);
}

.mobile-nav-fab {
  width: 38px;
  height: 38px;
  margin-top: -15px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px var(--accent-glow), 0 0 0 3px var(--bg-surface);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s ease;
}

.mobile-nav-fab i {
  font-size: 15px !important;
  color: #ffffff !important;
}

.mobile-nav-center-action:hover .mobile-nav-fab,
.mobile-nav-center-action:active .mobile-nav-fab {
  transform: scale(1.06) translateY(-1px);
}

/* Mobil Alt Menü Bildirim Rozeti */
.mobile-nav-badge {
  position: absolute;
  top: -6px;
  right: -11px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 2px 4.5px;
  border-radius: 99px;
  color: #ffffff;
  box-shadow: 0 0 0 2px var(--bg-surface);
}

/* Mobil Hızlı İşlem Kartları (Bottom Sheet) */
.mobile-quick-card {
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  border-radius: 11px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mobile-quick-card:hover,
.mobile-quick-card:active {
  background: var(--bg-surface-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.mobile-quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  dialog.mobile-sheet-dialog {
    margin: auto auto 12px auto;
    width: calc(100% - 20px);
    max-width: 480px;
  }
  #studioToastBox {
    bottom: 62px !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .studio-input,
  .studio-select {
    padding: 7px 10px;
    font-size: 13px;
  }
  .btn-studio,
  .btn-studio-primary,
  .btn-studio-danger {
    padding: 6px 11px;
  }
  .studio-table {
    min-width: 560px;
  }
  .studio-table.table-compact-mobile {
    min-width: 100%;
  }
}


