@import "tailwindcss";

/* =========================
   Design Tokens
   ========================= */
:root {
  --background: #ffffff;
  --foreground: #171717;

  /* Brand colors */
  --primary: #502888;
  --secondary: #272825;
  --accent: #B4E95C;
  --muted: #9ca3af;

  font-family: var(--font-app), system-ui, sans-serif;
}

/* =========================
   Tailwind Theme Mapping
   ========================= */
@theme inline {
  /* Colors */
  --color-background: var(--background);
  --color-foreground: var(--foreground);

  --color-primary: var(--primary);
  --color-secondary: var(--secondary);
  --color-accent: var(--accent);
  --color-muted: var(--muted);

  /* Fonts */
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

/* =========================
   Dark Mode
   ========================= */
  @media (prefers-color-scheme: dark) {
    :root {
      --background: #0a0a0a;
      --foreground: #ededed;

      /* Optional dark brand tweaks */
      --primary: #502888;
      --secondary: #272825;
    }
  }

/* =========================
   Base Styles
   ========================= */
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-app), system-ui, sans-serif;
}

/* =========================
   Utilities
   ========================= */
.transition-bg {
  transition: background-color 0.8s ease;
}

.scrollbar-hide {
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.overscroll-contain {
  overscroll-behavior: contain;
}

/* Remove blue autofill background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  -webkit-text-fill-color: #374151 !important;
  box-shadow: 0 0 0px 1000px #ffffff inset !important;
  transition: background-color 5000s ease-in-out 0s;
  caret-color: #374151 !important;
}
