@import "tailwindcss";

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&family=Geist:wght@300;400;500;600;700&display=swap');

@layer base {
  :root {
    --background: 250 250 252;
    --foreground: 15 15 20;
    --card: 255 255 255;
    --card-foreground: 15 15 20;
    --popover: 255 255 255;
    --popover-foreground: 15 15 20;
    --primary: 99 102 241;
    --primary-foreground: 255 255 255;
    --secondary: 241 241 245;
    --secondary-foreground: 15 15 20;
    --muted: 241 241 245;
    --muted-foreground: 100 100 115;
    --accent: 99 102 241;
    --accent-foreground: 255 255 255;
    --destructive: 239 68 68;
    --destructive-foreground: 255 255 255;
    --success: 34 197 94;
    --success-foreground: 255 255 255;
    --warning: 245 158 11;
    --warning-foreground: 15 15 20;
    --info: 59 130 246;
    --info-foreground: 255 255 255;
    --border: 228 228 235;
    --input: 228 228 235;
    --ring: 99 102 241;
    --radius: 0.75rem;
    --chart-1: 99 102 241;
    --chart-2: 168 85 247;
    --chart-3: 236 72 153;
    --chart-4: 34 197 94;
    --chart-5: 245 158 11;
    --sidebar-width: 260px;
    --header-height: 64px;
    --gradient-start: 99 102 241;
    --gradient-end: 168 85 247;
  }

  .dark {
    --background: 4 4 6;
    --foreground: 250 250 252;
    --card: 12 12 16;
    --card-foreground: 250 250 252;
    --popover: 12 12 16;
    --popover-foreground: 250 250 252;
    --primary: 139 92 246;
    --primary-foreground: 255 255 255;
    --secondary: 20 20 28;
    --secondary-foreground: 250 250 252;
    --muted: 20 20 28;
    --muted-foreground: 140 140 155;
    --accent: 139 92 246;
    --accent-foreground: 255 255 255;
    --destructive: 239 68 68;
    --destructive-foreground: 255 255 255;
    --success: 34 197 94;
    --success-foreground: 255 255 255;
    --warning: 245 158 11;
    --warning-foreground: 15 15 20;
    --info: 59 130 246;
    --info-foreground: 255 255 255;
    --border: 30 30 40;
    --input: 30 30 40;
    --ring: 139 92 246;
    --chart-1: 139 92 246;
    --chart-2: 192 132 252;
    --chart-3: 244 114 182;
    --chart-4: 74 222 128;
    --chart-5: 251 191 36;
    --gradient-start: 139 92 246;
    --gradient-end: 236 72 153;
  }
}

@layer base {
  * {
    border-color: rgb(var(--border));
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: rgb(var(--background));
    color: rgb(var(--foreground));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  
  ::selection {
    background-color: rgb(var(--primary) / 0.2);
    color: rgb(var(--foreground));
  }
  
  :focus-visible {
    outline: 2px solid rgb(var(--ring));
    outline-offset: 2px;
  }
}

@layer utilities {
  .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .scrollbar-hide::-webkit-scrollbar {
    display: none;
  }
  
  .scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: rgb(var(--border)) transparent;
  }
  
  .scrollbar-thin::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  
  .scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .scrollbar-thin::-webkit-scrollbar-thumb {
    background-color: rgb(var(--border));
    border-radius: 3px;
  }
  
  .scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background-color: rgb(var(--muted-foreground));
  }
  
  .glass {
    background: rgb(var(--card) / 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
  
  .glass-heavy {
    background: rgb(var(--card) / 0.85);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
  }
  
  .glass-subtle {
    background: rgb(var(--card) / 0.4);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
  }
  
  .glass-dark {
    background: rgb(var(--card) / 0.95);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
  }

  .gradient-border {
    position: relative;
    background: rgb(var(--card));
  }
  
  .gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
      135deg,
      rgb(var(--primary) / 0.5),
      rgb(var(--primary) / 0.1),
      rgb(var(--gradient-end) / 0.3)
    );
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }
  
  .gradient-text {
    background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--gradient-end)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .gradient-text-vivid {
    background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--gradient-end)), rgb(var(--chart-3)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
  }
  
  .gradient-shimmer {
    background: linear-gradient(
      90deg,
      rgb(var(--muted)) 0%,
      rgb(var(--muted) / 0.5) 50%,
      rgb(var(--muted)) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
  }
  
  .glow-primary {
    box-shadow: 
      0 0 20px rgb(var(--primary) / 0.25),
      0 0 40px rgb(var(--primary) / 0.15),
      0 0 60px rgb(var(--primary) / 0.05);
  }
  
  .glow-success {
    box-shadow: 
      0 0 20px rgb(var(--success) / 0.25),
      0 0 40px rgb(var(--success) / 0.15);
  }
  
  .glow-warning {
    box-shadow: 
      0 0 20px rgb(var(--warning) / 0.25),
      0 0 40px rgb(var(--warning) / 0.15);
  }
  
  .glow-destructive {
    box-shadow: 
      0 0 20px rgb(var(--destructive) / 0.25),
      0 0 40px rgb(var(--destructive) / 0.15);
  }

  .glow-inner {
    box-shadow: 
      inset 0 1px 0 0 rgb(255 255 255 / 0.05),
      inset 0 -1px 0 0 rgb(0 0 0 / 0.05);
  }
  
  .dot-grid {
    background-image: radial-gradient(
      circle,
      rgb(var(--border) / 0.5) 1px,
      transparent 1px
    );
    background-size: 20px 20px;
  }
  
  .line-grid {
    background-image: 
      linear-gradient(rgb(var(--border) / 0.3) 1px, transparent 1px),
      linear-gradient(to right, rgb(var(--border) / 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
  }
  
  .radial-glow {
    background: radial-gradient(
      ellipse 80% 50% at 50% -20%,
      rgb(var(--primary) / 0.15),
      transparent
    );
  }

  .radial-glow-bottom {
    background: radial-gradient(
      ellipse 80% 50% at 50% 120%,
      rgb(var(--gradient-end) / 0.1),
      transparent
    );
  }

  .mesh-gradient {
    background:
      radial-gradient(at 40% 20%, rgb(var(--primary) / 0.08) 0px, transparent 50%),
      radial-gradient(at 80% 0%, rgb(var(--gradient-end) / 0.06) 0px, transparent 50%),
      radial-gradient(at 0% 50%, rgb(var(--chart-3) / 0.05) 0px, transparent 50%),
      radial-gradient(at 80% 50%, rgb(var(--chart-4) / 0.05) 0px, transparent 50%),
      radial-gradient(at 0% 100%, rgb(var(--primary) / 0.06) 0px, transparent 50%),
      radial-gradient(at 80% 100%, rgb(var(--gradient-end) / 0.04) 0px, transparent 50%);
  }
  
  .text-balance {
    text-wrap: balance;
  }
  
  .no-drag {
    -webkit-user-drag: none;
    user-drag: none;
  }
  
  .safe-area-inset {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .perspective-1000 {
    perspective: 1000px;
  }

  .preserve-3d {
    transform-style: preserve-3d;
  }

  .backface-hidden {
    backface-visibility: hidden;
  }

  .mask-gradient-b {
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  }

  .mask-gradient-x {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  }

  .ring-gradient {
    background: conic-gradient(
      from 0deg,
      rgb(var(--primary)),
      rgb(var(--gradient-end)),
      rgb(var(--chart-3)),
      rgb(var(--primary))
    );
  }

  .text-glow {
    text-shadow: 0 0 20px rgb(var(--primary) / 0.5);
  }

  .border-glow {
    border: 1px solid rgb(var(--primary) / 0.2);
    box-shadow: 
      0 0 0 1px rgb(var(--primary) / 0.05),
      0 0 20px rgb(var(--primary) / 0.1);
  }

  .hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 
      0 10px 40px -15px rgb(0 0 0 / 0.2),
      0 0 0 1px rgb(var(--primary) / 0.1);
  }

  .status-ring {
    box-shadow: 0 0 0 3px rgb(var(--card)), 0 0 0 4px rgb(var(--border));
  }

  .status-ring-success {
    box-shadow: 0 0 0 3px rgb(var(--card)), 0 0 0 4px rgb(var(--success));
  }

  .status-ring-warning {
    box-shadow: 0 0 0 3px rgb(var(--card)), 0 0 0 4px rgb(var(--warning));
  }

  .status-ring-destructive {
    box-shadow: 0 0 0 3px rgb(var(--card)), 0 0 0 4px rgb(var(--destructive));
  }

  .noise-texture {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
  }

  .gradient-mesh {
    background: 
      radial-gradient(ellipse at 0% 0%, rgb(var(--primary) / 0.15) 0%, transparent 50%),
      radial-gradient(ellipse at 100% 0%, rgb(var(--gradient-end) / 0.1) 0%, transparent 50%),
      radial-gradient(ellipse at 100% 100%, rgb(var(--chart-3) / 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 0% 100%, rgb(var(--chart-4) / 0.08) 0%, transparent 50%);
  }

  .gradient-mesh-animated {
    background: 
      radial-gradient(ellipse at 0% 0%, rgb(var(--primary) / 0.15) 0%, transparent 50%),
      radial-gradient(ellipse at 100% 0%, rgb(var(--gradient-end) / 0.1) 0%, transparent 50%),
      radial-gradient(ellipse at 100% 100%, rgb(var(--chart-3) / 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 0% 100%, rgb(var(--chart-4) / 0.08) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
  }

  .gradient-border-animated {
    position: relative;
    background: rgb(var(--card));
    overflow: hidden;
  }

  .gradient-border-animated::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(
      from var(--angle, 0deg),
      rgb(var(--primary) / 0.8),
      rgb(var(--gradient-end) / 0.8),
      rgb(var(--chart-3) / 0.8),
      rgb(var(--primary) / 0.8)
    );
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    mask: 
      linear-gradient(#fff 0 0) content-box, 
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate-slow 8s linear infinite;
  }

  .text-shimmer {
    background: linear-gradient(
      90deg,
      rgb(var(--foreground)) 0%,
      rgb(var(--primary)) 50%,
      rgb(var(--foreground)) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 3s ease-in-out infinite;
  }

  .gradient-text-rainbow {
    background: linear-gradient(
      90deg,
      rgb(var(--primary)),
      rgb(var(--gradient-end)),
      rgb(var(--chart-3)),
      rgb(var(--chart-4)),
      rgb(var(--primary))
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
  }

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

  .hover-glow {
    transition: box-shadow 0.3s ease;
  }

  .hover-glow:hover {
    box-shadow: 
      0 0 20px rgb(var(--primary) / 0.3),
      0 0 40px rgb(var(--primary) / 0.15),
      0 0 60px rgb(var(--primary) / 0.05);
  }

  .hover-border-glow {
    position: relative;
    transition: all 0.3s ease;
  }

  .hover-border-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 
      0 0 0 1px rgb(var(--primary) / 0.3),
      0 0 20px rgb(var(--primary) / 0.2);
  }

  .hover-border-glow:hover::after {
    opacity: 1;
  }

  .shimmer-effect {
    position: relative;
    overflow: hidden;
  }

  .shimmer-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgb(255 255 255 / 0.1),
      transparent
    );
    animation: shimmer-slide 2s infinite;
  }

  .spotlight {
    position: relative;
    overflow: hidden;
  }

  .spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgb(255 255 255 / 0.05),
      transparent
    );
    transform: skewX(-25deg);
    transition: left 0.5s ease;
  }

  .spotlight:hover::before {
    left: 125%;
  }

  .border-gradient-animated {
    border: 1px solid transparent;
    background: 
      linear-gradient(rgb(var(--card)), rgb(var(--card))) padding-box,
      linear-gradient(
        var(--angle, 0deg),
        rgb(var(--primary) / 0.5),
        rgb(var(--gradient-end) / 0.5),
        rgb(var(--primary) / 0.5)
      ) border-box;
    animation: rotate-slow 6s linear infinite;
  }

  .morph-blob {
    animation: morph 8s ease-in-out infinite;
  }

  .glass-reflection {
    position: relative;
    overflow: hidden;
  }

  .glass-reflection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
      to bottom,
      rgb(255 255 255 / 0.05),
      transparent
    );
    pointer-events: none;
  }

  .depth-layer {
    box-shadow: 
      0 1px 1px rgb(0 0 0 / 0.02),
      0 2px 2px rgb(0 0 0 / 0.02),
      0 4px 4px rgb(0 0 0 / 0.02),
      0 8px 8px rgb(0 0 0 / 0.02),
      0 16px 16px rgb(0 0 0 / 0.02);
  }

  .depth-layer-dark {
    box-shadow: 
      0 1px 1px rgb(0 0 0 / 0.05),
      0 2px 2px rgb(0 0 0 / 0.05),
      0 4px 4px rgb(0 0 0 / 0.05),
      0 8px 8px rgb(0 0 0 / 0.05),
      0 16px 16px rgb(0 0 0 / 0.05);
  }

  .elevation-1 {
    box-shadow: 
      0 1px 2px rgb(0 0 0 / 0.05),
      0 1px 3px rgb(0 0 0 / 0.1);
  }

  .elevation-2 {
    box-shadow: 
      0 2px 4px rgb(0 0 0 / 0.05),
      0 4px 8px rgb(0 0 0 / 0.1);
  }

  .elevation-3 {
    box-shadow: 
      0 4px 8px rgb(0 0 0 / 0.05),
      0 8px 16px rgb(0 0 0 / 0.1);
  }

  .elevation-4 {
    box-shadow: 
      0 8px 16px rgb(0 0 0 / 0.05),
      0 16px 32px rgb(0 0 0 / 0.1);
  }

  .surface-overlay {
    background: 
      linear-gradient(
        135deg,
        rgb(255 255 255 / 0.03) 0%,
        transparent 50%
      );
  }

  .surface-ridge {
    box-shadow: 
      inset 1px 1px 0 rgb(255 255 255 / 0.05),
      inset -1px -1px 0 rgb(0 0 0 / 0.05);
  }

  .surface-groove {
    box-shadow: 
      inset 1px 1px 0 rgb(0 0 0 / 0.05),
      inset -1px -1px 0 rgb(255 255 255 / 0.05);
  }

  .text-gradient-primary {
    background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--gradient-end)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .text-gradient-success {
    background: linear-gradient(135deg, rgb(var(--success)), rgb(var(--chart-4)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .text-gradient-warning {
    background: linear-gradient(135deg, rgb(var(--warning)), rgb(var(--chart-5)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .text-gradient-danger {
    background: linear-gradient(135deg, rgb(var(--destructive)), rgb(var(--chart-3)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .animate-float {
    animation: float 3s ease-in-out infinite;
  }

  .animate-float-delayed {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1s;
  }

  .animate-pulse-slow {
    animation: pulse 3s ease-in-out infinite;
  }

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

  .animate-shimmer {
    animation: shimmer-slide 2s linear infinite;
  }

  .animate-text-shimmer {
    animation: text-shimmer 3s ease-in-out infinite;
  }

  .animate-morph {
    animation: morph 8s ease-in-out infinite;
  }

  .animate-rotate-slow {
    animation: rotate-slow 20s linear infinite;
  }

  .transition-smart {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .transition-bounce {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .transition-spring {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
}

@layer components {
  .card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 
      0 10px 40px -10px rgb(0 0 0 / 0.15),
      0 0 0 1px rgb(var(--primary) / 0.08);
  }
  
  .card-interactive {
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .card-interactive:hover {
    background-color: rgb(var(--muted) / 0.5);
  }
  
  .card-interactive:active {
    transform: scale(0.995);
  }

  .card-elevated {
    background: linear-gradient(
      to bottom right,
      rgb(var(--card)),
      rgb(var(--muted) / 0.3)
    );
    box-shadow: 
      0 1px 3px rgb(0 0 0 / 0.05),
      0 4px 12px rgb(0 0 0 / 0.05),
      inset 0 1px 0 rgb(255 255 255 / 0.05);
  }

  .dark .card-elevated {
    background: linear-gradient(
      to bottom right,
      rgb(var(--card)),
      rgb(var(--muted) / 0.2)
    );
    box-shadow: 
      0 1px 3px rgb(0 0 0 / 0.2),
      0 4px 12px rgb(0 0 0 / 0.1),
      inset 0 1px 0 rgb(255 255 255 / 0.02);
  }
  
  .status-dot {
    position: relative;
  }
  
  .status-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }
  
  .status-dot-success::after {
    background-color: rgb(var(--success) / 0.4);
  }
  
  .status-dot-warning::after {
    background-color: rgb(var(--warning) / 0.4);
  }
  
  .status-dot-destructive::after {
    background-color: rgb(var(--destructive) / 0.4);
  }
  
  .status-dot-info::after {
    background-color: rgb(var(--info) / 0.4);
  }
  
  .sidebar-item {
    position: relative;
    transition: all 0.2s ease;
  }
  
  .sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(
      180deg,
      rgb(var(--primary)),
      rgb(var(--gradient-end) / 0.5)
    );
    border-radius: 0 2px 2px 0;
    transition: height 0.2s ease;
  }
  
  .sidebar-item.active::before,
  .sidebar-item:hover::before {
    height: 60%;
  }
  
  .sidebar-item.active {
    background: linear-gradient(
      90deg,
      rgb(var(--primary) / 0.12),
      transparent
    );
  }
  
  .input-glow:focus {
    box-shadow: 
      0 0 0 1px rgb(var(--ring)),
      0 0 20px rgb(var(--primary) / 0.1);
  }
  
  .btn-shine {
    position: relative;
    overflow: hidden;
  }
  
  .btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgb(255 255 255 / 0.2),
      transparent
    );
    transition: left 0.5s ease;
  }
  
  .btn-shine:hover::after {
    left: 100%;
  }

  .btn-gradient {
    background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--gradient-end)));
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
  }

  .btn-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgb(255 255 255 / 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .btn-gradient:hover::before {
    opacity: 1;
  }

  .metric-card {
    position: relative;
    overflow: hidden;
  }

  .metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgb(var(--primary) / 0.3),
      transparent
    );
  }

  .metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(
      circle at top right,
      rgb(var(--primary) / 0.05),
      transparent
    );
    pointer-events: none;
  }

  .tab-underline {
    position: relative;
  }

  .tab-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgb(var(--primary)), rgb(var(--gradient-end)));
    transition: width 0.2s ease;
    border-radius: 1px;
  }

  .tab-underline:hover::after,
  .tab-underline.active::after {
    width: 100%;
  }

  .skeleton {
    background: linear-gradient(
      90deg,
      rgb(var(--muted)) 0%,
      rgb(var(--muted) / 0.5) 50%,
      rgb(var(--muted)) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
  }

  .tooltip-content {
    animation: tooltipFadeIn 0.15s ease-out;
  }

  .popover-content {
    animation: popoverFadeIn 0.15s ease-out;
  }

  .modal-content {
    animation: modalFadeIn 0.2s ease-out;
  }

  .dropdown-content {
    animation: dropdownFadeIn 0.15s ease-out;
  }

  .command-palette {
    animation: commandPaletteIn 0.15s ease-out;
  }

  .progress-bar {
    position: relative;
    overflow: hidden;
  }

  .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      90deg,
      transparent,
      rgb(255 255 255 / 0.2),
      transparent
    );
    animation: progressShimmer 2s infinite;
  }

  .avatar-ring {
    box-shadow: 0 0 0 2px rgb(var(--card)), 0 0 0 3px rgb(var(--primary) / 0.3);
  }

  .notification-badge {
    animation: notificationPulse 2s infinite;
  }

  .logo-glow {
    filter: drop-shadow(0 0 8px rgb(var(--primary) / 0.4));
  }

  .divider-gradient {
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgb(var(--border)),
      transparent
    );
  }

  .section-divider {
    position: relative;
  }

  .section-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgb(var(--border) / 0.5),
      rgb(var(--border)),
      rgb(var(--border) / 0.5),
      transparent
    );
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

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

@keyframes commandPaletteIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes progressShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes notificationPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(var(--destructive) / 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgb(var(--destructive) / 0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseBorder {
  0%, 100% {
    border-color: rgb(var(--primary) / 0.5);
  }
  50% {
    border-color: rgb(var(--primary) / 0.2);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes borderGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgb(var(--primary) / 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgb(var(--primary) / 0.5);
  }
}

@keyframes accordion-down {
  from {
    height: 0;
  }
  to {
    height: var(--radix-accordion-content-height);
  }
}

@keyframes accordion-up {
  from {
    height: var(--radix-accordion-content-height);
  }
  to {
    height: 0;
  }
}

.animate-accordion-down {
  animation: accordion-down 0.2s ease-out;
}

.animate-accordion-up {
  animation: accordion-up 0.2s ease-out;
}

@keyframes shimmer-slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes text-shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes border-dance {
  0%, 100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes morph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}
