@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --bg-dark: #06090e;
  --bg-card: #0c111c;
  --bg-card-hover: #121927;
  --border-subtle: #1e293b;
  --border-glow: #22c55e;
  --accent-green: #22c55e;
  --accent-lime: #a3e635;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
}

body {
  background-color: var(--bg-dark);
  color: #f1f5f9;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Background Cyber Grid */
.bg-grid-pattern {
  background-size: 36px 36px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

.bg-radial-hero {
  background: radial-gradient(circle at 50% -10%, rgba(34, 197, 94, 0.16) 0%, rgba(6, 182, 212, 0.08) 30%, transparent 65%);
}

.bg-radial-accent {
  background: radial-gradient(circle at 80% 50%, rgba(34, 197, 94, 0.08) 0%, transparent 60%);
}

/* Glassmorphism & Glow */
.glass-card {
  background: rgba(12, 17, 28, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 10px 30px -10px rgba(34, 197, 94, 0.15);
  transform: translateY(-2px);
}

.glow-border-green {
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.12);
}

.glow-green {
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.3);
}

.glow-badge {
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.25);
}

.text-glow {
  text-shadow: 0 0 24px rgba(34, 197, 94, 0.45);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 40%, #a3e635 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-green {
  background: linear-gradient(135deg, #4ade80 0%, #a3e635 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Terminal & Code Block */
.terminal-window {
  background: #080c14;
  border: 1px solid #1e293b;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 30px rgba(34, 197, 94, 0.06);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #06090e;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Custom range slider styling */
input[type=range] {
  -webkit-appearance: none;
  background: #1e293b;
  height: 8px;
  border-radius: 4px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #22c55e;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.9);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

/* Progress bar transitions */
.progress-bar-fill {
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal backdrop */
.modal-backdrop {
  background: rgba(4, 7, 13, 0.8);
  backdrop-filter: blur(8px);
}
