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

:root {
  --font-size: 14px;
  --background: #ffffff;
  --foreground: oklch(0.145 0 0);
  --card: #ffffff;
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: #2D5B87;
  --primary-foreground: #ffffff;
  --secondary: #F4F6F9;
  --secondary-foreground: #2D5B87;
  --muted: #F4F6F9;
  --muted-foreground: #6B7888;
  --accent: #E67E47;
  --accent-foreground: #ffffff;
  --destructive: #d4183d;
  --destructive-foreground: #ffffff;
  --border: rgba(45, 91, 135, 0.15);
  --input: transparent;
  --input-background: #F4F6F9;
  --switch-background: #E0E5EA;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: #2D5B87;
  --chart-1: #2D5B87;
  --chart-2: #E67E47;
  --chart-3: #4A90A4;
  --chart-4: #F4B860;
  --chart-5: #8FB4CB;
  --radius: 0.625rem;
  --sidebar: #F9FAFB;
  --sidebar-foreground: #2D5B87;
  --sidebar-primary: #2D5B87;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #F4F6F9;
  --sidebar-accent-foreground: #2D5B87;
  --sidebar-border: rgba(45, 91, 135, 0.15);
  --sidebar-ring: #2D5B87;
}

.dark {
  --background: #1A2B3A;
  --foreground: #F9FAFB;
  --card: #1A2B3A;
  --card-foreground: #F9FAFB;
  --popover: #1A2B3A;
  --popover-foreground: #F9FAFB;
  --primary: #4A90A4;
  --primary-foreground: #F9FAFB;
  --secondary: #2D5B87;
  --secondary-foreground: #F9FAFB;
  --muted: #2D5B87;
  --muted-foreground: #8FB4CB;
  --accent: #E67E47;
  --accent-foreground: #F9FAFB;
  --destructive: #EF4444;
  --destructive-foreground: #F9FAFB;
  --border: rgba(74, 144, 164, 0.3);
  --input: rgba(74, 144, 164, 0.3);
  --ring: #4A90A4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --chart-1: #4A90A4;
  --chart-2: #E67E47;
  --chart-3: #8FB4CB;
  --chart-4: #F4B860;
  --chart-5: #2D5B87;
  --sidebar: #0F1419;
  --sidebar-foreground: #F9FAFB;
  --sidebar-primary: #4A90A4;
  --sidebar-primary-foreground: #F9FAFB;
  --sidebar-accent: #2D5B87;
  --sidebar-accent-foreground: #F9FAFB;
  --sidebar-border: rgba(74, 144, 164, 0.3);
  --sidebar-ring: #4A90A4;
}

@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;
  }
}

/* Hide scrollbar utility for horizontal scrolling */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/**
 * 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);
}

/* Basic color utility classes to style the search form */
.bg-primary {
  background-color: var(--primary);
  color: inherit;
}

.text-primary {
  color: var(--primary);
}

.text-primary-foreground,
.text-white {
  color: #ffffff;
}

a.text-white:not(.bg-primary):hover {
  background: #fff !important;
  color: var(--primary) !important;
}

.bg-muted {
  background-color: var(--muted);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.bg-white {
  background-color: #ffffff;
}

#mobile-menu {
  transform: translateX(100%);
  pointer-events: none;
}

#mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}