:root {
  --bg: #140a1b;
  --bg-elevated: #22102f;
  --bg-elevated-soft: #2b163c;
  --accent: #d96bff;
  --accent-soft: rgba(217, 107, 255, 0.18);
  --accent-strong: #ffb3ff;
  --text: #fbeaff;
  --text-muted: #c8aee0;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --error: #ff6b9b;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
  --transition-fast: 120ms ease-out;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top, #2b1840 0, #0c0611 50%, #050208 100%);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
}

/* Layout */

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  background: rgba(10, 4, 18, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.main-nav a {
  color: var(--text-muted);
  margin-left: 16px;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.main-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.site-main {
  padding: 32px 0 40px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #08020d;
  padding: 12px 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* Page headings */

.page-title {
  font-size: 26px;
  margin: 0 0 4px;
}

.page-subtitle {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Form card */

.form-card {
  background: radial-gradient(circle at top left, #3b1a52 0, #1a0c25 45%, #15091d 100%);
  border-radius: 20px;
  padding: 24px 22px 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.app-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-title {
  font-size: 18px;
  margin: 4px 0 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title:first-of-type {
  border-top: none;
  padding-top: 0;
}


/* Step bar */

.form-steps {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(6, 2, 14, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.step {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.85;
}

.step-number {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.step-label {
  white-space: nowrap;
}

.step.active .step-number {
  background: var(--accent);
  border-color: transparent;
  color: #1b061f;
}

.step.active .step-label {
  color: var(--accent-strong);
}


/* Fields */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px 18px;
  margin-top: 6px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label,
fieldset legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
select,
textarea {
  background: rgba(8, 3, 16, 0.92);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  color: var(--text);
  font: inherit;
  outline: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast),
    transform 80ms ease-out;
}

input::placeholder,
textarea::placeholder {
  color: rgba(228, 204, 255, 0.55);
}

textarea {
  resize: vertical;
  min-height: 70px;
}

/* Focus styles */

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(217, 107, 255, 0.25), 0 0 0 6px rgba(217, 107, 255, 0.08);
  background: #14051f;
  transform: translateY(-1px);
}

/* Checkboxes / fieldsets */

fieldset {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  padding: 10px 12px 12px;
  background: rgba(12, 4, 24, 0.85);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 6px 14px;
  margin-top: 6px;
  font-size: 13px;
}

.checkbox-grid label {
  font-weight: 500;
  color: var(--text);
}

.checkbox-field label {
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

input[type="checkbox"] {
  accent-color: var(--accent);
}

/* Helper text */

.rules-text {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Buttons */

.form-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.btn-primary {
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #ff6bff, #b15cff);
  color: #1b061f;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  transition:
    transform 80ms ease-out,
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

/* Small screens */

@media (max-width: 640px) {
  .form-card {
    padding: 18px 14px 20px;
  }

  .page-title {
    font-size: 22px;
  }
}
/* Tables & staff views */

.table-card {
  padding-top: 18px;
}

.table-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.table-subtext {
  font-size: 12px;
  color: var(--text-muted);
}

.filter-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.filter-link.active,
.filter-link:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.table-scroll {
  max-height: 480px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}

.apps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.apps-table thead {
  background: rgba(11, 4, 23, 0.95);
}

.apps-table th,
.apps-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.apps-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
}

.apps-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.apps-table .mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

.interests-cell {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-cell {
  text-align: center;
  padding: 20px 10px;
  color: var(--text-muted);
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
  color: var(--accent-strong);
  font-size: 12px;
}

/* Status pills */

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.status-pending {
  background: rgba(255, 207, 92, 0.18);
  color: #ffd36d;
}

.status-approved {
  background: rgba(125, 255, 178, 0.18);
  color: #8effc2;
}

.status-denied {
  background: rgba(255, 120, 157, 0.2);
  color: #ff9bb8;
}

.status-flagged {
  background: rgba(140, 179, 255, 0.2);
  color: #a9c4ff;
}

/* Detail layout */

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1.2fr);
  gap: 18px;
}

.detail-column.narrow {
  max-width: 360px;
}

.detail-card {
  margin-top: 4px;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 14px;
  font-size: 13px;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.detail-list li span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.detail-block {
  margin: 6px 0 10px;
}

.detail-block h4 {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 2px;
}

.detail-block p {
  margin: 0;
  font-size: 13px;
}

.back-link {
  font-size: 12px;
  margin-left: 8px;
  color: var(--accent-strong);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.decision-form .form-field textarea {
  min-height: 120px;
}

.decision-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

.small {
  font-size: 12px;
}

/* Responsive detail stack */

@media (max-width: 840px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-column.narrow {
    max-width: none;
  }
}
