:root {
  color-scheme: dark;
}

body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(45, 212, 191, 0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(56, 189, 248, 0.06), transparent 55%),
    #0d1117;
}

.field {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #243044;
  background: #0b0f14;
  color: #e2e8f0;
  padding: 0.625rem 0.75rem;
  outline: none;
}
.field:focus {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.btn-primary {
  border-radius: 0.5rem;
  background: #14b8a6;
  color: #042f2e;
  font-weight: 600;
  padding: 0.625rem 1rem;
  transition: background 0.15s ease;
}
.btn-primary:hover {
  background: #2dd4bf;
}
.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-outline-accent {
  border-radius: 0.5rem;
  border: 1px solid rgba(45, 212, 191, 0.55);
  background: rgba(45, 212, 191, 0.08);
  color: #5eead4;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-outline-accent:hover {
  background: rgba(45, 212, 191, 0.16);
  border-color: #2dd4bf;
}

.btn-ghost {
  border-radius: 0.5rem;
  border: 1px solid #243044;
  background: transparent;
  color: #cbd5e1;
  padding: 0.5rem 0.875rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover {
  border-color: #2dd4bf;
  background: rgba(45, 212, 191, 0.06);
}
.btn-ghost:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tab {
  border-radius: 0.5rem;
  padding: 0.4rem 0.85rem;
  color: #94a3b8;
  transition: background 0.15s ease, color 0.15s ease;
}
.tab:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.03);
}
.tab-active {
  background: rgba(45, 212, 191, 0.18);
  color: #5eead4;
  font-weight: 600;
}

.metric-card {
  border-radius: 0.9rem;
  border: 1px solid #1c2533;
  background: linear-gradient(180deg, #151c27 0%, #111821 100%);
  padding: 1rem 1.1rem;
}
.metric-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.metric-value {
  margin-top: 0.35rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.1;
}
.metric-sub {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #64748b;
  min-height: 1.1rem;
}
.bar {
  margin-top: 0.75rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #1c2533;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  transition: width 0.4s ease;
}

.panel {
  border-radius: 1rem;
  border: 1px solid #1c2533;
  background: #111821;
  padding: 1.1rem 1.15rem;
}

.th {
  text-align: left;
  padding: 0.7rem 0.85rem;
  font-weight: 500;
}
.td {
  padding: 0.85rem;
  vertical-align: middle;
}

.status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  margin-right: 0.45rem;
}
.status-running {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}
.status-other {
  background: #94a3b8;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}
.btn-action {
  border-radius: 0.4rem;
  border: 1px solid #243044;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  color: #cbd5e1;
  background: transparent;
}
.btn-action:hover:not(:disabled) {
  border-color: #64748b;
}
.btn-action:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.btn-logs {
  color: #2dd4bf;
  border-color: transparent;
  font-weight: 600;
}
.btn-logs:hover {
  text-decoration: underline;
}

.health-bad {
  color: #fb7185;
}
.health-ok {
  color: #34d399;
}
