/* BingX Automated Crypto Trading Agent - Dark Theme Styling */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #0b0e14;
  --bg-secondary: #131823;
  --bg-card: #182030;
  --border-color: #242f45;
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --success: #10b981;
  --danger: #f43f5e;
  --warning: #f59e0b;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: #e2e8f0;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Glassmorphism Card */
.glass-panel {
  background: rgba(24, 32, 48, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
}

.glass-panel:hover {
  border-color: rgba(79, 172, 254, 0.4);
}

/* Glowing Badges */
.glow-green {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

.glow-red {
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.35);
}

.glow-cyan {
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
}

/* Pulse animation for live dot */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.15);
  }
}

.live-dot {
  animation: pulse-glow 2s infinite ease-in-out;
}

/* Chart Container - Responsive Height */
#chart-container {
  width: 100%;
  height: 380px;
  min-height: 280px;
  position: relative;
}

@media (max-width: 640px) {
  #chart-container {
    height: 300px;
  }
}

/* Log output terminal styling */
.terminal-output {
  background: #080a0f;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.4;
  border: 1px solid #1e293b;
}

/* Smooth Touch Scrolling for Mobile Tables */
.touch-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Mobile Bottom Navigation Dock */
.mobile-bottom-dock {
  background: rgba(14, 19, 31, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(36, 47, 69, 0.8);
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.2rem;
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 600;
  transition: all 0.2s ease;
  min-height: 48px;
  touch-action: manipulation;
}

.mobile-nav-item.active {
  color: #22d3ee;
}

.mobile-nav-item.active i,
.mobile-nav-item.active svg {
  color: #22d3ee;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6));
}

/* Table whitespace protection on mobile */
.responsive-table th,
.responsive-table td {
  white-space: nowrap;
}
