@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";

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

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: 'JetBrains Mono', monospace;
  --font-mono: 'JetBrains Mono', monospace;
  --font-heading: 'JetBrains Mono', monospace;
  --color-sidebar-ring: var(--sidebar-ring);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar: var(--sidebar);
  --color-chart-5: var(--chart-5);
  --color-chart-4: var(--chart-4);
  --color-chart-3: var(--chart-3);
  --color-chart-2: var(--chart-2);
  --color-chart-1: var(--chart-1);
  --color-ring: var(--ring);
  --color-input: var(--input);
  --color-border: var(--border);
  --color-destructive: var(--destructive);
  --color-accent-foreground: var(--accent-foreground);
  --color-accent: var(--accent);
  --color-muted-foreground: var(--muted-foreground);
  --color-muted: var(--muted);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-secondary: var(--secondary);
  --color-primary-foreground: var(--primary-foreground);
  --color-primary: var(--primary);
  --color-popover-foreground: var(--popover-foreground);
  --color-popover: var(--popover);
  --color-card-foreground: var(--card-foreground);
  --color-card: var(--card);
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;
  --radius-2xl: 0px;
  --radius-3xl: 0px;
  --radius-4xl: 0px;
}

/* Terminal Theme — Dark only, no light mode */
:root {
  --background: #0a0a0a;
  --foreground: #33ff00;
  --card: #0d0d0d;
  --card-foreground: #33ff00;
  --popover: #0d0d0d;
  --popover-foreground: #33ff00;
  --primary: #33ff00;
  --primary-foreground: #0a0a0a;
  --secondary: #ffb000;
  --secondary-foreground: #0a0a0a;
  --muted: #111;
  --muted-foreground: #1f521f;
  --accent: #33ff00;
  --accent-foreground: #0a0a0a;
  --destructive: #ff3333;
  --border: #1f521f;
  --input: #1f521f;
  --ring: #33ff00;
  --chart-1: #33ff00;
  --chart-2: #ffb000;
  --chart-3: #ff3333;
  --chart-4: #1f521f;
  --chart-5: #0d4d0d;
  --radius: 0px;
  --sidebar: #0a0a0a;
  --sidebar-foreground: #33ff00;
  --sidebar-primary: #33ff00;
  --sidebar-primary-foreground: #0a0a0a;
  --sidebar-accent: #111;
  --sidebar-accent-foreground: #33ff00;
  --sidebar-border: #1f521f;
  --sidebar-ring: #33ff00;
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    background: #0a0a0a;
    color: #33ff00;
    font-family: 'JetBrains Mono', monospace;
  }
}

/* CRT overlay removed — reduces readability without information gain */

/* Phosphor text glow */
.glow {
  text-shadow: 0 0 5px rgba(51, 255, 0, 0.5);
}

.glow-amber {
  text-shadow: 0 0 5px rgba(255, 176, 0, 0.5);
}

.glow-red {
  text-shadow: 0 0 5px rgba(255, 51, 51, 0.5);
}

/* Blinking cursor */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.cursor-blink::after {
  content: '█';
  animation: blink 1s step-end infinite;
  color: #33ff00;
}

/* Terminal window borders */
.terminal-window {
  border: 1px solid #1f521f;
  background: #0d0d0d;
}

.terminal-header {
  border-bottom: 1px solid #1f521f;
  padding: 4px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1f521f;
}

/* ASCII progress bar */
.ascii-bar {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -1px;
}

/* Selection */
::selection {
  background: #33ff00;
  color: #0a0a0a;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #1f521f;
}
::-webkit-scrollbar-thumb:hover {
  background: #33ff00;
}
