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

:root {
  --bg-main: #0B0F17;
  --bg-card: #111827;
  --bg-card-hover: #1A2234;
  --bg-input: #1F293D;
  --border: #243048;
  --border-focus: #3B82F6;
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --primary: #3B82F6;
  --primary-glow: rgba(59, 130, 246, 0.25);
  --accent-cyan: #06B6D4;
  --accent-green: #10B981;
  --accent-amber: #F59E0B;
  --accent-purple: #8B5CF6;
  --accent-rose: #F43F5E;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html, body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #374151;
}

/* Glass & Glow */
.glass-panel {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

.terminal-box {
  font-family: 'JetBrains Mono', monospace;
  background: #06090F;
  border: 1px solid #1E293B;
  color: #10B981;
}

/* Kanban column */
.kanban-col {
  min-height: calc(100vh - 280px);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.task-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
}
.task-card:hover {
  transform: translateY(-2px);
  border-color: #38BDF8;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
}

/* Scale badges */
.scale-badge-small {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.scale-badge-medium {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.scale-badge-large {
  background: rgba(139, 92, 246, 0.15);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Traffic source pills */
.source-pill-tiktok {
  background: rgba(244, 63, 94, 0.15);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.source-pill-facebook {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.source-pill-google {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Status dots */
.status-pulse {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Navigation Tab Styles */
.nav-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.65rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
  color: #94A3B8;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  user-select: none;
}
.nav-tab-btn:hover {
  color: #F8FAFC;
  background-color: rgba(30, 41, 59, 0.7);
  border-color: rgba(51, 65, 85, 0.6);
}
.nav-tab-btn.active-tab {
  color: #FFFFFF !important;
  background-color: #1E293B !important;
  border-color: rgba(71, 85, 105, 0.6) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3) !important;
}

/* Mobile Slide-Over Drawer - 100% Bulletproof & Hardware Accelerated */
#mobile-drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  display: none !important;
}

#mobile-drawer.is-active {
  display: block !important;
}

#mobile-drawer .mobile-drawer-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 100000 !important;
  cursor: pointer !important;
}

#mobile-drawer .mobile-drawer-panel {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 320px !important;
  max-width: 85vw !important;
  height: 100vh !important;
  background-color: #0F172A !important;
  border-left: 1px solid #1E293B !important;
  box-shadow: -10px 0 35px -5px rgba(0, 0, 0, 0.8) !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 100001 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  transform: translate3d(0, 0, 0) !important;
  animation: slideDrawerIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes slideDrawerIn {
  from {
    transform: translate3d(100%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

/* Mobile Fixed Bottom Navigation Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(11, 15, 23, 0.94);
  border-top: 1px solid rgba(36, 48, 72, 0.8);
  box-shadow: 0 -4px 20px -2px rgba(0, 0, 0, 0.5);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 12px;
  color: #94A3B8;
  font-size: 10px;
  font-weight: 500;
  transition: all 0.15s ease;
  position: relative;
  min-width: 60px;
}
.bottom-nav-item:hover, .bottom-nav-item.active-bottom-tab {
  color: #38BDF8;
}
.bottom-nav-item.active-bottom-tab::after {
  content: '';
  position: absolute;
  top: 0;
  width: 20px;
  height: 2px;
  background: #38BDF8;
  border-radius: 9999px;
}

/* Row highlight for Phishing / Red warning banner */
.row-phishing {
  background: rgba(239, 68, 68, 0.08) !important;
  border-left: 3px solid #EF4444 !important;
}
.row-phishing:hover {
  background: rgba(239, 68, 68, 0.14) !important;
}

/* Row highlight for Captcha */
.row-captcha {
  border-left: 3px solid #F59E0B !important;
}


