:root {
  --bg-void: #0f0f0f;
  --bg-radial-from: #171717;
  --bg-radial-to: #050505;
  --panel: rgba(10, 10, 10, 0.92);
  --text-primary: #ffffff;
  --text-secondary: #d4d4d8;
  --label: #71717a;
  --accent: #ff4500;
  --border: rgba(255, 255, 255, 0.1);
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background:
    radial-gradient(
      1200px 600px at 10% 10%,
      var(--bg-radial-from),
      var(--bg-radial-to)
    ),
    var(--bg-void);
  color: var(--text-primary);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}
/* Layout */
.page {
  padding: 96px 80px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0;
}
h1 {
  font-weight: 500;
  letter-spacing: -0.05em;
  margin: 0;
}
.label-mono {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Segoe UI Mono",
    monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--label);
}
.desc {
  font-size: 14px;
  color: #a3a3a3;
}
.input-field {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.input-field:focus {
  border-color: rgba(255, 69, 0, 0.6);
}
select.input-field {
  appearance: none;
  -webkit-appearance: none;
}
.no-radius {
  border-radius: 0;
}
.chip {
  display: inline-block;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  border-radius: 4px;
}
.output {
  background: rgba(255, 69, 0, 0.1);
  border: 1px solid rgba(255, 69, 0, 0.5);
  padding: 12px 16px;
  font-family: ui-monospace, monospace;
  color: var(--text-primary);
  font-size: 13px;
}
.cron-description {
  min-height: 1.5em;
  color: gold;
}
.preset-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 8px 10px;
  font-size: 13px;
}
.preset-btn.active {
  color: var(--accent);
  border-color: rgba(255, 69, 0, 0.4);
}
.copy-btn {
  background: var(--accent);
  color: white;
  padding: 10px 14px;
  border: none;
  font-weight: 600;
}
.invalid {
  box-shadow: inset 0 0 0 1px rgba(255, 69, 0, 0.35);
}
/* Grid spacing aligned to 4px baseline */
.fields-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
@media (max-width: 900px) {
  .fields-grid {
    grid-template-columns: 1fr;
  }
  .page {
    padding: 40px;
  }
}

/* Date panel styling to avoid transparent overlay collisions */
.relative {
  position: relative;
}
.date-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  color: var(--text-primary);
  min-width: 220px;
  z-index: 60;
}
.input-field[role="button"] {
  cursor: pointer;
}
