/*
 * Design tokens copied from the jiraia web app (web/src/styles/tokens.css,
 * Jimble Design System + "Sinal" identity), so J-Log looks the same.
 * Only the tokens used here were kept. Light is the default; `.dark` on
 * <html> switches to the dark theme.
 */

.light,
:root {
  color-scheme: light;

  --background: #f5f8fa;
  --foreground: #0c1b26;
  --foreground-alt: #354550;
  --primary: #027260;
  --primary-foreground: #ffffff;
  --primary-hover: #055749;
  --secondary: #eff4f8;
  --secondary-foreground: #0c1b26;
  --secondary-hover: #f5f8fa;
  --muted: #eff4f8;
  --muted-foreground: #576570;
  --mid-alt: #4e5d68;
  --accent: #eff4f8;
  --accent-foreground: #0c1b26;
  --border: #d9e1e6;
  --border-strong: #c6cfd6;
  --input: #c6cfd6;
  --ring: #028f78;
  --ring-error: #fca5a5;
  --surface-3: #d9e1e6;
  --disabled-foreground: #c6cfd6;
  --backdrop: #00000099;

  --ghost-foreground: #354550;
  --ghost-hover: #00000008;
  --outline: #00000000;
  --outline-hover: #00000008;
  --outline-active: #0000000d;

  --card: #ffffff;
  --card-foreground: #0c1b26;
  --popover: #ffffff;
  --popover-foreground: #0c1b26;

  --destructive: #b91c1c;
  --destructive-foreground: #ffffff;
  --destructive-border: #dc2626;
  --destructive-text: #b91c1c;
  --destructive-subtle: #fef2f2;
  --success: #15803d;
  --success-foreground: #ffffff;
  --success-border: #16a34a;
  --success-text: #15803d;
  --success-subtle: #f0fdf4;
  --warning: #d97706;
  --warning-foreground: #0a0a0a;
  --warning-border: #d97706;
  --warning-text: #b45309;
  --warning-subtle: #fffbeb;
  --info: #3161e5;
  --info-foreground: #ffffff;
  --info-border: #3161e5;
  --info-text: #294ed4;
  --info-subtle: #eef4fd;

  --sidebar: #f3f6f9;
  --sidebar-foreground: #354550;
  --sidebar-muted: #576570;
  --sidebar-accent: #dcf7ef;
  --sidebar-accent-foreground: #0c1b26;
  --sidebar-primary: #027260;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-border: #d9e1e6;
  --sidebar-ring: #028f78;

  --topbar: #091923;
  --topbar-foreground: #f1f4f6;

  --brand: #028f78;
  --brand-text: #027260;
  --brand-subtle: #e8fcf6;
  --brand-mark: #13222d;
  --brand-dot: #44ceb1;
  --brand-on-inverse: #75dec5;
  --sidebar-hover: #eaeff3;

  --radius: 0.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 320ms;
}

.dark {
  color-scheme: dark;

  --background: #07141d;
  --foreground: #f1f4f6;
  --foreground-alt: #c6cfd6;
  --primary: #44ceb1;
  --primary-foreground: #022821;
  --primary-hover: #75dec5;
  --secondary: #1b2a34;
  --secondary-foreground: #f1f4f6;
  --secondary-hover: #283742;
  --muted: #1b2a34;
  --muted-foreground: #9aa7b0;
  --mid-alt: #9aa7b0;
  --accent: #1b2a34;
  --accent-foreground: #f1f4f6;
  --border: #ffffff1a;
  --border-strong: #303f4b;
  --input: #ffffff26;
  --ring: #10b195;
  --ring-error: #ef4444;
  --surface-3: #0f1e28;
  --disabled-foreground: #4e5d68;
  --backdrop: #00000099;

  --ghost-foreground: #c6cfd6;
  --ghost-hover: #ffffff1a;
  --outline: #ffffff0d;
  --outline-hover: #ffffff1a;
  --outline-active: #ffffff26;

  --card: #0f1e28;
  --card-foreground: #f1f4f6;
  --popover: #14222d;
  --popover-foreground: #f1f4f6;

  --destructive: #f87171;
  --destructive-foreground: #ffffff;
  --destructive-border: #ef4444;
  --destructive-text: #fca5a5;
  --destructive-subtle: #450a0a;
  --success: #86efac;
  --success-foreground: #0a0a0a;
  --success-border: #22c55e;
  --success-text: #86efac;
  --success-subtle: #052e16;
  --warning: #f59e0b;
  --warning-foreground: #0a0a0a;
  --warning-border: #f59e0b;
  --warning-text: #fcd34d;
  --warning-subtle: #451a03;
  --info: #427eef;
  --info-foreground: #ffffff;
  --info-border: #427eef;
  --info-text: #90bdf4;
  --info-subtle: #1a2553;

  --sidebar: #0a1923;
  --sidebar-foreground: #f1f4f6;
  --sidebar-muted: #9aa7b0;
  --sidebar-accent: #10352d;
  --sidebar-accent-foreground: #f1f4f6;
  --sidebar-primary: #44ceb1;
  --sidebar-primary-foreground: #022821;
  --sidebar-border: #ffffff1a;
  --sidebar-ring: #10b195;

  --topbar: #0a1923;
  --topbar-foreground: #f1f4f6;

  --brand: #44ceb1;
  --brand-text: #75dec5;
  --brand-subtle: #072d26;
  --brand-mark: #1b2a34;
  --brand-dot: #44ceb1;
  --brand-on-inverse: #027260;
  --sidebar-hover: #1b2a34;
}
