@custom-variant dark (&:is(.dark *));

:root {
  --font-size: 16px;
  --background: #ffffff;
  --foreground: #172F42;
  --card: #ffffff;
  --card-foreground: #172F42;
  --popover: #ffffff;
  --popover-foreground: #172F42;
  --primary: #065897;
  --primary-foreground: #ffffff;
  --secondary: #3BC4FF;
  --secondary-foreground: #172F42;
  --muted: #f0f9ff;
  --muted-foreground: #2688CF;
  --accent: #FEB600;
  --accent-foreground: #172F42;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(6, 88, 151, 0.2);
  --input: transparent;
  --input-background: #f8fafc;
  --switch-background: #3BC4FF;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: #065897;
  --chart-1: #065897;
  --chart-2: #3BC4FF;
  --chart-3: #FEB600;
  --chart-4: #2688CF;
  --chart-5: #172F42;
  --radius: 0.625rem;
  --sidebar: #f8fafc;
  --sidebar-foreground: #172F42;
  --sidebar-primary: #065897;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #3BC4FF;
  --sidebar-accent-foreground: #172F42;
  --sidebar-border: rgba(6, 88, 151, 0.2);
  --sidebar-ring: #065897;
}

.dark {
  --background: #172F42;
  --foreground: #ffffff;
  --card: #172F42;
  --card-foreground: #ffffff;
  --popover: #172F42;
  --popover-foreground: #ffffff;
  --primary: #3BC4FF;
  --primary-foreground: #172F42;
  --secondary: #2688CF;
  --secondary-foreground: #ffffff;
  --muted: rgba(59, 196, 255, 0.1);
  --muted-foreground: #3BC4FF;
  --accent: #FEB600;
  --accent-foreground: #172F42;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(59, 196, 255, 0.3);
  --input: rgba(59, 196, 255, 0.1);
  --ring: #3BC4FF;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --chart-1: #3BC4FF;
  --chart-2: #FEB600;
  --chart-3: #2688CF;
  --chart-4: #065897;
  --chart-5: #ffffff;
  --sidebar: #172F42;
  --sidebar-foreground: #ffffff;
  --sidebar-primary: #3BC4FF;
  --sidebar-primary-foreground: #172F42;
  --sidebar-accent: rgba(59, 196, 255, 0.1);
  --sidebar-accent-foreground: #ffffff;
  --sidebar-border: rgba(59, 196, 255, 0.3);
  --sidebar-ring: #3BC4FF;
}

@theme inline {
  --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-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-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }

  body {
    @apply bg-background text-foreground;
  }
}

/**
 * Base typography. This is not applied to elements which have an ancestor with a Tailwind text class.
 */
@layer base {
  :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) {
    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;
    }

    p {
      font-size: var(--text-base);
      font-weight: var(--font-weight-normal);
      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;
    }
  }
}

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