/* busike2 Trading Terminal Custom Styling */

:root {
  --bg-main: #0B0E14;
  --bg-card: #151922;
  --bg-card-hover: #1C222E;
  --border-color: #232A3B;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --bull-color: #EF4444; /* 한국 증시 상승 빨강 */
  --bear-color: #3B82F6; /* 한국 증시 하락 파랑 */
  --accent-cyan: #06B6D4;
  --accent-gold: #F59E0B;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0B0E14;
}
::-webkit-scrollbar-thumb {
  background: #232A3B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Real-time Tick Flash Animation */
@keyframes flash-up {
  0% { background-color: rgba(239, 68, 68, 0.4); }
  100% { background-color: transparent; }
}

@keyframes flash-down {
  0% { background-color: rgba(59, 130, 246, 0.4); }
  100% { background-color: transparent; }
}

.flash-bull {
  animation: flash-up 0.8s ease-out;
}

.flash-bear {
  animation: flash-down 0.8s ease-out;
}

/* Glowing Pulsing Status Dots */
.status-pulse-green {
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  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);
  }
}

.status-pulse-red {
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Card Styling */
.trading-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  transition: all 0.2s ease-in-out;
}

.trading-card:hover {
  border-color: #334155;
}

/* Tab Active Styles */
.nav-tab-active {
  color: #38BDF8;
  border-bottom: 2px solid #38BDF8;
}

/* Mobile Safe Area Bottom Bar */
.mobile-bottom-bar {
  padding-bottom: env(safe-area-inset-bottom, 12px);
}

/* Badge styles */
.badge-bull {
  background-color: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-bear {
  background-color: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-neutral {
  background-color: rgba(100, 116, 139, 0.15);
  color: #94A3B8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}
