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

:root {
  /* Tweety Futuristic Dark Theme */
  --font-family: 'Inter', -apple-system, system-ui, sans-serif;
  
  /* Deep background colors */
  --deep-bg: #07070f;
  --surface-bg: rgba(14, 14, 30, 0.8);
  --elevated-surface: rgba(26, 26, 46, 0.9);
  --card-bg: rgba(26, 26, 46, 0.85);
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(16, 242, 140, 0.3);
  
  /* Accent colors */
  --neon-green: #10f28c;
  --neon-purple: #6366f1;
  --danger: #ff6b6b;
  --warning: #fbbf24;
  
  /* Text colors */
  --text-primary: #f0f0f0;
  --text-secondary: #8a8aa3;
  --text-muted: #555570;
  --text-active: #ffffff;
  --text-inactive: #6a6a85;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #10f28c, #6366f1);
  --gradient-border: linear-gradient(135deg, #10f28c, #6366f1);
  
  /* Effects */
  --glow-green: 0 0 20px rgba(16, 242, 140, 0.15);
  --glow-green-strong: 0 0 30px rgba(16, 242, 140, 0.3);
  
  /* Standard theme variables */
  --font-size: 14px;
  --background: #07070f;
  --foreground: #f0f0f0;
  --card: rgba(26, 26, 46, 0.85);
  --card-foreground: #f0f0f0;
  --popover: rgba(14, 14, 30, 0.95);
  --popover-foreground: #f0f0f0;
  --primary: #10f28c;
  --primary-foreground: #07070f;
  --secondary: #6366f1;
  --secondary-foreground: #ffffff;
  --muted: rgba(85, 85, 112, 0.3);
  --muted-foreground: #8a8aa3;
  --accent: #10f28c;
  --accent-foreground: #07070f;
  --destructive: #ff6b6b;
  --destructive-foreground: #ffffff;
  --border: rgba(255, 255, 255, 0.06);
  --input: rgba(26, 26, 46, 0.8);
  --input-background: rgba(26, 26, 46, 0.8);
  --switch-background: #555570;
  --font-weight-medium: 600;
  --font-weight-normal: 400;
  --ring: rgba(16, 242, 140, 0.5);
  --radius: 16px;
}

@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-input-background: var(--input-background);
  --color-switch-background: var(--switch-background);
  --color-ring: var(--ring);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

body {
  font-family: var(--font-family);
  background: var(--deep-bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.glass-surface {
  background: var(--surface-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-elevated {
  background: var(--elevated-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glow-green {
  box-shadow: var(--glow-green);
}

.glow-green-strong {
  box-shadow: var(--glow-green-strong);
}

.gradient-border {
  position: relative;
  background: var(--card-bg);
  border-radius: 16px;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-border);
  -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;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-gradient {
  background: var(--gradient-primary);
  border: none;
  color: white;
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  transform: scale(1.02);
  box-shadow: var(--glow-green-strong);
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-pulse-ring { animation: pulse-ring 2s ease-in-out infinite; }
.animate-slide-up { animation: slide-up 0.3s ease-out; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(14, 14, 30, 0.5); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: rgba(138, 138, 163, 0.3); border-radius: 4px; transition: background 0.3s ease; }
::-webkit-scrollbar-thumb:hover { background: rgba(138, 138, 163, 0.5); }

:root.light-theme {
  /* Light background colors */
  --deep-bg: #f8fafc;
  --surface-bg: rgba(255, 255, 255, 0.8);
  --elevated-surface: rgba(255, 255, 255, 0.9);
  --card-bg: rgba(255, 255, 255, 0.85);
  
  /* Borders */
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(16, 242, 140, 0.4);
  
  /* Text colors */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-active: #0f172a;
  --text-inactive: #94a3b8;

  /* Theme variables for inline tailwind */
  --background: #f8fafc;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --popover: #ffffff;
  --popover-foreground: #0f172a;
  --input: rgba(0, 0, 0, 0.04);
  --input-background: rgba(0, 0, 0, 0.04);
  --border: rgba(0, 0, 0, 0.08);
}
