/* App container for background and centering */
.app-container {
  width: 100vw;
  min-height: 100vh;
  background: #10132A;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header logo mark — a restrained single pulse, not a fast sweep, so the
   header reads as "always scanning" without competing with page content. */
.signal-mark-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.signal-mark-pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #C9962F;
  opacity: 0;
  animation: header-mark-pulse 3s ease-out infinite;
}
@keyframes header-mark-pulse {
  0%   { transform: scale(0.6); opacity: 0.6; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* DataTable hover tooltip — dark theme override */
.dash-tooltip {
  background-color: #171B3A !important;
  border: 1px solid #C9962F !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  color: #F3EFEA !important;
  font-size: 0.88rem !important;
  font-family: "Instrument Sans", sans-serif !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.55) !important;
  max-width: 280px !important;
  line-height: 1.7 !important;
  white-space: pre-line !important;
}
.dash-tooltip p,
.dash-tooltip span,
.dash-tooltip div {
  color: #F3EFEA !important;
  margin: 0 !important;
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #171B3A 60%, #C9962F 100%);
  box-shadow: 0 2px 16px 0 #10132Acc;
  height: 64px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.main-content {
  padding: 32px 48px 32px 48px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
.logo {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: 600;
  color: #C9962F;
  margin-bottom: 24px;
}
body {
  background-color: #10132A;
  color: #F3EFEA;
  font-family: "Instrument Sans", sans-serif;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #10132A;
  box-shadow: 0 0 8px #C9962F44;
}
.brand-name {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: 600;
  color: #C9962F;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px #10132Acc;
}
.nav-tabs {
  display: flex;
  gap: 32px;
  margin-left: 32px;
}
.nav-tab {
  color: #F3EFEA;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-bottom 0.2s;
}
.nav-tab:hover {
  color: #E8C87A;
  border-bottom: 2px solid #E8C87A;
}
.nav-tab.active {
  color: #E8C87A;
  border-bottom: 2px solid #E8C87A;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #171B3A;
  padding: 16px 24px;
  border-radius: 10px;
  margin-bottom: 24px;
}

.header-title {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #C9962F;
}

.header-status {
  color: #E8C87A;
  font-weight: 500;
}

.page {
  background: #171B3A;
  border-radius: 10px;
  padding: 32px 24px;
  margin-bottom: 32px;
  width: 100%;
  box-sizing: border-box;
}

/* ── No-trade idle state ───────────────────────────────────────────────── */
/* Restrained single pulse (3s), matching the Signal logo mark — not the
   fast aggressive sweep of the old green terminal-style scanner. */
@keyframes radar-ping {
  0%   { transform: scale(0.4); opacity: 0.55; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes radar-ping2 {
  0%   { transform: scale(0.4); opacity: 0.35; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 0 0 #C9962F55, 0 0 18px 4px #C9962F30; }
  50%       { box-shadow: 0 0 0 8px #C9962F00, 0 0 32px 8px #C9962F45; }
}
@keyframes scan-line {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes text-flicker {
  0%, 90%, 100% { opacity: 1; }
  93%            { opacity: 0.4; }
  96%            { opacity: 1; }
  98%            { opacity: 0.6; }
}
@keyframes dot-blink {
  0%, 100% { opacity: 0.2; }
  33%       { opacity: 1; }
  66%       { opacity: 0.5; }
}

.no-trade-radar {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.no-trade-radar .ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid #C9962F;
  animation: radar-ping 3s ease-out infinite;
}
.no-trade-radar .ping2 {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid #E8C87A80;
  animation: radar-ping2 3s ease-out infinite 1.5s;
}
.no-trade-radar .scan-sweep {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  overflow: hidden;
  animation: scan-line 6s linear infinite;
}
.no-trade-radar .scan-sweep::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 50%; height: 50%;
  background: conic-gradient(from 0deg, transparent 85%, #C9962F30 100%);
  transform-origin: 0% 0%;
  border-radius: 0 0 100% 0;
}
.no-trade-radar .core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #C9962F;
  animation: core-pulse 3s ease-in-out infinite;
}
.no-trade-label {
  font-family: "Instrument Sans", sans-serif;
  letter-spacing: 0.12em;
  animation: text-flicker 6s ease-in-out infinite;
}
.no-trade-dot1 { animation: dot-blink 1.4s ease-in-out infinite 0s; }
.no-trade-dot2 { animation: dot-blink 1.4s ease-in-out infinite 0.45s; }
.no-trade-dot3 { animation: dot-blink 1.4s ease-in-out infinite 0.9s; }
