@import 'tailwindcss';

:root {
  --radius: 0.65rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.141 0.005 285.823);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.141 0.005 285.823);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.141 0.005 285.823);
  --primary: oklch(0.623 0.214 259.815);
  --primary-foreground: oklch(0.97 0.014 254.604);
  --secondary: oklch(0.967 0.001 286.375);
  --secondary-foreground: oklch(0.21 0.006 285.885);
  --muted: oklch(0.967 0.001 286.375);
  --muted-foreground: oklch(0.552 0.016 285.938);
  --accent: oklch(0.967 0.001 286.375);
  --accent-foreground: oklch(0.21 0.006 285.885);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.92 0.004 286.32);
  --input: oklch(0.92 0.004 286.32);
  --ring: oklch(0.623 0.214 259.815);
  --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.141 0.005 285.823);
  --sidebar-primary: oklch(0.623 0.214 259.815);
  --sidebar-primary-foreground: oklch(0.97 0.014 254.604);
  --sidebar-accent: oklch(0.967 0.001 286.375);
  --sidebar-accent-foreground: oklch(0.21 0.006 285.885);
  --sidebar-border: oklch(0.92 0.004 286.32);
  --sidebar-ring: oklch(0.623 0.214 259.815);

  /* Dynamic theme variables */
  --theme-primary: 6 182 212; /* cyan-500 RGB values */
  --theme-primary-light: 34 211 238; /* cyan-400 RGB values */
  --theme-secondary: 16 185 129; /* emerald-500 RGB values */
  --theme-secondary-light: 52 211 153; /* emerald-400 RGB values */
}

.dark {
  --background: oklch(0.141 0.005 285.823);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.21 0.006 285.885);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.21 0.006 285.885);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.546 0.245 262.881);
  --primary-foreground: oklch(0.379 0.146 265.522);
  --secondary: oklch(0.274 0.006 286.033);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.274 0.006 286.033);
  --muted-foreground: oklch(0.705 0.015 286.067);
  --accent: oklch(0.274 0.006 286.033);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.488 0.243 264.376);
  --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.21 0.006 285.885);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.546 0.245 262.881);
  --sidebar-primary-foreground: oklch(0.379 0.146 265.522);
  --sidebar-accent: oklch(0.274 0.006 286.033);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.488 0.243 264.376);
}

/* Theme-specific accent colors */
.theme-cyan {
  --theme-primary: 6 182 212;
  --theme-primary-light: 34 211 238;
  --theme-secondary: 16 185 129;
  --theme-secondary-light: 52 211 153;
}

.theme-emerald {
  --theme-primary: 16 185 129;
  --theme-primary-light: 52 211 153;
  --theme-secondary: 6 182 212;
  --theme-secondary-light: 34 211 238;
}

.theme-purple {
  --theme-primary: 147 51 234;
  --theme-primary-light: 168 85 247;
  --theme-secondary: 6 182 212;
  --theme-secondary-light: 34 211 238;
}

.theme-blue {
  --theme-primary: 59 130 246;
  --theme-primary-light: 96 165 250;
  --theme-secondary: 16 185 129;
  --theme-secondary-light: 52 211 153;
}

/* Dynamic theme utilities */
.bg-theme-primary {
  background-color: rgb(var(--theme-primary));
}

.bg-theme-primary-light {
  background-color: rgb(var(--theme-primary-light));
}

.bg-theme-secondary {
  background-color: rgb(var(--theme-secondary));
}

.bg-theme-secondary-light {
  background-color: rgb(var(--theme-secondary-light));
}

.text-theme-primary {
  color: rgb(var(--theme-primary));
}

.text-theme-primary-light {
  color: rgb(var(--theme-primary-light));
}

.text-theme-secondary {
  color: rgb(var(--theme-secondary));
}

.text-theme-secondary-light {
  color: rgb(var(--theme-secondary-light));
}

.border-theme-primary {
  border-color: rgb(var(--theme-primary));
}

.border-theme-primary-light {
  border-color: rgb(var(--theme-primary-light));
}

/* Dynamic gradient utilities */
.bg-gradient-theme {
  background: linear-gradient(
    to right,
    rgb(var(--theme-primary)),
    rgb(var(--theme-secondary))
  );
}

.bg-gradient-theme-to-r {
  background: linear-gradient(
    to right,
    rgb(var(--theme-primary-light)),
    rgb(var(--theme-secondary-light))
  );
}

.text-gradient-theme {
  background: linear-gradient(
    to right,
    rgb(var(--theme-primary-light)),
    rgb(var(--theme-secondary-light)),
    rgb(147 51 234)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Tailwind configuration for FlowingMenu component */
@keyframes marquee {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  animation: marquee 15s linear infinite;
}

.translate-y-\[101\%\] {
  transform: translateY(101%);
}

/* Toast notification animations */
@keyframes shrink {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

@keyframes slide-in-from-top-center {
  0% {
    transform: translateX(100%) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slide-out-to-top-center {
  0% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(100%) scale(0.95);
    opacity: 0;
  }
}

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

.slide-in-from-top-center {
  animation-name: slide-in-from-top-center;
  animation-duration: 300ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-out-to-top-center {
  animation-name: slide-out-to-top-center;
  animation-duration: 250ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
