:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --border: #d0d7de;
  --text: #1f2328;
  --muted: #57606a;
  --primary: #0969da;
  --primary-soft: rgba(9, 105, 218, 0.1);
  --danger: #cf222e;
  --success: #1a7f37;
  --warning: #9a6700;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.btn,
.form-control,
.form-select {
  border-radius: 0.75rem;
}

.app-shell,
.section-card,
.modal-content {
  background: var(--surface);
}

.app-shell {
  padding: 1.5rem 1.5rem 1.25rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 1.15rem;
}

.brand-badge-large {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.45rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-muted);
  font-size: 0.92rem;
}

.status-pill .bi-circle-fill {
  font-size: 0.6rem;
  color: var(--success);
}

.page-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-weight: 600;
}

.table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.table td {
  vertical-align: middle;
}

.repo-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border-color: var(--border);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.repo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.4rem 1rem rgba(15, 23, 42, 0.08);
}

.repo-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.82rem;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(9, 14, 24, 0.45);
  backdrop-filter: blur(3px);
}

.loading-label {
  color: #fff;
  font-weight: 600;
}

.toast {
  border: 0;
  box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.16);
}

.toast-success {
  background: rgba(26, 127, 55, 0.95);
  color: #fff;
}

.toast-danger {
  background: rgba(207, 34, 46, 0.95);
  color: #fff;
}

.toast-info {
  background: rgba(9, 105, 218, 0.95);
  color: #fff;
}

.empty-state {
  padding: 2.25rem 1.25rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 1rem;
  color: var(--muted);
  background: var(--surface-muted);
}

@media (max-width: 767.98px) {
  .app-shell {
    padding: 1.25rem;
  }

  .section-card {
    padding: 1.25rem;
  }
}
