/* aerOS QR Menü — shared design system tokens & base
   Built on the "Mal Giriş" visual language: system font, slate scale,
   8–12px radii, tabular-nums, light/dark. Adds --brand-* for tenant theming. */

:root {
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-num: var(--font);

  /* neutral surfaces */
  --bg-0: #ffffff;        /* cards / top layers */
  --bg-1: #ffffff;        /* inputs */
  --bg-2: #f4f5f7;        /* app canvas */
  --bg-3: #eef0f3;        /* sunken / hover */

  /* text */
  --fg-1: #0f172a;
  --fg-2: #475569;
  --fg-3: #94a3b8;

  /* lines */
  --border: #e4e7ec;
  --border-strong: #cbd5e1;

  /* platform accent (slate, for superadmin chrome) — overridable */
  --accent: #334155;
  --accent-2: #1e293b;
  --accent-soft: #eef2f6;
  --accent-ring: rgba(51, 65, 85, 0.18);
  --on-accent: #ffffff;

  /* brand accent (tenant-driven, defaults to accent) */
  --brand: var(--accent);
  --brand-2: var(--accent-2);
  --brand-soft: var(--accent-soft);
  --brand-ring: var(--accent-ring);
  --on-brand: var(--on-accent);

  /* status */
  --ok: #108e60;       --ok-soft: #e7f6ef;
  --warn: #d97706;     --warn-soft: #fef3c7;
  --danger: #dc2626;   --danger-soft: #fde8e8;
  --info: #2f5bff;     --info-soft: #eef2ff;

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.08);
  --shadow-lg: 0 12px 40px rgba(15,23,42,0.16);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
}

[data-theme="dark"] {
  --bg-0: #1a1e28;
  --bg-1: #151821;
  --bg-2: #0e1016;
  --bg-3: #1f2430;

  --fg-1: #e6e8ee;
  --fg-2: #a1a8b5;
  --fg-3: #6b7280;

  --border: #272c38;
  --border-strong: #3a414f;

  --accent: #94a3b8;
  --accent-2: #cbd5e1;
  --accent-soft: #232a36;
  --accent-ring: rgba(148, 163, 184, 0.22);
  --on-accent: #0e1016;

  --ok: #34d399;       --ok-soft: #0c2c22;
  --warn: #f59e0b;     --warn-soft: #3a2408;
  --danger: #f87171;   --danger-soft: #3a1414;
  --info: #7b9bff;     --info-soft: #1a2140;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg-2);
  color: var(--fg-1);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,h2,h3,h4,h5 { margin: 0; font-weight: 600; }
input, select, textarea, button { font-family: inherit; }
a { color: inherit; }
.tnum { font-variant-numeric: tabular-nums; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 10px;
  border: 2px solid var(--bg-2);
}

@keyframes ds-skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes ds-spin { to { transform: rotate(360deg); } }
@keyframes ds-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ds-slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ds-toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes ds-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
