/* Design tokens and color system - adapted from React project */

:root {
  --font-size: 16px;
  /* Surface colors */
  --background: #FFFFFF; /* Surface white */
  --card: #F5F7F8; /* Surface light */
  --card-foreground: #000000; /* Text primary */
  --popover: #FFFFFF;
  --popover-foreground: #000000;
  
  /* Text colors */
  --foreground: #000000; /* Text primary */
  --primary: #000000; /* Text primary */
  --primary-foreground: #FFFFFF;
  --secondary: #2B2B2B; /* Text secondary */
  --secondary-foreground: #FFFFFF;
  --muted-foreground: #6B6F73; /* Muted text */
  
  /* Accent colors */
  --accent: #005F6A; /* Accent primary */
  --accent-foreground: #FFFFFF;
  --accent-dark: #004A53; /* Accent dark - hover states, emphasis */
  --accent-light: #3A8F98; /* Accent light - secondary buttons, icons */
  --accent-soft: #D9ECEE; /* Accent soft - background tints, info panels */
  
  /* Muted/background colors */
  --muted: #D9ECEE; /* Accent soft for subtle fills */
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: #D1D5D8; /* Border / divider */
  --input: transparent;
  --input-background: #F5F7F8; /* Surface light */
  --switch-background: #cbced4;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: #030213;
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);

  /* Color aliases for easier use */
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-accent-dark: var(--accent-dark);
  --color-accent-light: var(--accent-light);
  --color-accent-soft: var(--accent-soft);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-input-background: var(--input-background);
  --color-switch-background: var(--switch-background);
  --color-ring: var(--ring);
  --color-accent-rgb: 0, 95, 106; /* #005F6A */

  /* Border radius variants */
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  /* Typography scale - inspired by Workoholics */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.125rem; /* Increased from 1rem */
  --text-lg: 1.25rem; /* Increased from 1.125rem */
  --text-xl: 1.5rem; /* Increased from 1.25rem */
  --text-2xl: 1.875rem; /* Increased from 1.5rem */
  --text-3xl: 2.5rem; /* Increased from 1.875rem */
  --text-4xl: 3rem; /* Increased from 2.25rem */
  --text-5xl: 4rem; /* Increased from 3rem */
  --text-6xl: 5rem; /* Increased from 3.75rem */
  --text-7xl: 6rem; /* Increased from 4.5rem */
  --text-8xl: 8rem; /* Increased from 6rem */

  /* Spacing scale */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* Animation durations */
  --duration-fast: 0.15s;
  --duration-normal: 0.25s;
  --duration-slow: 0.4s;
  --duration-slower: 0.6s;

  /* Animation easings */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}


/* Base styles */
* {
  border-color: var(--color-border);
}

*:focus-visible {
  outline-color: var(--color-ring);
}

body {
  background-color: var(--color-background);
  color: var(--color-foreground);
}

html {
  font-size: var(--font-size);
}

/* Typography defaults */
h1 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

h4 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

label {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

button {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

input {
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
}

