* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f0f0f0;
  color: #1a1a1a;
  min-height: 100vh;
}

/* ─── Header ─── */
.site-header {
  background: #1a1a1a;
  color: white;
  padding: 24px 20px;
}

.header-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.5px;
  line-height: 1;
}

.wordmark-task {
  color: white;
  font-weight: 300;
}

.wordmark-trevor {
  color: white;
  font-weight: 700;
}

.admin-btn {
  padding: 8px 18px;
  background: white;
  color: #1a1a1a;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}

.admin-btn:hover {
  opacity: 0.85;
}

/* ─── Layout ─── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

section {
  background: white;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 16px;
}

.empty-msg {
  color: #bbb;
  font-style: italic;
  font-size: 0.9rem;
}

/* ─── Progress Tracker ─── */
.tracker-section {
  background: white;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tracker-label {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 20px;
  font-weight: 500;
}

.tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

.tracker-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e5e5;
  border: 2px solid #e5e5e5;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 0.72rem;
  color: #aaa;
  text-align: center;
  font-weight: 500;
  max-width: 70px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.tracker-line {
  flex: 1;
  height: 3px;
  background: #e5e5e5;
  margin-bottom: 22px;
  transition: background 0.3s ease;
}

.tracker-line.filled {
  background: #1a1a1a;
}

.tracker-step.active .step-dot {
  background: #1a1a1a;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 4px rgba(26,26,26,0.12);
}

.tracker-step.active .step-label {
  color: #1a1a1a;
  font-weight: 700;
}

.tracker-step.complete .step-dot {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.tracker-step.complete .step-label {
  color: #555;
}

/* ─── Queue List ─── */
ul, ol {
  list-style: none;
  padding: 0;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.queue-item:last-child {
  border-bottom: none;
}

.queue-pos {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #888;
  flex-shrink: 0;
}

.queue-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.queue-code {
  margin-left: auto;
  font-size: 0.75rem;
  color: #bbb;
  font-family: monospace;
}

/* ─── Submit Form ─── */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input[type="text"],
input[type="password"],
textarea {
  padding: 12px 16px;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  font-size: 0.95rem;
  width: 100%;
  font-family: inherit;
  transition: border-color 0.2s;
  resize: none;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #1a1a1a;
}

button[type="submit"],
button.btn-primary {
  padding: 13px 24px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover,
button.btn-primary:hover {
  background: #333;
}

/* ─── Confirmation Card ─── */
.confirm-card {
  text-align: center;
  padding: 12px 0;
}

.confirm-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.confirm-code-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 8px;
}

.confirm-code {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.confirm-note {
  font-size: 0.82rem;
  color: #aaa;
  margin-bottom: 24px;
}

#submit-another-btn {
  padding: 10px 22px;
  background: #f0f0f0;
  color: #1a1a1a;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

#submit-another-btn:hover {
  background: #e5e5e5;
}

/* ─── Login Screen ─── */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
}

.login-box {
  background: white;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.login-box h1 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

#login-error {
  color: #e53e3e;
  font-size: 0.85rem;
  margin-top: 10px;
}

/* ─── Admin Panel ─── */
.btn-ghost {
  padding: 8px 16px;
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s;
}

.btn-ghost:hover {
  border-color: white;
}

.current-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.current-task-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.current-task-meta {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 8px;
}

.stage-badge {
  display: inline-block;
  background: #f0f0f0;
  color: #555;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.stage-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-advance {
  padding: 8px 16px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-advance:hover {
  background: #333;
}

.btn-done {
  padding: 8px 16px;
  background: #22c55e;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-done:hover {
  background: #16a34a;
}

.btn-ghost-sm {
  padding: 6px 12px;
  background: transparent;
  color: #aaa;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-ghost-sm:hover {
  color: #555;
  border-color: #ccc;
}

.admin-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  flex-wrap: wrap;
}

.admin-queue-item:last-child {
  border-bottom: none;
}

.queue-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-task-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.admin-task-meta {
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 2px;
}

.task-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.task-actions button {
  padding: 7px 14px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.task-actions button:hover {
  background: #333;
}

.done-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.done-item:last-child {
  border-bottom: none;
}

.done-title {
  font-size: 0.9rem;
  color: #aaa;
  text-decoration: line-through;
}

/* ─── Mobile ─── */
@media (max-width: 480px) {
  .tracker {
    gap: 0;
  }

  .step-label {
    font-size: 0.62rem;
    max-width: 55px;
  }

  .step-dot {
    width: 22px;
    height: 22px;
  }

  .current-card {
    flex-direction: column;
  }

  .stage-buttons {
    width: 100%;
  }
}
