@import "tailwindcss";
@import "tw-animate-css";


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

@theme inline {
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --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-border: var(--border);
  --color-input: var(--input);
  --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);
  --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);
}

:root {
  --radius: 0.625rem;
  --background: oklch(1 0 0);            /* --- Pure White Background --- */
  --foreground: oklch(0.12 0.01 240);    /* --- Nearly Black Text --- */

  --card: oklch(1 0 0);
  --card-foreground: oklch(0.12 0.01 240);

  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.12 0.01 240);

  --primary: oklch(0.5 0.18 230);        /* --- A Clean, Strong Blue Accent --- */
  --primary-foreground: oklch(1 0 0);    /* --- White text on blue buttons --- */

  --secondary: oklch(0.96 0.01 240);      /* --- Light Gray for secondary elements --- */
  --secondary-foreground: oklch(0.2 0 0);

  --muted: oklch(0.96 0.01 240);
  --muted-foreground: oklch(0.45 0 0);

  --accent: oklch(0.96 0.01 240);
  --accent-foreground: oklch(0.2 0 0);

  --destructive: oklch(0.57 0.24 27);
  --border: oklch(0.92 0.01 240);      /* --- A very light gray border --- */
  --input: oklch(0.95 0.01 240);
  --ring: oklch(0.55 0.18 230);          /* --- Blue focus ring --- */
 /* Ring color matches primary */
  /* ... keep the rest of your variables (chart, sidebar, etc.) */
  --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);
  --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);
  --contribution-level-0: oklch(0.96 0.01 240); /* Light Gray (like GitHub light theme) */
  --contribution-level-1: oklch(0.85 0.1 140);  /* Pale Green */
  --contribution-level-2: oklch(0.75 0.15 140);  /* Light Green */
  --contribution-level-3: oklch(0.65 0.2 140);  /* Medium Green */
  --contribution-level-4: oklch(0.55 0.25 140);  /* Dark Green */
}

.dark {
  --background: oklch(0.08 0 0); /* Deep black */
  --foreground: oklch(0.98 0 0); /* Pure white */
  --card: oklch(0.12 0 0); /* Dark gray card background */
  --card-foreground: oklch(0.95 0 0); /* Light text on cards */
  --popover: oklch(0.1 0 0); /* Darker gray for popovers */
  --popover-foreground: oklch(0.98 0 0); /* White text */
  --primary: oklch(0.85 0 0); /* Light gray primary */
  --primary-foreground: oklch(0.08 0 0); /* Black text on primary */
  --secondary: oklch(0.15 0 0); /* Medium dark gray */
  --secondary-foreground: oklch(0.9 0 0); /* Light gray text */
  --muted: oklch(0.18 0 0); /* Muted dark gray */
  --muted-foreground: oklch(0.65 0 0); /* Medium gray text */
  --accent: oklch(0.2 0 0); /* Accent dark gray */
  --accent-foreground: oklch(0.95 0 0); /* Light text on accent */
  --destructive: oklch(0.6 0.2 15); /* Red for destructive */
  --border: oklch(0.25 0 0); /* Gray borders */
  --input: oklch(0.15 0 0); /* Dark input backgrounds */
  --ring: oklch(0.7 0 0); /* Focus ring gray */
  --chart-1: oklch(0.7 0 0);
  --chart-2: oklch(0.6 0 0);
  --chart-3: oklch(0.5 0 0);
  --chart-4: oklch(0.8 0 0);
  --chart-5: oklch(0.75 0 0);
  --sidebar: oklch(0.1 0 0);
  --sidebar-foreground: oklch(0.95 0 0);
  --sidebar-primary: oklch(0.8 0 0);
  --sidebar-primary-foreground: oklch(0.1 0 0);
  --sidebar-accent: oklch(0.2 0 0);
  --sidebar-accent-foreground: oklch(0.95 0 0);
  --sidebar-border: oklch(0.25 0 0);
  --sidebar-ring: oklch(0.7 0 0);   /* The original subtle dark grid line */
  --contribution-level-0: oklch(0.1 0 0);    /* Dark Gray (like GitHub dark theme) */
  --contribution-level-1: oklch(0.2 0.05 140); /* Darkest Green */
  --contribution-level-2: oklch(0.3 0.1 140);  /* Dark Green */
  --contribution-level-3: oklch(0.4 0.15 140);  /* Medium Green */
  --contribution-level-4: oklch(0.5 0.2 140);  /* Brightest Green */
}

@layer base {
  :root {
    --font-mona: "Mona Sans";
  }

  html {
    font-family: var(--font-mona), system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  }

  * {
    @apply border-border outline-ring/50;
  }
  
  body {
  /* This will force the clean white background and remove the ugly gradient */
    background-color: oklch(var(--background)) !important;
    background-image: none !important; 
    
    @apply text-foreground;
    font-family: var(--font-mona), system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  }

.dark body {
    /* This ensures the dark theme is also clean */
    background-color: oklch(var(--background)) !important;
    background-image: none !important;
  }
  /* Style for Light Mode */
.cl-formButtonPrimary {
  background-color: oklch(var(--primary)) !important;
  color: oklch(var(--primary-foreground)) !important;
  opacity: 1 !important;
  border: 1px solid oklch(var(--border)) !important; 
}

/* Make it slightly dimmer on hover */
.cl-formButtonPrimary:hover {
  opacity: 0.9 !important;
}

/* Style for Dark Mode (uses the same variables, which are theme-aware) */
.dark .cl-formButtonPrimary {
  background-color: oklch(var(--primary)) !important;
  color: oklch(var(--primary-foreground)) !important;
}
  
  /* Custom dark theme utilities */
  .text-highlight {
    @apply text-white font-bold;
  }
  
  .slide-up {
    animation: slideUp 0.8s ease-out;
  }
  
  .floating {
    animation: floating 3s ease-in-out infinite;
  }
  
  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes floating {
    0%, 100% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  /* Enhanced dark theme overrides */
  .dark {
    color-scheme: dark;
  }
  
  .dark .bg-gradient-to-br {
    background: linear-gradient(to bottom right, oklch(0.05 0 0), oklch(0.12 0 0));
  }
  
  /* Better scrollbar for dark theme */
  .dark ::-webkit-scrollbar {
    width: 8px;
  }
  
  .dark ::-webkit-scrollbar-track {
    background: oklch(0.1 0 0);
  }
  
  .dark ::-webkit-scrollbar-thumb {
    background: oklch(0.3 0 0);
    border-radius: 4px;
  }
  
  .dark ::-webkit-scrollbar-thumb:hover {
    background: oklch(0.4 0 0);
  }
}

