@import url('trend_following.css');

.ida-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.ida-stat {
  flex: 1 1 120px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--peps-surface-2, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--peps-border, rgba(255, 255, 255, 0.08));
}

.ida-stat span {
  display: block;
  font-size: 12px;
  opacity: 0.7;
}

.ida-stat strong {
  font-size: 20px;
}

.ida-indicator-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.ida-ind-card {
  flex: 1 1 110px;
  min-width: 100px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--peps-border, rgba(255, 255, 255, 0.08));
  background: var(--peps-surface-2, rgba(255, 255, 255, 0.03));
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.ida-ind-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.ida-ind-card.is-active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}

.ida-ind-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.ida-ind-card span {
  font-size: 11px;
  opacity: 0.75;
}

.ida-score-bar {
  display: inline-block;
  width: 56px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  vertical-align: middle;
  margin-left: 6px;
  overflow: hidden;
}

.ida-score-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
}

.ida-score-bar i.is-bull { background: #22c55e; }
.ida-score-bar i.is-mid { background: #eab308; }
.ida-score-bar i.is-bear { background: #ef4444; }

.ida-bias-bullish { color: #22c55e; }
.ida-bias-bearish { color: #ef4444; }
.ida-bias-neutral { color: #94a3b8; }

.ida-grid {
  display: inline-flex;
  gap: 3px;
  flex-wrap: wrap;
}

.ida-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
}

.ida-cell.is-bullish { background: rgba(34, 197, 94, 0.25); color: #22c55e; }
.ida-cell.is-bearish { background: rgba(239, 68, 68, 0.25); color: #ef4444; }
.ida-cell.is-neutral { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }

.ida-counts {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.ida-counts .is-bull { color: #22c55e; }
.ida-counts .is-bear { color: #ef4444; }
.ida-counts .is-neu { color: #94a3b8; }

.ida-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ida-detail-table th,
.ida-detail-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--peps-border, rgba(255, 255, 255, 0.08));
  text-align: left;
}

.ida-detail-table th {
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.65;
}

.ida-detail-head {
  margin-bottom: 12px;
}

.ida-detail-head strong {
  font-size: 18px;
  margin-right: 8px;
}

.ida-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.85;
}

.ida-signal-bullish { color: #22c55e; font-weight: 600; }
.ida-signal-bearish { color: #ef4444; font-weight: 600; }
.ida-signal-neutral { color: #94a3b8; }

.ida-table tbody tr {
  cursor: pointer;
}

.ida-table tbody tr.is-selected {
  background: rgba(59, 130, 246, 0.08);
}
