:root {
  --bg: #eef4f7;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --surface-soft: #f4f8fb;
  --surface-soft-2: #eef4f8;
  --sidebar: linear-gradient(180deg, #0a1628 0%, #112a44 52%, #153554 100%);
  --text: #0a1628;
  --muted: #5b6a7a;
  --muted-strong: #3d4b59;
  --border: #dbe6ef;
  --border-strong: #c8d5e1;
  --primary: #2ecc71;
  --primary-dark: #27b965;
  --primary-soft: rgba(46, 204, 113, 0.12);
  --danger: #b42318;
  --danger-soft: #feefec;
  --success-soft: #ecfdf3;
  --shadow: 0 30px 80px -42px rgba(10, 22, 40, 0.35);
  --shadow-soft: 0 18px 40px -32px rgba(10, 22, 40, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(46, 204, 113, 0.16), transparent 25%),
    radial-gradient(circle at bottom left, rgba(17, 42, 68, 0.08), transparent 24%),
    linear-gradient(180deg, #f5f9fc 0%, #edf3f7 100%);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: "JetBrains Mono", Consolas, monospace;
}

.eyebrow,
.mini-label,
.field label,
.hint {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  color: var(--primary-dark);
}

.mini-label {
  color: var(--primary-dark);
}

.hint,
.muted {
  color: var(--muted);
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.auth-card {
  width: min(480px, 100%);
  padding: 38px;
}

.auth-hero {
  margin-bottom: 24px;
}

.title {
  margin: 12px 0 0;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.02;
}

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-body {
  min-height: 100vh;
}

.admin-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 28px 24px;
  background: var(--sidebar);
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.sidebar__glow {
  position: absolute;
  inset: auto -80px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.14);
  filter: blur(8px);
  pointer-events: none;
}

.sidebar__brand,
.sidebar__nav,
.sidebar__mini-card,
.sidebar__meta,
.sidebar__section-title {
  position: relative;
  z-index: 1;
}

.sidebar__badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar__brand h1 {
  margin: 16px 0 0;
  font-size: 32px;
  line-height: 0.98;
}

.sidebar__brand p {
  margin: 14px 0 0;
  color: rgba(231, 238, 246, 0.76);
  line-height: 1.7;
}

.sidebar__section-title {
  margin-top: 28px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(231, 238, 246, 0.48);
}

.sidebar__nav {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.sidebar__link {
  display: grid;
  gap: 4px;
  padding: 15px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.88);
  transition: 0.2s ease;
}

.sidebar__link:hover,
.sidebar__link.is-active {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.sidebar__link strong {
  font-size: 15px;
}

.sidebar__link-meta,
.sidebar__mini-label,
.sidebar__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sidebar__link-meta,
.sidebar__label {
  color: rgba(231, 238, 246, 0.54);
}

.sidebar__mini-card {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar__mini-card strong {
  display: block;
  margin-top: 10px;
  line-height: 1.4;
}

.sidebar__mini-card p {
  margin: 10px 0 0;
  color: rgba(231, 238, 246, 0.7);
  line-height: 1.6;
}

.sidebar__meta {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 10px;
}

.sidebar__logout {
  margin-top: 6px;
}

.admin-main {
  padding: 28px;
}

.topbar {
  display: grid;
  gap: 18px;
  padding: 24px 24px 22px;
  margin-bottom: 24px;
}

.topbar__content {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.topbar__title {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.topbar__intro {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.topbar__info {
  min-width: 240px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7fbf8 0%, #eef9f3 100%);
  border: 1px solid rgba(46, 204, 113, 0.16);
}

.topbar__info-label {
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.topbar__info strong {
  display: block;
  margin-top: 10px;
  line-height: 1.45;
}

.topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-content {
  display: grid;
  gap: 24px;
}

.notice {
  border-radius: 18px;
  padding: 16px 18px;
  font-weight: 700;
}

.notice.success {
  background: var(--success-soft);
  color: #14663f;
}

.notice.error {
  background: var(--danger-soft);
  color: var(--danger);
}

.button,
button {
  border: 0;
  border-radius: 16px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: 0.18s ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--primary);
  color: #072112;
  box-shadow: 0 16px 36px -24px rgba(46, 204, 113, 0.65);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid rgba(10, 22, 40, 0.04);
}

.button-secondary:hover {
  background: var(--surface-soft-2);
}

.button-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 210px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(46, 204, 113, 0.22);
  border-color: var(--primary);
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.checkbox input {
  width: auto;
}

.panel {
  padding: 24px;
}

.panel h2,
.panel h3,
.panel h4 {
  margin: 0;
}

.panel p {
  color: var(--muted);
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: stretch;
  padding: 24px;
}

.hero-panel__copy {
  max-width: 760px;
}

.hero-panel__copy h3 {
  margin: 12px 0 0;
  font-size: 30px;
  line-height: 1.08;
}

.hero-panel__copy p:last-child {
  margin: 16px 0 0;
  line-height: 1.8;
}

.hero-panel__metrics {
  display: grid;
  gap: 12px;
  min-width: 280px;
}

.hero-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbfc 0%, #eff6fa 100%);
  border: 1px solid var(--border);
}

.hero-pill span {
  color: var(--muted);
  font-weight: 700;
}

.hero-pill strong {
  font-size: 24px;
  line-height: 1;
}

.stats-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 24px;
}

.stat-card--accent {
  background:
    linear-gradient(180deg, rgba(46, 204, 113, 0.12) 0%, rgba(255, 255, 255, 0.94) 42%),
    rgba(255, 255, 255, 0.94);
}

.stat-card__value {
  margin-top: 18px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.stat-card__meta {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
}

.form-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: start;
}

.section-head,
.split,
.job-card__header,
.job-card__footer,
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.section-space {
  margin-top: 22px;
}

.section-space-sm {
  margin-top: 16px;
}

.stack,
.list,
.quick-actions,
.type-suggestions {
  display: grid;
  gap: 14px;
}

.quick-actions {
  grid-template-columns: 1fr;
}

.quick-action,
.recent-job,
.job-card,
.suggestion-card,
.metric-row {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.quick-action {
  display: grid;
  gap: 8px;
}

.quick-action strong {
  font-size: 18px;
}

.quick-action p,
.suggestion-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.quick-action--primary {
  background: linear-gradient(180deg, rgba(46, 204, 113, 0.12) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.quick-action__kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.job-card--full {
  padding: 22px;
}

.job-card__title {
  margin: 10px 0 0;
  font-size: 21px;
  line-height: 1.14;
}

.job-card__summary {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.job-card__aside {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.chip,
.status {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 700;
}

.status.active {
  background: var(--success-soft);
  color: #14663f;
}

.status.inactive {
  background: #eef2f6;
  color: var(--muted);
}

.actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.jobs-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
}

.jobs-toolbar h3 {
  margin: 10px 0 0;
}

.jobs-toolbar p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.jobs-toolbar__actions {
  display: flex;
  gap: 12px;
}

.metric-row strong {
  display: block;
}

.metric-row p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.suggestion-card strong {
  display: block;
  margin-bottom: 6px;
}

.card-divider {
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(90deg, transparent 0%, rgba(200, 213, 225, 0.7) 10%, rgba(200, 213, 225, 0.7) 90%, transparent 100%);
}

.callout {
  background: linear-gradient(180deg, #f8fcf8 0%, #effaf3 100%);
  border: 1px solid rgba(46, 204, 113, 0.16);
}

.callout p:last-child {
  margin-bottom: 0;
}

.empty-state {
  padding: 22px;
  border-radius: 20px;
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
}

@media (max-width: 1180px) {
  .admin-app,
  .stats-grid,
  .dashboard-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

  .hero-panel {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .admin-main {
    padding: 20px;
  }

  .topbar__content,
  .topbar__actions,
  .section-head,
  .split,
  .job-card__header,
  .job-card__footer,
  .jobs-toolbar,
  .metric-row {
    flex-direction: column;
  }

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