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

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

:root {
  /* Darker, more sophisticated color palette */
  --background: #0f1419;
  --foreground: #e1e8ed;
  --card: #1a1f26;
  --card-foreground: #e1e8ed;
  --popover: #1a1f26;
  --popover-foreground: #e1e8ed;
  --primary: #0a3d62;
  --primary-foreground: #ffffff;
  --secondary: #1e90ff;
  --secondary-foreground: #ffffff;
  --muted: #252d38;
  --muted-foreground: #8899a6;
  --accent: #ff8c42;
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #2d3741;
  --input: #2d3741;
  --ring: #ff8c42;
  --chart-1: #0a3d62;
  --chart-2: #1e90ff;
  --chart-3: #3b82f6;
  --chart-4: #60a5fa;
  --chart-5: #93c5fd;
  --radius: 0.75rem;
  --sidebar: #0a3d62;
  --sidebar-foreground: #ffffff;
  --sidebar-primary: #1e90ff;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #164e87;
  --sidebar-accent-foreground: #ffffff;
  --sidebar-border: #164e87;
  --sidebar-ring: #1e90ff;
}

.dark {
  --background: #0f1419;
  --foreground: #e1e8ed;
  --card: #1a1f26;
  --card-foreground: #e1e8ed;
  --popover: #1a1f26;
  --popover-foreground: #e1e8ed;
  --primary: #1e90ff;
  --primary-foreground: #ffffff;
  --secondary: #0a3d62;
  --secondary-foreground: #e1e8ed;
  --muted: #252d38;
  --muted-foreground: #8899a6;
  --accent: #ff8c42;
  --accent-foreground: #ffffff;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #2d3741;
  --input: #2d3741;
  --ring: #ff8c42;
  --chart-1: #1e90ff;
  --chart-2: #3b82f6;
  --chart-3: #60a5fa;
  --chart-4: #93c5fd;
  --chart-5: #bfdbfe;
  --sidebar: #0a3d62;
  --sidebar-foreground: #e1e8ed;
  --sidebar-primary: #1e90ff;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #164e87;
  --sidebar-accent-foreground: #e1e8ed;
  --sidebar-border: #164e87;
  --sidebar-ring: #1e90ff;
}

@theme inline {
  --font-sans: var(--font-inter), system-ui, sans-serif;
  --font-serif: var(--font-poppins), Georgia, serif;
  --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;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    @apply font-serif;
  }
}

/* Enhanced animations for smoother, more professional feel */
@keyframes float-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slide-in-right {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 140, 66, 0.5);
  }
}

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

/* Add smooth shimmer effect for professional loading states */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.animate-float-up {
  animation: float-up 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slide-in-right 0.8s ease-out;
}

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

.animate-slide-down {
  animation: slide-down 0.6s ease-out;
}

.animate-shimmer {
  animation: shimmer 2s infinite;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
  background-size: 1000px 100%;
}
