/* OneTwin Ops Console — design tokens (source: design_handoff_ops_console/README.md) */
:root {
  /* surfaces */
  --bg:        #0b0d11;  /* page background */
  --surface:   #0e1116;  /* cards, tables */
  --surface-2: #11141a;  /* table header rows, inputs on cards */
  --surface-3: #161a22;  /* popovers, thumbnails */
  --input-bg:  #0b0d11;  /* inputs inside panels */
  --panel:     #101319;  /* modal / dialog body */

  /* borders */
  --border:       #1f242e;
  --border-soft:  #171c25;  /* row separators */
  --border-hard:  #232936;  /* frame/popover borders */
  --border-input: #2a3140;

  /* text */
  --text:       #e9ecf2;
  --text-2:     #c3c9d6;
  --text-muted: #8b94a7;
  --text-faint: #5b6373;
  --text-ghost: #3f4654;

  /* accent + signals */
  --accent:        #ffc53d;             /* amber — primary actions, active nav */
  --accent-hover:  #ffd76e;
  --accent-ink:    #14161b;             /* text on amber */
  --accent-dim:    rgba(255,197,61,.08);/* active nav bg, selected row tint */
  --accent-border: rgba(255,197,61,.4);
  --ok:      #4ade80;  --ok-bg:  rgba(74,222,128,.1);  --ok-border:  rgba(74,222,128,.3);
  --danger:  #f87171;  --danger-bg: rgba(248,113,113,.07); --danger-border: rgba(248,113,113,.25);

  /* type */
  --font-ui:   'Space Grotesk', sans-serif;   /* headings, labels, body */
  --font-mono: 'JetBrains Mono', monospace;   /* all data: emails, dates, versions, codes, counters, micro-labels */

  /* radii */
  --r-sm: 4px; --r-md: 6px; --r-lg: 8px; --r-xl: 10px; --r-modal: 12px;

  /* motion */
  --dur-fast: 120ms; --dur-base: 200ms; --dur-slow: 320ms;
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* scrim — uygulamadaki HER tam ekran ortme katmani bu ikisini kullanir
     (modal scrim'leri, surukle-birak ortusu). Tek yerden degistir. */
  --scrim-blur: 6px;
  --scrim-tint: rgba(5,7,10,.55);

  /* analytics charts — categorical slots in fixed order (dataviz reference palette, dark steps;
     validated on --surface #0e1116: CVD worst adjacent ΔE 8.4, normal-vision 19.3, all >= 3:1).
     A single series uses --accent; never cycle past slot 6 (fold into "Other"). */
  --series-1: #3987e5;  /* blue */
  --series-2: #d95926;  /* orange */
  --series-3: #199e70;  /* aqua */
  --series-4: #c98500;  /* yellow */
  --series-5: #d55181;  /* magenta */
  --series-6: #0ca30c;  /* green */
  --series-avg: #8b94a7; /* thin all-users average line */
  --chart-grid: #1a1f29;
  --chart-axis: #2a3140;
  /* sequential (heat map): one hue, near-zero recedes into the surface */
  --heat-0: #131720;
  --heat-1: #0d366b;
  --heat-2: #184f95;
  --heat-3: #256abf;
  --heat-4: #3987e5;
  --heat-5: #86b6ef;
}

/* Universal color/state transition — every UI state change animates */
.anim, button, a, input, textarea, select, .row, .chip, .nav-item {
  transition: color var(--dur-base) var(--ease),
              background-color var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              opacity var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
/* fill-mode `backwards`, `both` DEGIL: `both` bittikten sonra da `to` karesini
   uygulamaya devam eder, bu da paneli hem position:fixed icin containing block
   hem de backdrop-filter icin backdrop root yapar — icindeki modal scrim'leri
   sekmeye hapsolur ve blur sekme disini oremez. `backwards` yalnizca baslangictan
   once `from` karesini uygular, bittiginde element temel stiline doner. */
.tab-panel-enter { animation: panel-in var(--dur-slow) var(--ease) backwards; }

@keyframes flash-amber {
  from { background-color: rgba(255,197,61,.14); }
  to   { background-color: rgba(255,197,61,.03); }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur-base: 0ms; --dur-slow: 0ms; }
  *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
}
