/* ══════════════════════════════════════════════════════════════════════════════
   MATTE PRO FINANCIAL TERMINAL THEME (Non-Neon, Anti-AI Glow)
   - 100% Zero Neon & Glow: Header, Footer, Running Trade, Drawer & Modal.
   - Menggunakan warna matte padat, tegas, dan tenang (Bloomberg / TradingView style).
   - Reversibel: Cukup hapus/comment satu link ini di public/index.html jika ingin kembali.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── 1. GLOBAL RESET UNTUK SEMUA GLOW, SHADOW & NEON ── */
*, *::before, *::after {
  text-shadow: none !important;
}

img, svg {
  filter: none !important;
  -webkit-filter: none !important;
}

/* Palet Warna Root Netral Matte */
:root {
  --bg-dark: #0d1117 !important;
  --bg-surface: #161b22 !important;
  --bg-card: #161b22 !important;
  --border-color: #30363d !important;
  --border-subtle: #21262d !important;
  --text-main: #e6edf3 !important;
  --text-muted: #8b949e !important;
  --accent-cyan: #60a5fa !important;    /* Soft calm blue */
  --accent-emerald: #22c55e !important; /* Solid matte green */
  --accent-rose: #ef4444 !important;    /* Solid matte red */
  --accent-amber: #eab308 !important;   /* Solid matte yellow */
}

body {
  background-color: #0d1117 !important;
  color: #e6edf3 !important;
}

/* ── 2. HEADER MATTE PENUH (ZERO NEON) ── */
header {
  background: #161b22 !important;
  border-bottom: 1px solid #30363d !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.brand-logo-img,
.brand-logo-link:hover .brand-logo-img {
  filter: none !important;
  transform: none !important;
}

.brand-badge {
  background: #21262d !important;
  color: #8b949e !important;
  border: 1px solid #30363d !important;
  box-shadow: none !important;
}

.brand-section span[style*="color: #38bdf8"],
.brand-title-smart {
  color: #e6edf3 !important;
  font-weight: 800 !important;
}

.brand-sub-title {
  color: #8b949e !important;
}

/* IHSG Bar & Market Condition Sentinel */
.ihsg-bar-wrap, #ihsgBarWrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-family: var(--font-mono, "JetBrains Mono", monospace) !important;
  font-size: 11px !important;
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  padding: 3px 9px !important;
  border-radius: 4px !important;
  user-select: none !important;
  box-shadow: none !important;
}

.ihsg-label {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #8b949e !important;
}

.ihsg-val, #ihsgPrice {
  font-weight: 800 !important;
  text-shadow: none !important;
}

.ihsg-chg, #ihsgChange {
  font-weight: 700 !important;
  font-size: 10.5px !important;
  text-shadow: none !important;
}

.ihsg-hl, #ihsgHl {
  font-size: 9.5px !important;
  color: #64748b !important;
}

/* Sentinel Teks Murni: Tanpa Kotak, Tanpa Border, Tanpa Kolom, Tanpa Neon */
.ihsg-risk-wrap {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 5px !important;
  padding: 0 !important;
  margin-left: 4px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: help !important;
}

.ihsg-risk-sep {
  color: #484f58 !important;
  font-size: 9px !important;
}

.ihsg-risk-badge {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.ihsg-risk-badge.high-risk {
  color: #ef4444 !important;
}

.ihsg-risk-badge.crash {
  color: #ef4444 !important;
  font-weight: 900 !important;
}

.ihsg-risk-badge.drop {
  color: #f59e0b !important;
}

.ihsg-risk-badge.healthy {
  color: #22c55e !important;
}

.ihsg-risk-badge.neutral {
  color: #38bdf8 !important;
}

.ihsg-risk-msg {
  font-size: 9.5px !important;
  color: #8b949e !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

@media (max-width: 980px) {
  .ihsg-risk-msg {
    display: none !important;
  }
}

/* Header SlowMo Slider & Theme Toggle */
.slowmo-slider-wrap {
  background: transparent !important;
}

.slowmo-slider-track,
.theme-slider-track {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  box-shadow: none !important;
}

.slowmo-slider-btn:hover .slowmo-slider-track,
.theme-slider-btn:hover .theme-slider-track {
  border-color: #484f58 !important;
}

.slowmo-slider-thumb,
.theme-slider-thumb {
  background: #8b949e !important;
  box-shadow: none !important;
}

.slowmo-slider-btn.active .slowmo-slider-track {
  background: #21262d !important;
  border-color: #d97706 !important;
  box-shadow: none !important;
}

.slowmo-slider-btn.active .slowmo-slider-thumb {
  background: #d97706 !important;
  box-shadow: none !important;
}

.slowmo-slider-btn.active ~ .slowmo-status-tag {
  color: #d97706 !important;
  text-shadow: none !important;
}

/* ── 3. FOOTER MATTE PENUH (ZERO NEON) ── */
.app-footer {
  background: #161b22 !important;
  border-top: 1px solid #30363d !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  color: #8b949e !important;
}

.footer-inner {
  background: transparent !important;
}

.idx-clock-block {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  box-shadow: none !important;
  padding: 2px 7px !important;
}

#idxClockTime {
  color: #e6edf3 !important;
  text-shadow: none !important;
}

.clock-status-pill {
  border: 1px solid #30363d !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

.status-open {
  background: rgba(34, 197, 94, 0.14) !important;
  color: #22c55e !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
}

.status-break {
  background: rgba(234, 179, 8, 0.14) !important;
  color: #eab308 !important;
  border-color: rgba(234, 179, 8, 0.3) !important;
}

.status-pre {
  background: rgba(96, 165, 250, 0.14) !important;
  color: #60a5fa !important;
  border-color: rgba(96, 165, 250, 0.3) !important;
}

.status-closed {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.footer-v-sep {
  background: #30363d !important;
}

#statusBadge,
.status-badge {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  box-shadow: none !important;
}

.status-badge.connected {
  background: rgba(34, 197, 94, 0.1) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
  color: #22c55e !important;
}

.status-badge.connecting {
  background: rgba(234, 179, 8, 0.1) !important;
  border-color: rgba(234, 179, 8, 0.3) !important;
  color: #eab308 !important;
}

.status-badge.disconnected {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #ef4444 !important;
}

.pulse-dot,
.pulse-dot-mini,
.trending-pulse-dot {
  box-shadow: none !important;
  animation: none !important;
}

/* Footer Trending Ticker Bar */
.footer-trending-bar {
  background: transparent !important;
}

.trending-ticker-badge {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  box-shadow: none !important;
}

.trending-pulse-dot {
  background: #60a5fa !important;
}

.trending-badge-title {
  color: #8b949e !important;
  text-shadow: none !important;
}

.trending-ticker-scroll {
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.group-pill,
.sector-pill,
.ticker-section-pill {
  background: #21262d !important;
  border: 1px solid #30363d !important;
  color: #c9d1d9 !important;
  box-shadow: none !important;
}

.pill-pct.pct-up,
.ticker-stock-pill.pct-up,
.hot-pct.pct-up {
  color: #22c55e !important;
  background: transparent !important;
  text-shadow: none !important;
}

.pill-pct.pct-dn,
.ticker-stock-pill.pct-dn,
.hot-pct.pct-dn {
  color: #ef4444 !important;
  background: transparent !important;
  text-shadow: none !important;
}

.pill-pct.pct-flat,
.ticker-stock-pill.pct-flat,
.hot-pct.pct-flat {
  color: #eab308 !important;
  background: transparent !important;
  text-shadow: none !important;
}

.ticker-stock-pill:hover {
  filter: none !important;
  text-decoration: underline;
}

/* ── 4. RADAR 30s (HAKA / HAKI) MATTE ── */
.radar-bar {
  background: #161b22 !important;
  border: 1px solid #30363d !important;
}

.radar-group {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
}

.radar-group.haka {
  border-left: 3px solid #22c55e !important;
}

.radar-group.haki {
  border-left: 3px solid #ef4444 !important;
}

.pulse-dot-mini.green { background: #22c55e !important; }
.pulse-dot-mini.red { background: #ef4444 !important; }

.active-card-slim {
  background: #161b22 !important;
  border: 1px solid #30363d !important;
  box-shadow: none !important;
}

.active-card-slim:hover {
  background: #21262d !important;
  border-color: #484f58 !important;
  box-shadow: none !important;
}

.active-card-slim.haka { border-left: 2px solid #22c55e !important; }
.active-card-slim.haki { border-left: 2px solid #ef4444 !important; }

/* ── 5. RUNNING TRADE & SPLIT GRID ── */
.rt-split-bar {
  background: #161b22 !important;
  border-bottom: 1px solid #30363d !important;
}

.rt-split-grid-btns {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
}

.rt-grid-btn {
  color: #8b949e !important;
  box-shadow: none !important;
}

.rt-grid-btn:hover {
  background: #21262d !important;
  color: #e6edf3 !important;
}

.rt-grid-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.rt-action-hints {
  color: #8b949e !important;
}

.rt-hint-key {
  background: #21262d !important;
  border: 1px solid #30363d !important;
  color: #8b949e !important;
  box-shadow: none !important;
}

.rt-hint-tag {
  color: #c9d1d9 !important;
}

.rt-hint-divider {
  color: #30363d !important;
}

.rt-split-filter-btn,
.rt-col-picker-btn {
  background: #21262d !important;
  border: 1px solid #30363d !important;
  color: #e6edf3 !important;
  box-shadow: none !important;
}

.rt-split-filter-btn:hover,
.rt-col-picker-btn:hover {
  background: #30363d !important;
}

/* Kolom Act dan Flow (Matte Pro Terminal - Teks Murni Tanpa Kotak & Tanpa Neon Sesuai Permintaan) */
.action-pill {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  padding: 0 !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  letter-spacing: 0.3px !important;
}

.action-pill.buy {
  background: transparent !important;
  color: #22c55e !important;
  border: none !important;
}

.action-pill.sell {
  background: transparent !important;
  color: #ef4444 !important;
  border: none !important;
}

.flow-pill {
  border-radius: 0 !important;
  font-weight: 800 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  padding: 0 2px !important;
}

.flow-pill.ww {
  background: transparent !important;
  color: #38bdf8 !important;
  border: none !important;
}

.flow-pill.wr-buy {
  background: transparent !important;
  color: #4ade80 !important;
  border: none !important;
}

.flow-pill.wr-sell {
  background: transparent !important;
  color: #f87171 !important;
  border: none !important;
}

.flow-pill.rw,
.flow-pill.rw-buy {
  background: transparent !important;
  color: #c084fc !important;
  border: none !important;
}

.flow-pill.rw-sell {
  background: transparent !important;
  color: #2dd4bf !important;
  border: none !important;
}

.flow-pill.rr {
  background: transparent !important;
  color: #94a3b8 !important;
  border: none !important;
}

/* Tabel Running Trade */
.rt-col-card {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  box-shadow: none !important;
}

.rt-col-header {
  background: #161b22 !important;
  border-bottom: 1px solid #30363d !important;
}

.rt-col-name-input {
  background: transparent !important;
  color: #e6edf3 !important;
}

.rt-col-count-badge {
  background: #21262d !important;
  border: 1px solid #30363d !important;
  color: #8b949e !important;
}

.rt-col-btn {
  background: #21262d !important;
  border: 1px solid #30363d !important;
  color: #8b949e !important;
  box-shadow: none !important;
}

.rt-col-btn:hover {
  background: #30363d !important;
  color: #e6edf3 !important;
}

.rt-col-btn.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

.rt-col-table-wrapper th {
  background: #161b22 !important;
  border-bottom: 1px solid #30363d !important;
  color: #8b949e !important;
  backdrop-filter: none !important;
}

.rt-col-table-wrapper td {
  border-bottom: 1px solid #21262d !important;
}

.rt-col-table-wrapper tr:hover td {
  background: #1c2128 !important;
}

.rt-col-resizer:hover::after,
.rt-col-resizer.active::after {
  background: #60a5fa !important;
  box-shadow: none !important;
}

.rt-col-slowmo-badge {
  background: #21262d !important;
  border: 1px solid #d97706 !important;
  color: #d97706 !important;
  box-shadow: none !important;
}

.rt-col-table-wrapper.slowmo-active {
  box-shadow: inset 0 0 0 1px #d97706 !important;
}

/* Angka & Nilai Tanpa Glow */
.sig-txt,
.sig-txt.ara,
.sig-txt.ath,
.sig-txt.flip,
.col-val,
.col-val.val-100jt,
.col-val.val-500jt,
.col-val.val-1m,
.olh-o,
.olh-l,
.olh-h {
  text-shadow: none !important;
  box-shadow: none !important;
}

.sig-txt.ara { color: #c084fc !important; }
.sig-txt.ath { color: #eab308 !important; }
.sig-txt.flip { color: #22c55e !important; }
.col-val.val-default { color: #8b949e !important; font-weight: 500 !important; }
.col-val.val-50jt    { color: #60a5fa !important; font-weight: 700 !important; }
.col-val.val-100jt   { color: #f59e0b !important; font-weight: 800 !important; }
.col-val.val-500jt   { color: #c084fc !important; font-weight: 800 !important; }
.col-val.val-1m      { color: #22c55e !important; font-weight: 800 !important; }
.olh-o { color: #eab308 !important; }
.olh-l { color: #ef4444 !important; }
.olh-h { color: #22c55e !important; }

/* ── 6. DOCK RAIL (NAVIGASI SAMPING KANAN) ── */
.dock-rail {
  background: #161b22 !important;
  border-left: 1px solid #30363d !important;
}

.dock-rail-item {
  color: #8b949e !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dock-rail-item:hover {
  color: #e6edf3 !important;
  background: #21262d !important;
  box-shadow: none !important;
}

.dock-rail-item.active {
  color: #e6edf3 !important;
  background: #21262d !important;
  box-shadow: none !important;
}

.dock-rail-item.active::before {
  background: #2563eb !important;
  box-shadow: none !important;
}

.dock-rail-item svg,
.dock-rail-item:hover svg,
.dock-rail-item.active svg {
  filter: none !important;
  transform: none !important;
}

/* ── 7. MODAL, DRAWER & DIALOG PANEL (MATTE CLEAN) ── */
.recom-drawer,
.movers-drawer,
.broksum-drawer,
.signals-drawer,
.watchlist-drawer,
.news-drawer,
.settings-drawer,
.layout-drawer,
.scalp-modal-content,
.ob-modal-content,
.custom-filter-card {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7) !important;
}

.recom-drawer-header,
.movers-header,
.broksum-drawer-header,
.scalp-card-header,
.ob-modal-header,
.custom-filter-header,
.custom-filter-footer {
  background: #161b22 !important;
  border-bottom: 1px solid #30363d !important;
  border-top-color: #30363d !important;
}

.recom-tabs-bar,
.movers-tabs {
  background: #161b22 !important;
  border-bottom: 1px solid #30363d !important;
}

.recom-tab-btn,
.movers-tab-btn {
  color: #8b949e !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.recom-tab-btn.active,
.movers-tab-btn.active {
  color: #e6edf3 !important;
  border-bottom: 2px solid #2563eb !important;
  background: transparent !important;
}

.recom-table thead th,
.movers-table-header,
.audit-table thead th {
  background: #161b22 !important;
  border-bottom: 1px solid #30363d !important;
  color: #8b949e !important;
}

.recom-audit-card,
.sb-card,
.quick-scalp-card {
  background: #161b22 !important;
  border: 1px solid #30363d !important;
  box-shadow: none !important;
}

.recom-kpi-item {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
}

.btn-modal-apply {
  background: #2563eb !important;
  border: 1px solid #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.btn-modal-apply:hover {
  background: #1d4ed8 !important;
  box-shadow: none !important;
}

/* ── 8. INPUT & DROPDOWN FORMULIR ── */
input, select, textarea {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  color: #e6edf3 !important;
  box-shadow: none !important;
}

input:focus, select:focus, textarea:focus {
  border-color: #60a5fa !important;
  outline: none !important;
  box-shadow: none !important;
}
