@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    :root {
        --background: 240 10% 3.9%;
        --foreground: 0 0% 98%;
        --card: 240 10% 3.9%;
        --card-foreground: 0 0% 98%;
        --popover: 240 10% 3.9%;
        --popover-foreground: 0 0% 98%;
        --primary: 263.4 70% 50.4%;
        --primary-foreground: 210 40% 98%;
        --secondary: 240 3.7% 15.9%;
        --secondary-foreground: 0 0% 98%;
        --muted: 240 3.7% 15.9%;
        --muted-foreground: 240 5% 64.9%;
        --accent: 240 3.7% 15.9%;
        --accent-foreground: 0 0% 98%;
        --destructive: 0 62.8% 30.6%;
        --destructive-foreground: 0 0% 98%;
        --border: 240 3.7% 15.9%;
        --input: 240 3.7% 15.9%;
        --ring: 240 4.9% 83.9%;
        --radius: 0.75rem;
    }
}

@layer base {
    * {
        border-color: hsl(var(--border));
    }

    body {
        @apply bg-background text-foreground antialiased;
        background-image:
            radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.15) 0px, transparent 50%),
            radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
            radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
            radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.15) 0px, transparent 50%);
        background-attachment: fixed;
    }
}

/* Glassmorphism Utilities */
@layer utilities {
    .glass {
        @apply bg-white/5 backdrop-blur-lg border border-white/10 shadow-xl;
    }

    .glass-card {
        @apply bg-card/30 backdrop-blur-xl border border-white/10 shadow-2xl rounded-xl;
    }

    .glass-input {
        @apply bg-white/5 border-white/10 focus:border-primary/50 focus:ring-primary/20 placeholder:text-white/20;
    }
}