/* Intraday Screener V2 Styles */

#page-screener-intraday {
  font-family: 'Inter', sans-serif;
  color: #e2e8f0;
}

/* TOP HEADER */
.is-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.is-header-left {
  display: flex;
  flex-direction: column;
}
.is-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: #ffffff;
}
.is-subtitle {
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.is-live-indicator {
  color: #22c55e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.is-live-indicator i {
  font-size: 8px;
}

.is-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.is-timeframe-selector {
  display: flex;
  align-items: center;
  background: #1e293b;
  border-radius: 6px;
  padding: 4px;
  border: 1px solid #334155;
}
.is-lbl {
  font-size: 10px;
  color: #94a3b8;
  padding: 0 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.is-tf-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.is-tf-btn:hover {
  background: #334155;
}
.is-tf-btn.active {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.is-auto-refresh {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #334155;
  font-size: 13px;
  color: #cbd5e1;
}
.is-toggle {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
}
.is-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.is-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: .4s;
  border-radius: 34px;
}
.is-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .is-slider {
  background-color: #22c55e;
}
input:checked + .is-slider:before {
  transform: translateX(16px);
}

.is-btn-filters, .is-btn-watchlist {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}
.is-btn-filters {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  color: #818cf8;
}
.is-btn-filters:hover {
  background: rgba(99, 102, 241, 0.2);
}
.is-btn-watchlist:hover {
  background: #334155;
}

/* SECTIONS */
.is-section {
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}
.is-bearish-section {
  background: rgba(239, 68, 68, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.1);
}
.is-bullish-section {
  background: rgba(34, 197, 94, 0.03);
  border: 1px solid rgba(34, 197, 94, 0.1);
}

.is-section-header {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.is-bearish-section .is-section-title {
  color: #ef4444;
}
.is-bullish-section .is-section-title {
  color: #22c55e;
}
.is-section-dot {
  margin: 0 8px;
  color: #64748b;
}
.is-section-tf {
  color: #ef4444;
  font-size: 12px;
}
.is-bullish-section .is-section-tf {
  color: #22c55e;
}

/* STATS ROW */
.is-stats-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.is-stat-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 12px 16px;
  flex: 1;
  min-width: 120px;
}
.is-stat-lbl {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.is-stat-val {
  font-size: 16px;
  font-weight: 600;
  color: #f8fafc;
}
.is-stat-card.is-strongest {
  flex: 1.5;
}
.is-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}
.is-leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #cbd5e1;
}
.is-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* STRATEGY TABLES */
.is-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.is-strategy-panel {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
}
.is-bearish-section .is-strategy-panel {
  border-color: rgba(239, 68, 68, 0.2);
}
.is-bullish-section .is-strategy-panel {
  border-color: rgba(34, 197, 94, 0.2);
}

.is-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.2);
}
.is-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

.is-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.1);
}
.is-mode-txt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-right: 8px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.is-refresh-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: none;
  color: #ef4444;
  cursor: pointer;
  transition: all 0.3s ease;
}
.is-bullish-section .is-refresh-icon {
  color: #22c55e;
}

.is-alert-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: none;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 13px;
}
.is-alert-icon:hover, .is-refresh-icon:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}
.is-alert-icon.active {
  color: #eab308;
  background: rgba(234, 179, 8, 0.15);
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.4);
}

/* TABLE */
.is-table {
  width: 100%;
  border-collapse: collapse;
}
.is-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.is-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.is-table tr:last-child td {
  border-bottom: none;
}
.is-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* BADGES */
.is-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  min-width: 60px;
}
.is-badge-high-red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.is-badge-high-green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.is-badge-medium { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.is-badge-low { background: rgba(100, 116, 139, 0.15); color: #94a3b8; }

.is-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-right: 8px;
  vertical-align: middle;
}
.is-symbol-col {
  display: flex;
  align-items: center;
  font-weight: 600;
}


/* PANEL FOOTER */
.is-panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.4), rgba(99, 102, 241, 0.05));
  border-top: 1px solid rgba(99, 102, 241, 0.15);
}
.is-footer-btn {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255,255,255,0.1);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}
.is-footer-btn:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Run Scan special AI styling */
.is-footer-btn:not(.view-strategy-btn) {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #e2e8f0;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.1);
}
.is-footer-btn:not(.view-strategy-btn):hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
  color: #fff;
  transform: translateY(-1px);
}
.is-footer-btn:not(.view-strategy-btn) i {
  color: #a855f7;
}


/* View All button special AI styling */
.view-strategy-btn {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #e2e8f0;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
}
.view-strategy-btn:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(59, 130, 246, 0.3));
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

/* FOOTER INFO */
.is-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
  color: #64748b;
}
.is-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ai-badge {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 10px;
}
.is-div {
  color: #334155;
}

@media (max-width: 1024px) {
  .is-tables-grid {
    grid-template-columns: 1fr;
  }
}


/* ENHANCED PANEL HEADER & AI TOUCH */

.is-bearish-section .is-panel-header {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.15), rgba(0,0,0,0.2) 40%);
  border-bottom: 1px solid rgba(239, 68, 68, 0.2);
  border-left: 3px solid #ef4444;
}

.is-bullish-section .is-panel-header {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.15), rgba(0,0,0,0.2) 40%);
  border-bottom: 1px solid rgba(34, 197, 94, 0.2);
  border-left: 3px solid #22c55e;
}

.is-panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Add a tiny sparkle/AI dot before the title */
.is-panel-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7, 0 0 12px #a855f7;
}

.is-bearish-section .is-panel-actions {
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.15), inset 0 0 10px rgba(239, 68, 68, 0.05);
  background: rgba(15, 23, 42, 0.8);
}

.is-bullish-section .is-panel-actions {
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.15), inset 0 0 10px rgba(34, 197, 94, 0.05);
  background: rgba(15, 23, 42, 0.8);
}

.is-mode-txt {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.is-bearish-section .is-mode-txt {
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.is-bullish-section .is-mode-txt {
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

/* Icons styling upgrade */
.is-alert-icon, .is-refresh-icon {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.05);
}
.is-alert-icon:hover {
  background: rgba(234, 179, 8, 0.2);
  color: #fde047;
  border-color: rgba(234, 179, 8, 0.4);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.3);
}
.is-bearish-section .is-refresh-icon:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}
.is-bullish-section .is-refresh-icon:hover {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}
