/**
 * Dashboard styling on top of Bootstrap 5. The palette is intentionally mixed
 * and restrained for an operational dashboard that needs to be scanned often.
 */

:root {
  color-scheme: dark;
  --snds-bg: #111318;
  --snds-panel: #1b1f27;
  --snds-panel-2: #232934;
  --snds-border: #343c49;
  --snds-text: #eef2f7;
  --snds-muted: #9ba7b6;
  --snds-green: #25c26e;
  --snds-yellow: #f5b84b;
  --snds-red: #f05d5e;
  --snds-cyan: #43b9d6;
}

body {
  min-height: 100vh;
  background: var(--snds-bg);
  color: var(--snds-text);
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  border-bottom: 1px solid var(--snds-border);
  background: #151922;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #223447;
  color: var(--snds-cyan);
  font-weight: 800;
}

.metric-card,
.panel {
  background: var(--snds-panel);
  border: 1px solid var(--snds-border);
  border-radius: 8px;
}

.metric-card {
  min-height: 126px;
}

.metric-value {
  font-size: 2.1rem;
  line-height: 1;
  font-weight: 800;
}

.metric-label,
.muted {
  color: var(--snds-muted);
}

.metric-green {
  border-top: 4px solid var(--snds-green);
}

.metric-yellow {
  border-top: 4px solid var(--snds-yellow);
}

.metric-red {
  border-top: 4px solid var(--snds-red);
}

.table-dark {
  --bs-table-bg: var(--snds-panel);
  --bs-table-striped-bg: var(--snds-panel-2);
  --bs-table-border-color: var(--snds-border);
}

.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  display: inline-block;
  border-radius: 999px;
  margin-right: 0.45rem;
}

.status-green {
  background: var(--snds-green);
}

.status-yellow {
  background: var(--snds-yellow);
}

.status-red {
  background: var(--snds-red);
}

.status-neutral {
  background: var(--snds-muted);
}

.form-control,
.input-group-text {
  background-color: #11161f;
  border-color: var(--snds-border);
  color: var(--snds-text);
}

.form-control:focus {
  background-color: #11161f;
  border-color: var(--snds-cyan);
  color: var(--snds-text);
  box-shadow: 0 0 0 0.2rem rgba(67, 185, 214, 0.18);
}

.setup-card {
  max-width: 720px;
}

.btn {
  border-radius: 8px;
}

@media (max-width: 575.98px) {
  .metric-value {
    font-size: 1.7rem;
  }

  .topbar-actions {
    width: 100%;
  }
}
