/* Score label badges */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-very-high { background: #fee2e2; color: #991b1b; }
.badge-high { background: #ffedd5; color: #9a3412; }
.badge-medium { background: #fef9c3; color: #854d0e; }
.badge-low { background: #e0e7ff; color: #3730a3; }
.badge-very-low { background: #f3f4f6; color: #6b7280; }

/* Tradeability badges */
.trade-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.trade-open { background: #dcfce7; color: #166534; }
.trade-needs-review { background: #fef9c3; color: #854d0e; }
.trade-late { background: #fee2e2; color: #991b1b; }
.trade-likely-moved { background: #f3f4f6; color: #6b7280; }

/* Score bar */
.score-bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.score-bar-label {
  width: 110px;
  font-size: 13px;
  color: #6b7280;
  flex-shrink: 0;
}
.score-bar {
  flex: 1;
  height: 10px;
  background: #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.3s;
}
.score-bar-value {
  width: 40px;
  font-size: 12px;
  color: #9ca3af;
  text-align: right;
  flex-shrink: 0;
}

/* Fill colors by severity */
.fill-high { background: #ef4444; }
.fill-medium { background: #f59e0b; }
.fill-low { background: #6b7280; }

/* Dashboard table tweaks */
.dashboard-table {
  width: 100%;
}
.dashboard-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}
.dashboard-table td {
  vertical-align: middle;
}
.market-title-link {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}
.market-title-link:hover {
  color: #2563eb;
}

/* Score big number */
.score-big {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}
.score-big.very-high { color: #dc2626; }
.score-big.high { color: #ea580c; }
.score-big.medium { color: #ca8a04; }
.score-big.low { color: #6366f1; }
.score-big.very-low { color: #9ca3af; }

/* Explanation box */
.explanation-box {
  background: #f9fafb;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  border-left: 4px solid #e5e7eb;
}

/* Action buttons row */
.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.action-buttons button,
.action-buttons a {
  font-size: 13px;
  padding: 6px 16px;
}

/* Filters bar */
.filters-bar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filters-bar label {
  font-size: 12px;
  margin-bottom: 2px;
}
.filters-bar select,
.filters-bar input {
  font-size: 13px;
  padding: 4px 8px;
}

/* Active nav link */
nav a.active {
  font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
  .filters-bar { flex-direction: column; }
  .score-bar-label { width: 80px; }
}
