/* ==========================================================================
   ARGE CRM V4 — CANONICAL DESIGN TOKENS
   Kaynak: ARGE_CRM_V4_REHBER.md v1.1 §4
   Bu dosya kullanıcı onayı olmadan değiştirilemez.
   ========================================================================== */

:root {
  /* Tipografi */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* === KANITLI RENKLER — REHBER §4 === */

  /* Uygulama zemini */
  --color-bg-app:        #F5F6F4;
  --color-bg-surface:    #FFFFFF;
  --color-bg-muted:      #F8F9F7;
  --color-border:        #DFE3E0;

  /* Metin */
  --color-text-primary:   #17202A;
  --color-text-secondary: #53606B;
  --color-text-muted:     #697079;
  --color-text-disabled:  #98A2B3;

  /* Ana aksiyon rengi — petrol teal (SaaS mavisi DEĞİL) */
  --color-primary:        #0F6B63;
  --color-primary-hover:  #0B5953;
  --color-primary-soft:   #E8F3F1;
  --color-primary-border: #BFDCD7;

  /* Durum renkleri */
  --color-info:           #356A9A;
  --color-success:        #278653;
  --color-success-soft:   #ECFDF5;
  --color-warning:        #9A6418;   /* yalnız soft-badge'de kullanılır */
  --color-warning-soft:   #FFF7E8;
  --color-danger:         #C54444;
  --color-danger-soft:    #FEF2F2;
  --color-neutral:        #667085;

  /* Sidebar — koyu petrol */
  --color-sidebar-bg:     #12212B;
  --color-sidebar-text:   #C7D0D5;
  --color-sidebar-muted:  #7F929C;
  --color-sidebar-hover:  #192C37;
  --color-sidebar-active: #203A43;
  --color-sidebar-accent: #4DAA9F;

  /* === BOYUTLAR === */
  --sidebar-w:            260px;
  --sidebar-w-tablet:     240px;
  --topbar-h:             60px;

  /* Spacing sistemi */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Radius */
  --radius-input:  6px;
  --radius-sm:     8px;
  --radius-md:     10px;
  --radius-lg:     12px;

  /* Tipografi rolleri (REHBER 4: sayfa basligi 20-22px, bolum basligi 14-16px). Basliklar bu rollerden beslenir. */
  --font-page-title:    20px;
  --font-section-title: 15px;

  /* Icerik alaninin yatay boslugu: .content-stage ve kabuk bantlari (aktif sirket cipi/banti) AYNI degeri kullanir.
     Dar ekranda responsive.css ayni degiskeni gunceller. */
  --stage-pad-x: 28px;

  /* Gölge — yalnız gerçek katman farkında */
  --shadow-dropdown: 0 4px 12px rgba(23,32,42,.10);
  --shadow-modal:    0 8px 24px rgba(23,32,42,.15);
  --shadow-drawer:   -8px 0 24px rgba(23,32,42,.10);

  /* Geçişler */
  --transition-fast:   all 0.15s ease;
  --transition-smooth: all 0.25s cubic-bezier(0.16,1,0.3,1);
  --ease-spring:       cubic-bezier(0.16,1,0.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-bg-app);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, textarea, select { font: inherit; color: inherit; }

kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--color-text-secondary);
  font-weight: 700;
}

/* Base Shell */
.crm-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
