/* =======================================================
   MARKET MOVERS SLIDE-OVER DRAWER (LEFT SIDE)
   Smart Running Trade - Modular Wadah Architecture
   ======================================================= */

.movers-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.movers-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.movers-drawer {
  position: fixed;
  right: 44px;
  left: auto;
  top: 0;
  bottom: 0;
  width: 520px;
  max-width: 95vw;
  background: #080d22;
  border-left: 1px solid rgba(56, 189, 248, 0.25);
  border-right: none;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f8fafc;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  user-select: none;
}

body.sidebar-hidden .movers-drawer {
  right: 0 !important;
}

.movers-drawer.active {
  transform: translateX(0);
}

/* Header */
.movers-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.95);
}

.movers-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.movers-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: moversPulse 1.8s infinite;
}

@keyframes moversPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.movers-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.movers-count-pill {
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 7px;
  border-radius: 999px;
}

.movers-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.movers-icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}

.movers-icon-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.movers-icon-btn.spinning {
  animation: moversSpin 0.7s linear infinite;
  color: #38bdf8;
}

@keyframes moversSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 5 Main Tabs */
.movers-tabs-bar {
  display: flex;
  background: rgba(11, 17, 44, 0.95);
  border-bottom: 1px solid rgba(51, 65, 85, 0.45);
  overflow-x: auto;
  scrollbar-width: none;
}

.movers-tabs-bar::-webkit-scrollbar {
  display: none;
}

.mover-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  font-size: 11px;
  font-weight: 700;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.mover-tab-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #f8fafc;
}

.mover-tab-btn.active {
  background: rgba(255, 255, 255, 0.05);
}

/* Sub-filter chips */
.movers-filter-bar {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid rgba(51, 65, 85, 0.35);
}

.mover-type-chip {
  flex: 1;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid rgba(51, 65, 85, 0.5);
  background: rgba(15, 23, 42, 0.8);
  color: #94a3b8;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.mover-type-chip:hover {
  border-color: rgba(56, 189, 248, 0.35);
  color: #f8fafc;
}

.mover-type-chip.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: #38bdf8;
  color: #38bdf8;
  font-weight: 700;
}

/* Search Box */
.movers-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(51, 65, 85, 0.35);
}

.movers-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f8fafc;
  font-size: 11.5px;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
}

.movers-search-input::placeholder {
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}

.movers-search-clear {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

.movers-search-clear:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

/* Table Header */
.movers-table-header {
  display: grid;
  grid-template-columns: 145px 145px 1fr;
  padding: 6px 12px;
  font-size: 9.5px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(51, 65, 85, 0.35);
}

.movers-th-left { text-align: left; }
.movers-th-center { text-align: center; }
.movers-th-right { text-align: right; }

/* Scrollable Stock List */
.movers-list-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.movers-list-scroll::-webkit-scrollbar {
  width: 5px;
}

.movers-list-scroll::-webkit-scrollbar-thumb {
  background: rgba(51, 65, 85, 0.6);
  border-radius: 3px;
}

/* Row Item */
.mover-row-item {
  display: grid;
  grid-template-columns: 145px 145px 1fr;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.12s ease;
  position: relative;
}

.mover-row-item:hover {
  background: rgba(30, 41, 59, 0.5);
}

.mover-row-item.selected {
  background: rgba(6, 182, 212, 0.12);
  border-left: 3px solid #06b6d4;
}

/* Column 1: Symbol & Name */
.mover-col-symbol {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.stock-avatar {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid;
  flex-shrink: 0;
}

.symbol-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.symbol-line {
  display: flex;
  align-items: center;
  gap: 4px;
}

.symbol-code {
  font-size: 13px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.2px;
  color: #f8fafc;
}

.waran-badge {
  font-size: 8px;
  font-weight: 800;
  color: #fb923c;
  background: rgba(251, 146, 60, 0.14);
  border: 1px solid rgba(251, 146, 60, 0.4);
  padding: 0 4px;
  border-radius: 3px;
  line-height: 1.2;
}

.waran-badge.wt {
  color: #c084fc;
  background: rgba(192, 132, 252, 0.14);
  border: 1px solid rgba(192, 132, 252, 0.4);
}

.company-name {
  font-size: 9.5px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 105px;
  line-height: 1.2;
}

/* Column 2: Sparkline & S/R/P */
.mover-col-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 4px;
}

.sparkline-svg-wrap {
  width: 135px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sparkline-svg-wrap svg {
  overflow: visible;
  display: block;
}

.sr-pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 135px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: -0.2px;
  padding: 1px 0;
}

.sr-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #64748b;
}

.sr-pill-item b {
  font-weight: 700;
}

.sr-pill-item.open b { color: #facc15; } /* Open: Kuning */
.sr-pill-item.low b { color: #f87171; }  /* Low: Merah */
.sr-pill-item.high b { color: #34d399; } /* High: Hijau */
.sr-pill-item.prev b { color: #cbd5e1; }

/* Column 3: Price & Metrics */
.mover-col-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}

.price-main-line {
  display: flex;
  align-items: center;
  gap: 4px;
}

.price-val {
  font-size: 13px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #f8fafc;
  line-height: 1.2;
}

.price-chg-line {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.2;
}

.price-up { color: #10b981; }
.price-down { color: #ef4444; }
.price-neutral { color: #94a3b8; }

.price-val.price-tick-flash-up {
  color: #34d399 !important;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
  transition: all 0.4s ease-out;
}

.price-val.price-tick-flash-down {
  color: #f87171 !important;
  text-shadow: 0 0 10px rgba(248, 113, 113, 0.9);
  transition: all 0.4s ease-out;
}

/* OHL Price Line */
.price-ohl-line {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 8.5px;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.2;
  margin-top: 1px;
}

.ohl-tag {
  color: #475569;
  font-weight: 800;
  font-size: 7.5px;
  margin-right: 1px;
}

.ohl-val {
  color: #94a3b8;
  font-weight: 600;
  margin-right: 4px;
}

.ohl-val.ohl-high { color: #34d399; }
.ohl-val.ohl-low  { color: #f87171; }

.price-sub-line {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}

.price-metric-val {
  color: #94a3b8;
  font-weight: 600;
}

/* ── Row-level Flash Shadow on Live Tick ── */
.mover-row-flash-up {
  animation: moverRowFlashUp 1.2s ease-out forwards;
}

.mover-row-flash-down {
  animation: moverRowFlashDown 1.2s ease-out forwards;
}

@keyframes moverRowFlashUp {
  0% {
    background: rgba(16, 185, 129, 0.18);
    box-shadow: inset 3px 0 0 #10b981, 0 0 12px rgba(16, 185, 129, 0.25);
  }
  100% {
    background: transparent;
    box-shadow: none;
  }
}

@keyframes moverRowFlashDown {
  0% {
    background: rgba(239, 68, 68, 0.18);
    box-shadow: inset 3px 0 0 #ef4444, 0 0 12px rgba(239, 68, 68, 0.25);
  }
  100% {
    background: transparent;
    box-shadow: none;
  }
}

/* Empty State */
.movers-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 16px;
  color: #64748b;
  font-size: 12px;
  gap: 8px;
}

/* Footer */
.movers-footer {
  padding: 8px 14px;
  border-top: 1px solid rgba(51, 65, 85, 0.45);
  background: rgba(15, 23, 42, 0.9);
  font-size: 9.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.movers-legend {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

@media (max-width: 640px) {
  .movers-drawer {
    width: 100vw;
  }
}

/* =======================================================
   IEP / IEV Call Auction Styles
   ======================================================= */
.iep-subfilter-bar {
  background: rgba(8, 13, 34, 0.95);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.iep-chip {
  color: #94a3b8;
  border-color: rgba(56, 189, 248, 0.25);
  font-size: 11px;
}

.iep-chip.active {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38bdf8 !important;
  border-color: #38bdf8 !important;
  font-weight: 700;
}

/* Clean IEP Row (Tanpa Kolom / Kotak Kaku) */
.mover-row-iep-clean {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid rgba(51, 65, 85, 0.3) !important;
  transition: background 0.15s ease !important;
  cursor: pointer !important;
}

.mover-row-iep-clean:hover {
  background: rgba(56, 189, 248, 0.06) !important;
}

.iep-side-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
  padding-right: 14px;
}

.iep-top-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.iep-top-line .symbol-code {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.iep-session-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  margin: 4px 12px 6px 12px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

.iep-session-info-banner .iep-session-icon {
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.iep-session-info-banner b {
  color: #e2e8f0;
}

.iep-badge-fca {
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  letter-spacing: 0.03em;
}

.iep-badge-live {
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  letter-spacing: 0.03em;
}

.iep-timer-tag {
  font-size: 9px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.iep-prev-chip {
  font-size: 10.5px;
  color: #64748b;
  font-family: var(--font-mono, monospace);
}

.iep-prev-chip b {
  color: #94a3b8;
  font-weight: 700;
}

.iep-bottom-line .company-name {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
  display: block;
}

.iep-side-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.iep-price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.iep-price-val {
  font-size: 14px;
  font-weight: 900;
  font-family: var(--font-mono, monospace);
  letter-spacing: -0.01em;
}

.iep-price-val.price-up { color: #10b981; }
.iep-price-val.price-down { color: #ef4444; }
.iep-price-val.price-neutral { color: #f8fafc; }

.iep-chg-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.iep-chg-pill.price-up {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.iep-chg-pill.price-down {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

.iep-chg-pill.price-neutral {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
}

.iep-volume-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
}

.iep-iev-tag {
  font-size: 8.5px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 0 4px;
  border-radius: 3px;
}

.iep-iev-num {
  font-weight: 800;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
}

.iep-ieval-num {
  color: #94a3b8;
  font-size: 10px;
}

.iep-iev-dim {
  color: #475569;
  font-size: 10px;
}

/* Light Mode Support */
body.theme-light .mover-row-iep-clean {
  border-bottom: 1px solid #e2e8f0 !important;
}

body.theme-light .mover-row-iep-clean:hover {
  background: #f1f5f9 !important;
}

body.theme-light .iep-top-line .symbol-code {
  color: #0f172a !important;
}

body.theme-light .iep-prev-chip {
  color: #64748b !important;
}

body.theme-light .iep-prev-chip b {
  color: #334155 !important;
}

body.theme-light .iep-bottom-line .company-name {
  color: #64748b !important;
}

body.theme-light .iep-price-val.price-neutral {
  color: #0f172a !important;
}

body.theme-light .iep-iev-num {
  color: #0284c7 !important;
}

body.theme-light .iep-iev-dim {
  color: #0f172a !important;
}

/* Movers Drawer General Light Theme */
body.theme-light .movers-drawer-backdrop {
  background: rgba(15, 23, 42, 0.35);
}

body.theme-light .movers-drawer {
  background: #ffffff;
  border-left: 1px solid #cbd5e1;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.12);
  color: #0f172a;
}

body.theme-light .movers-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

body.theme-light .movers-title {
  color: #0f172a;
  font-weight: 900;
}

body.theme-light .movers-icon-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.theme-light .movers-icon-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

body.theme-light #moversRefreshBtn:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0284c7;
}

body.theme-light .movers-header-actions .movers-icon-btn:last-child:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}

body.theme-light .movers-tabs-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

body.theme-light .movers-tab-btn {
  color: #0f172a;
  font-weight: 700;
  border-color: #cbd5e1;
  background: #ffffff;
}

body.theme-light .movers-tab-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

body.theme-light .movers-filter-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

body.theme-light .movers-search-input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

body.theme-light .movers-table-header {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 900;
  border-bottom: 1px solid #cbd5e1;
}

body.theme-light .movers-list-scroll {
  background: #ffffff;
}

body.theme-light .mover-row {
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
}

body.theme-light .mover-row:hover {
  background: #f8fafc;
}

body.theme-light .company-name {
  color: #0f172a !important;
  font-weight: 600;
}

body.theme-light .movers-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  color: #0f172a;
}

