@import "tailwindcss";
@plugin "tailwindcss-animate";
@source "../../../packages/ui/src";

@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-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-dracula-background: #09090b;
  --color-dracula-current: #18181b;
  --color-dracula-foreground: #fafafa;
  --color-dracula-comment: #71717a;
  --color-dracula-cyan: #d4d4d8;
  --color-dracula-green: #e4e4e7;
  --color-dracula-orange: #a1a1aa;
  --color-dracula-pink: #d4d4d8;
  --color-dracula-purple: #fafafa;
  --color-dracula-red: #71717a;
  --color-dracula-yellow: #a1a1aa;
}

:root {
  --radius: 0.75rem;
  --background: #fafafa;
  --foreground: #09090b;
  --card: #ffffff;
  --card-foreground: #09090b;
  --popover: #ffffff;
  --popover-foreground: #09090b;
  --primary: #18181b;
  --primary-foreground: #fafafa;
  --secondary: #f4f4f5;
  --secondary-foreground: #18181b;
  --muted: #e4e4e7;
  --muted-foreground: #71717a;
  --accent: #f4f4f5;
  --accent-foreground: #18181b;
  --destructive: #71717a;
  --destructive-foreground: #fafafa;
  --border: #e4e4e7;
  --input: #e4e4e7;
  --ring: #a1a1aa;
}

.dark {
  --background: #09090b;
  --foreground: #fafafa;
  --card: #18181b;
  --card-foreground: #fafafa;
  --popover: rgba(24, 24, 27, 0.95);
  --popover-foreground: #fafafa;
  --primary: #fafafa;
  --primary-foreground: #09090b;
  --secondary: rgba(39, 39, 42, 0.5);
  --secondary-foreground: #fafafa;
  --muted: rgba(39, 39, 42, 0.4);
  --muted-foreground: #71717a;
  --accent: rgba(39, 39, 42, 0.6);
  --accent-foreground: #fafafa;
  --destructive: #f87171;
  --destructive-foreground: #fafafa;
  --border: rgba(63, 63, 70, 0.5);
  --input: rgba(63, 63, 70, 0.5);
  --ring: #a1a1aa;
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground antialiased;
  }
  button,
  a,
  select,
  input[type="checkbox"],
  input[type="radio"],
  input[type="submit"],
  input[type="button"],
  input[type="reset"],
  label[for],
  [role="button"],
  [role="tab"],
  [role="link"],
  [role="menuitem"],
  [role="option"],
  [tabindex]:not([tabindex="-1"]),
  summary {
    cursor: pointer;
  }
}

@layer utilities {
  .glass {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }

  .glass-subtle {
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
  }

  .text-gradient {
    background: linear-gradient(135deg, #fafafa 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fade-in 0.4s ease-out;
}

.animate-scale-in {
  animation: scale-in 0.3s ease-out;
}

.animate-slide-up {
  animation: slide-up 0.5s ease-out;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}
