/* TwD Stats — Custom styles (beyond Tailwind) */

/* Tab navigation */
.tab-btn {
  color: #9ca3af;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: #d1d5db; }
.tab-btn.active {
  color: #60a5fa;
  border-bottom-color: #60a5fa;
}

/* Range selector buttons */
.range-btn { transition: background 0.15s; }
.range-btn:hover { background: #374151; }
.range-btn.active {
  background: #2563eb;
  color: #fff;
}

/* Trend badges */
.badge-up { color: #34d399; }
.badge-down { color: #f87171; }
.badge-flat { color: #9ca3af; }

/* Status indicators */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-succeeded { background: #34d399; }
.status-failed { background: #f87171; }
.status-running { background: #fbbf24; animation: pulse 1.5s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Card hover */
.metric-card {
  transition: border-color 0.15s;
  border: 1px solid transparent;
}
.metric-card:hover {
  border-color: #374151;
}

/* Table styling */
.data-table {
  width: 100%;
  font-size: 0.875rem;
}
.data-table th {
  text-align: left;
  color: #9ca3af;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #374151;
}
.data-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #1f2937;
}

/* Slot cards */
.slot-full { background: #064e3b; border: 1px solid #065f46; }
.slot-open { background: #1f2937; border: 1px solid #374151; }

/* Truncated text in tables */
.data-table td.max-w-xs { max-width: 14rem; }
.data-table td.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #374151;
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
