/* SADD Hacker-Terminal Design System - Tailwind CSS 4 & Custom Cyber Utilities */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-base: #0A0E0F;
  --bg-panel: #0D1117;
  --bg-card: #121820;
  --bg-card-hover: #16202A;
  --border-muted: #1E293B;
  --border-active: #334155;

  --color-primary: #00FF9C;
  --color-cyan: #00E5FF;
  --color-danger: #FF3B3B;
  --color-warning: #FFB800;
  --color-info: #3B82F6;

  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.font-mono,
code,
pre,
.terminal-font {
  font-family: 'Fira Code', monospace;
}

/* Scanline and Grid Background Effect */
.bg-cyber-grid {
  background-size: 32px 32px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

.scanlines {
  position: relative;
}

.scanlines::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
}

/* Glowing Border and Box Shadows */
.glow-primary {
  box-shadow: 0 0 15px rgba(0, 255, 156, 0.25), inset 0 0 15px rgba(0, 255, 156, 0.05);
}

.glow-primary-hover:hover {
  box-shadow: 0 0 20px rgba(0, 255, 156, 0.4), inset 0 0 10px rgba(0, 255, 156, 0.1);
  border-color: #00FF9C !important;
}

.glow-cyan {
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
}

.glow-danger {
  box-shadow: 0 0 15px rgba(255, 59, 59, 0.3);
}

.glow-warning {
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.3);
}

.cyber-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-muted);
  border-radius: 0.5rem;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-card:hover {
  border-color: rgba(0, 255, 156, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

::-webkit-scrollbar-track {
  background: #0A0E0F;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #00FF9C;
  box-shadow: 0 0 8px #00FF9C;
}

/* Blinking Terminal Cursor */
@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.cursor-blink {
  animation: blink 1s infinite;
}

/* Custom Glassmorphism */
.glass-panel {
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}