@import 'tailwindcss';
@source "../../../apps/**/*.{ts,tsx}";
@source "../../../components/**/*.{ts,tsx}";
@source "../**/*.{ts,tsx}";

@import 'tw-animate-css';

@theme {
  --font-sans: 'var(--font-sans)';
  --font-marcellus: 'var(--font-marcellus)';
}

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

:root {
  --background: oklch(0.98 0.01 220); /* Soft blue-tinted white */
  --foreground: oklch(0.16 0.01 240); /* Slightly deeper text */
  --card: oklch(0.96 0.01 220); /* Slight blue card */
  --card-foreground: oklch(0.16 0.01 240);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.16 0.01 240);
  --primary: oklch(0.55 0.18 260); /* Vibrant blue */
  --primary-foreground: oklch(0.98 0.01 220);
  --secondary: oklch(0.92 0.01 120); /* Soft green */
  --secondary-foreground: oklch(0.16 0.01 240);
  --muted: oklch(0.94 0.01 220);
  --muted-foreground: oklch(0.45 0.01 240);
  --accent: oklch(0.72 0.18 40); /* Vibrant orange */
  --accent-foreground: oklch(0.98 0.01 220);
  --destructive: oklch(0.65 0.22 25); /* Strong red */
  --destructive-foreground: oklch(0.98 0.01 220);
  --border: oklch(0.88 0.01 220);
  --input: oklch(0.96 0.01 220);
  --ring: oklch(0.55 0.18 260);
  --chart-1: oklch(0.55 0.18 260);
  --chart-2: oklch(0.72 0.18 40);
  --chart-3: oklch(0.38 0.16 260);
  --chart-4: oklch(0.4 0.2 350);
  --chart-5: oklch(0.36 0.15 220);
  --radius: 0.75rem;
  --sidebar: oklch(0.97 0.01 220);
  --sidebar-foreground: oklch(0.16 0.01 240);
  --sidebar-primary: oklch(0.55 0.18 260);
  --sidebar-primary-foreground: oklch(0.98 0.01 220);
  --sidebar-accent: oklch(0.72 0.18 40);
  --sidebar-accent-foreground: oklch(0.98 0.01 220);
  --sidebar-border: oklch(0.88 0.01 220);
  --sidebar-ring: oklch(0.55 0.18 260);
}

@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);
  --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);
  --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;
  }
}

/* Login page creative animation keyframes (red/rose accent theme) */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}
@keyframes float-medium {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(30px) scale(1.1); }
}
@keyframes float-fast {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(0.95); }
}
@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ripple {
  to { opacity: 0; width: 200px; height: 200px; }
}

/* Utility classes for red/rose accent theme */
.animate-float-slow { animation: float-slow 7s ease-in-out infinite; }
.animate-float-medium { animation: float-medium 5s ease-in-out infinite; }
.animate-float-fast { animation: float-fast 3.5s ease-in-out infinite; }
.animate-bounce-slow { animation: bounce-slow 2.5s infinite; }
.animate-fade-in { animation: fade-in 1.2s 0.5s both; }
.animate-ripple { animation: ripple 0.6s linear; }

/* Navbar specific animations */
@keyframes slide-in-from-top-2 {
  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 glow-pulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
  }
}

.animate-in {
  animation-fill-mode: both;
}

.slide-in-from-top-2 {
  animation: slide-in-from-top-2 0.2s ease-out;
}

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

.glow-pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}
