@import url("./fonts.css");

/* Fonts come from fonts.css, stored with the app: Asen Pro (licensed) for headers/titles
   (--font-display), Space Mono for body text (--font-body), Cairo as the Arabic fallback. */
:root {
  /* Brand primitives */
  --obsidian: #000000;
  --pearl: #f5f8fc;
  --quantum-blue: #0033b5;
  --neon-pulse: #00c6ff;
  --cloud-alloy: #c5d4e3;
  --graphite: #5e5e5e;
  --deep-core: #2b2b2b;

  /* Quantum Blue ramp */
  --quantum-100: #e3eaf9;
  --quantum-200: #b9c9ef;
  --quantum-300: #7d99df;
  --quantum-400: #3a63c9;
  --quantum-500: #0033b5;
  --quantum-600: #002a95;
  --quantum-700: #001f6e;
  --quantum-800: #00154a;
  --quantum-900: #000d2c;

  /* Neon Pulse ramp */
  --neon-100: #dcf6ff;
  --neon-200: #a8e9ff;
  --neon-300: #5cd8ff;
  --neon-500: #00c6ff;
  --neon-600: #00a0d1;
  --neon-700: #0079a0;

  /* Status (derived, functional only) */
  --status-positive: #00c68a;
  --status-warning: #ffb300;
  --status-danger: #ff4d4d;
  --status-info: var(--neon-pulse);

  /* Tint = the ink laid over the page to lift or sink a surface. Every "translucent
     white" surface, border, and hairline in this file goes through one of these. */
  --tint-3: rgba(245, 248, 252, 0.03);
  --tint-4: rgba(245, 248, 252, 0.04);
  --tint-5: rgba(245, 248, 252, 0.05);
  --tint-6: rgba(245, 248, 252, 0.06);
  --tint-7: rgba(245, 248, 252, 0.07);
  --tint-8: rgba(245, 248, 252, 0.08);
  --tint-10: rgba(245, 248, 252, 0.10);
  --tint-14: rgba(245, 248, 252, 0.14);
  --tint-18: rgba(245, 248, 252, 0.18);
  --tint-24: rgba(245, 248, 252, 0.24);

  /* A dark overlay used as a "recessed" surface (e.g. .card.outline). Distinct from the
     tint scale because it sinks with black rather than just changing opacity. */
  --scrim-soft: rgba(0, 0, 0, 0.35);

  /* Semantic surface/text tokens - dark (Obsidian) is the only register. */
  --bg-page: #000000;
  --bg-surface: #0a0d14;
  --bg-surface-sunken: var(--tint-6);
  --surface-card: var(--tint-4);
  --surface-card-strong: var(--tint-7);
  --surface-card-soft: var(--tint-3);
  --bg-accent-quiet: rgba(0, 51, 181, 0.18);
  --bg-positive-quiet: rgba(0, 198, 138, 0.14);
  --border-subtle: var(--tint-14);
  --border-strong: var(--tint-24);
  --text-heading: #f5f8fc;
  --text-body-color: #c5d4e3;
  --text-muted: #8593a3;
  --text-accent: #00c6ff;
  --text-positive: #00c68a;
  --focus-ring: #00c6ff;

  /* Gradients - used only in these five roles, nowhere else */
  --gradient-page:
    radial-gradient(circle at top left, rgba(0, 51, 181, 0.22), transparent 38%),
    radial-gradient(circle at top right, rgba(0, 198, 255, 0.10), transparent 30%),
    linear-gradient(180deg, #000000 0%, #030509 60%, #000000 100%);
  --gradient-card: linear-gradient(200deg, #05070d 0%, #001f6e 45%, #0033b5 72%, #00c6ff 100%);
  --gradient-card-soft: linear-gradient(180deg, #0b1020 0%, #002a95 70%, #0089d6 100%);
  --gradient-headline: linear-gradient(90deg, #f5f8fc 0%, #93a9e6 45%, #0033b5 100%);
  --gradient-rule: linear-gradient(90deg, #0033b5 0%, #00c6ff 60%, rgba(0, 198, 255, 0) 100%);
  --scrim-image: linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .72) 45%, rgba(0, 0, 0, 0) 100%);

  /* Elevation: glow on resting surfaces, real shadow only for true overlays */
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
  --glow-quantum: 0 0 48px rgba(0, 51, 181, 0.45);
  --glow-neon: 0 0 24px rgba(0, 198, 255, 0.45);
  --inset-hairline: inset 0 1px 0 var(--tint-10);

  /* Typography */
  --font-display: "Asen Pro", "Cairo", "Segoe UI", "Segoe UI Variable Display", sans-serif;
  --font-body: "Space Mono", "Cairo", "Segoe UI", "Segoe UI Variable Text", monospace;
  --font-mono: "Space Mono", "Segoe UI", monospace;
  --text-display: 72px;
  --text-headline: 53px;
  --text-subheadline: 32px;
  --text-highlight: 26px;
  --text-body-title: 18px;
  --text-micro: 11px;
  --text-label: 13px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --leading-tight: 1.02;
  --leading-headline: 1.08;
  --leading-snug: 1.25;
  --leading-body: 1.55;
  --leading-loose: 1.7;
  --tracking-wordmark: 0.42em;
  --tracking-eyebrow: 0.22em;
  --tracking-label: 0.08em;
  --tracking-headline: -0.01em;
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-card: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Motion */
  --ease-standard: cubic-bezier(.2, .8, .2, 1);
  --duration-hover: 140ms;
  --duration-standard: 220ms;
  --duration-entrance: 420ms;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--gradient-page);
  color: var(--text-body-color);
  font-family: var(--font-body);
  font-weight: var(--weight-light);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0 0, rgba(0, 51, 181, 0.14), transparent 22%),
    radial-gradient(circle at 100% 0, rgba(0, 198, 255, 0.10), transparent 18%),
    var(--gradient-page);
}

.survey-app-shell {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.88) 100%),
    url("../Assets/BG-blue.jpg") center / cover no-repeat fixed;
}

.dashboard-shell {
  min-height: 100vh;
  display: flex;
}

.rail {
  width: 232px;
  flex: 0 0 auto;
  padding: 24px 16px;
  border-right: 1px solid var(--border-subtle);
  background: var(--surface-card-strong);
  backdrop-filter: blur(18px);
}

.rail-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 8px 12px 24px;
  color: var(--text-heading);
}

.rail-logo-copy {
  align-items: center;
  text-align: center;
}

.rail-logo-img {
  height: 34px;
  width: auto;
  filter: contrast(1.35) brightness(1.08);
}

.brand-logo {
  height: 28px;
  width: auto;
  filter: contrast(1.35) brightness(1.08);
}

