/* Cyber/Tech Dark Mode with Emerald Neon Accents */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Kanit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --primary-emerald: #10b981;
  --primary-emerald-glow: rgba(16, 185, 129, 0.35);
  --primary-emerald-bright: #34d399;
  --cyber-bg: #070b12;
  --cyber-surface: #0e1524;
  --cyber-surface-card: #131c31;
  --cyber-border: rgba(16, 185, 129, 0.2);
  --cyber-text: #e2e8f0;
  --cyber-text-muted: #94a3b8;
  --cyber-grid: rgba(16, 185, 129, 0.05);
}

.light-theme {
  --cyber-bg: #f8fafc;
  --cyber-surface: #ffffff;
  --cyber-surface-card: #f1f5f9;
  --cyber-border: rgba(16, 185, 129, 0.3);
  --cyber-text: #0f172a;
  --cyber-text-muted: #475569;
  --cyber-grid: rgba(16, 185, 129, 0.07);
}

body {
  font-family: 'Inter', 'Kanit', sans-serif;
  background-color: var(--cyber-bg);
  color: var(--cyber-text);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.font-tech {
  font-family: 'Chakra Petch', 'Kanit', sans-serif;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cyber-bg);
}
::-webkit-scrollbar-thumb {
  background: #10b98144;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #10b981aa;
  box-shadow: 0 0 10px #10b981;
}

/* Cyber Matrix / Grid Background */
.cyber-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, var(--cyber-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--cyber-grid) 1px, transparent 1px);
}

/* Ambient Radial Glow */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.25;
  z-index: 0;
}

/* Cyber Glow Utilities */
.neon-glow {
  box-shadow: 0 0 20px var(--primary-emerald-glow), inset 0 0 10px rgba(16, 185, 129, 0.1);
}

.neon-glow-hover:hover {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.45), 0 0 10px rgba(52, 211, 153, 0.3);
  border-color: rgba(52, 211, 153, 0.8) !important;
}

.neon-text-glow {
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5), 0 0 20px rgba(16, 185, 129, 0.3);
}

/* Cyber Card Borders with Tech Corners */
.cyber-card {
  position: relative;
  background: var(--cyber-surface);
  border: 1px solid var(--cyber-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #10b981;
  border-left: 2px solid #10b981;
  pointer-events: none;
}

.cyber-card::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #10b981;
  border-right: 2px solid #10b981;
  pointer-events: none;
}

/* HUD Badges & Chips */
.cyber-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* Cyber Scanline effect (subtle) */
.scanline {
  position: relative;
  overflow: hidden;
}
.scanline::after {
  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%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  z-index: 2;
  background-size: 100% 3px, 6px 100%;
  pointer-events: none;
  opacity: 0.35;
}

/* Glowing Pulsing Status Indicator */
.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-emerald 2s infinite;
}

@keyframes pulse-emerald {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Modal Transitions */
.modal-backdrop {
  background-color: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(8px);
}

/* Custom Button Cyber Cut */
.btn-cyber {
  position: relative;
  transition: all 0.2s ease;
  clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
}
.btn-cyber:hover {
  transform: translateY(-1px);
}
.btn-cyber:active {
  transform: translateY(1px);
}

/* Toast animations */
@keyframes toast-in {
  from {
    transform: translateX(100%) translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
}
.toast-animate-in {
  animation: toast-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
