/* RalphTerm Dashboard */
:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b1020;
  color: #e5edf8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 2rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 28rem), #0b1020;
}

.page-header {
  max-width: 72rem;
  margin: 0 auto 2rem;
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: #7dd3fc;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.lede {
  color: #a8b3c7;
  font-size: 1.1rem;
}

.dashboard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
  max-width: 72rem;
  margin: 0 auto;
}

.panel {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 1rem;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.24);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.run-form-panel {
  grid-column: 1 / -1;
}

.run-form {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.run-form label {
  display: grid;
  gap: 0.35rem;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.run-form input,
.run-form select,
.run-form button {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 0.6rem;
  padding: 0.55rem 0.7rem;
  background: rgba(15, 23, 42, 0.72);
  color: #e5edf8;
}

.run-form .checkbox-label {
  align-content: center;
  grid-template-columns: auto 1fr;
}

.run-form .checkbox-label input {
  width: auto;
}

.run-form button {
  align-self: end;
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(14, 165, 233, 0.24);
  color: #bae6fd;
  cursor: pointer;
}

.run-form button:hover,
.run-form button:focus {
  background: rgba(14, 165, 233, 0.34);
}

.status,
.empty-state {
  color: #a8b3c7;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.artifact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.artifact-links a {
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  color: #bae6fd;
  text-decoration: none;
}

.artifact-links a:hover,
.artifact-links a:focus {
  border-color: #7dd3fc;
  background: rgba(125, 211, 252, 0.12);
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  text-align: left;
}

th {
  color: #93c5fd;
  font-size: 0.8rem;
  text-transform: uppercase;
}

code {
  color: #bae6fd;
}

@media (max-width: 800px) {
  body {
    padding: 1rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
