/* Status dashboard — dark theme */

:root {
  --bg: #0d1117;
  --bg-elev: #161b22;
  --bg-elev-2: #1c2330;
  --border: #2d3746;
  --text: #e6edf3;
  --muted: #8b949e;
  --green: #3fb950;
  --yellow: #d29922;
  --red: #f85149;
  --accent: #58a6ff;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.hidden {
  display: none !important;
}

/* ------------------------------------------------------------------ header */

.site-header {
  padding: 28px 24px 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-header h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-meta {
  margin: 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}

/* ------------------------------------------------------------------- tabs */

.tabs {
  max-width: 1100px;
  margin: 12px auto 0;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.tab {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ------------------------------------------------------------------- main */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

.summary {
  margin-bottom: 18px;
  font-size: 13px;
}

.summary-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}

.pill-green {
  background: rgba(63, 185, 80, 0.15);
  color: var(--green);
}

.pill-yellow {
  background: rgba(210, 153, 34, 0.15);
  color: var(--yellow);
}

.pill-red {
  background: rgba(248, 81, 73, 0.15);
  color: var(--red);
}

/* --------------------------------------------------------------- services */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
}

.card-green {
  border-left-color: var(--green);
}

.card-yellow {
  border-left-color: var(--yellow);
}

.card-red {
  border-left-color: var(--red);
}

.card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex: 0 0 auto;
}

.card-green .card-dot {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.card-yellow .card-dot {
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
}

.card-red .card-dot {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.card-body {
  min-width: 0;
}

.card-name {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
  text-transform: capitalize;
}

.card-status {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-green .card-status { color: var(--green); }
.card-yellow .card-status { color: var(--yellow); }
.card-red .card-status { color: var(--red); }

.card-detail {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.card-time {
  margin: 6px 0 0;
  font-size: 11px;
}

/* ---------------------------------------------------------------- projects */

.table-wrap {
  overflow-x: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

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

.table th,
.table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--bg-elev-2);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: rgba(88, 166, 255, 0.04);
}

td.check {
  text-align: center;
  font-weight: 700;
}

td.check-on {
  color: var(--green);
}

td.check-off {
  color: var(--muted);
}

.project-name {
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}

td.muted {
  color: var(--muted);
}

.coverage {
  text-align: center;
}

.coverage-bar {
  display: inline-block;
  vertical-align: middle;
  width: 60px;
  height: 6px;
  margin-left: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.coverage-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.repo-link {
  font-size: 11px;
}

.error {
  color: var(--red);
  font-weight: 600;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 32px;
  font-size: 12px;
}

/* ---- filter bar ---- */
.filter-bar { display: flex; align-items: center; gap: 0.6rem; margin: 0.5rem 0 1rem; flex-wrap: wrap; }
.filter-input, .filter-select {
  background: var(--card-bg, #1a1d21); color: var(--fg, #e8eaed);
  border: 1px solid var(--border, #333); border-radius: 6px; padding: 0.35rem 0.6rem; font-size: 0.9rem;
}
.filter-input { flex: 0 1 240px; }
