@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-deep: #07090e;
  --bg-card: rgba(14, 19, 31, 0.75);
  --border-subtle: rgba(56, 189, 248, 0.12);
  --accent-cyan: #00f0ff;
  --accent-blue: #38bdf8;
  --accent-electric: #2563eb;
}

html:not(.dark) {
  --bg-deep: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.9);
  --border-subtle: rgba(14, 165, 233, 0.15);
  background-color: #f8fafc;
  color: #0f172a;
}

html.dark {
  background-color: #07090e;
  color: #f1f5f9;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: background-color 0.35s ease, color 0.35s ease;
}

header, nav, section, div, button, a, input, select, textarea {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.2s ease, box-shadow 0.25s ease;
}

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

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

html:not(.dark) ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #ffffff 10%, #38bdf8 60%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html:not(.dark) .text-gradient-cyan {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.nav-link-btn:active,
.btn-interactive:active {
  transform: scale(0.94) translateY(1px);
}

.nav-link-btn.nav-active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(37, 99, 235, 0.2));
  color: #00f0ff !important;
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.35);
}

html:not(.dark) .nav-link-btn.nav-active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(37, 99, 235, 0.1));
  color: #0284c7 !important;
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.2);
}

.nav-link-btn.nav-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: #00f0ff;
  border-radius: 9999px;
  box-shadow: 0 0 8px #00f0ff;
}

html:not(.dark) .nav-link-btn.nav-active::after {
  background: #0284c7;
  box-shadow: 0 0 6px #0284c7;
}

.ripple-surface {
  position: relative;
  overflow: hidden;
}

@keyframes ripple-wave {
  0% {
    transform: scale(0);
    opacity: 0.85;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.click-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.6) 0%, rgba(56, 189, 248, 0.2) 60%, transparent 100%);
  animation: ripple-wave 0.5s ease-out forwards;
}

html:not(.dark) .click-ripple {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.5) 0%, rgba(59, 130, 246, 0.15) 60%, transparent 100%);
}

.theme-toggle-box {
  position: relative;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  margin-left: -9px;
  transform-origin: center center;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.3s ease,
              filter 0.3s ease;
  pointer-events: none;
}

html.dark .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

html.dark .theme-icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.1);
  color: #fbbf24;
}

html:not(.dark) .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: #f59e0b;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
}

html:not(.dark) .theme-icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.1);
  color: #0284c7;
}

.theme-btn-pop {
  animation: theme-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes theme-pop {
  0% { transform: scale(0.88); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.glow-blob {
  position: absolute;
  filter: blur(90px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  transition: all 1s ease-in-out;
}

html:not(.dark) .glow-blob {
  opacity: 0.18;
  filter: blur(100px);
}

.glow-blob-cyan {
  background: radial-gradient(circle, rgba(0, 240, 255, 0.4) 0%, rgba(56, 189, 248, 0.1) 70%, transparent 100%);
}

.glow-blob-blue {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45) 0%, rgba(30, 58, 138, 0.15) 70%, transparent 100%);
}

@keyframes radar-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.radar-live {
  animation: radar-pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes toast-enter {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast-anim {
  animation: toast-enter 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feedback-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #15803d;
}
html.dark .feedback-success {
  color: #4ade80;
}

.feedback-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #b45309;
}
html.dark .feedback-warning {
  color: #fbbf24;
}

.feedback-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #b91c1c;
}
html.dark .feedback-error {
  color: #f87171;
}

