@import "tailwindcss";
@import "tw-animate-css";
/* Added Google Fonts Inter for professional typography */
/* Added Google Fonts Inter for professional typography */
/* @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap"); */

@custom-variant dark (&:is(.dark *));

:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.577 0.245 27.325);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --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: oklch(0.205 0 0);
  --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);
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(0.269 0 0);
  --sidebar-ring: oklch(0.439 0 0);
}

/* Complete redesign with minimalist color system using Karnataka flag colors */
@theme inline {
  /* Base Colors - Clean & Minimalist */
  --color-background: 255 255 255; /* Pure white */
  --color-foreground: 17 24 39; /* Near black for text */

  /* Primary - Karnataka Yellow (strategic accent) */
  --color-primary: 255 193 7; /* #FFC107 */
  --color-primary-foreground: 17 24 39;

  /* Secondary - Karnataka Red (strategic accent) */
  --color-secondary: 220 38 38; /* #DC2626 */
  --color-secondary-foreground: 255 255 255;

  /* Neutral Palette */
  --color-muted: 249 250 251; /* Very light gray */
  --color-muted-foreground: 107 114 128;
  --color-border: 229 231 235; /* Subtle border */

  /* Minimal radius for sharp, clean look */
  --radius: 0.375rem;

  /* Typography with Inter font */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;

  --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-ring: var(--ring);
  --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;
    /* Apply Inter font family */
    font-family: "Inter", system-ui, -apple-system, sans-serif;
  }

  /* Clean heading hierarchy */
  h1 {
    @apply text-4xl md:text-5xl lg:text-6xl font-bold tracking-tight;
  }

  h2 {
    @apply text-3xl md:text-4xl font-bold tracking-tight;
  }

  h3 {
    @apply text-2xl md:text-3xl font-semibold tracking-tight;
  }

  h4 {
    @apply text-xl md:text-2xl font-semibold;
  }

  p {
    @apply text-base leading-relaxed text-muted-foreground;
  }
}

/* Absolutely no shadows anywhere - flat minimalist design */
* {
  box-shadow: none !important;
}

/* Clean button styles */
.btn {
  @apply px-6 py-3 rounded font-medium transition-all duration-200 inline-flex items-center gap-2 justify-center;
}

.btn-primary {
  @apply bg-[#FFC107] text-gray-900 hover:bg-[#FFD54F] border-2 border-black;
}

.btn-secondary {
  @apply bg-[#DC2626] text-white hover:bg-[#B91C1C] border-2 border-black;
}

.btn-outline {
  @apply bg-transparent border-2 border-gray-900 text-gray-900 hover:bg-gray-900 hover:text-white;
}

/* Clean form inputs with sharp borders */
.form-input {
  @apply w-full px-4 py-3 border-2 border-gray-300 rounded text-base transition-colors duration-200;
  @apply focus:outline-none focus:border-[#FFC107];
}

.form-label {
  @apply block text-sm font-semibold text-gray-900 mb-2;
}

/* Minimalist card style */
.card {
  @apply bg-white border-2 border-gray-200 rounded-lg p-6;
}

.card:hover {
  @apply border-gray-300;
}

/* Alert styles */
.alert {
  @apply p-4 rounded border-2 mb-4;
}

.alert-success {
  @apply bg-green-50 border-green-500 text-green-900;
}

.alert-error {
  @apply bg-red-50 border-red-500 text-red-900;
}

.alert-warning {
  @apply bg-yellow-50 border-yellow-500 text-yellow-900;
}

/* Clean stat boxes */
.stat-box {
  @apply bg-white border-2 border-gray-200 rounded-lg p-8 text-center;
}

.stat-number {
  @apply text-5xl font-bold text-gray-900;
}

.stat-label {
  @apply text-sm font-medium text-gray-600 mt-2;
}

/* Category card with hover effect */
.category-card {
  @apply bg-white border-2 border-gray-200 rounded-lg p-6 text-center transition-all duration-200 cursor-pointer;
  @apply hover:border-[#FFC107] hover:-translate-y-1;
}

/* Responsive container */
.container {
  @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid rgb(var(--color-primary));
  outline-offset: 2px;
}
