/* Grundlayout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f5f7fb;
  color: #243b53;
  margin: 0;
}

/* Fælles “site shell” */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e1e7ef;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  text-decoration: none;
  color: #1f2933;
}

.site-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 16px;
}

/* Kort / content container */

.container {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  width: 100%;
  max-width: 440px;
  text-align: center;
}

h1 {
  margin: 0 0 12px;
  font-size: 1.6rem;
  color: #102a43;
}

p {
  margin: 0 0 12px;
  color: #52606d;
  line-height: 1.5;
}

/* Knapper */

button,
.btn {
  margin-top: 15px;
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

button:hover,
.btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

button:active,
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

/* Admin-knap på forsiden */

.admin-button {
  background-color: #111827;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.4);
}

.admin-button:hover {
  background-color: #020617;
}

/* Status-tekst */

#status {
  margin-top: 15px;
  font-weight: 500;
  color: #334e68;
}

/* Progress bar i køen */

#progress-container {
  width: 80%;
  height: 8px;
  background-color: #e1e7ef;
  border-radius: 999px;
  margin: 16px auto 8px;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.5s ease;
}

/* Spinner på “done”-side */

#done-container {
  text-align: center;
  margin-top: 40px;
}

.done-message {
  font-size: 1.1rem;
  color: #243b53;
}

#loading-spinner {
  margin: 30px auto 0;
  border: 6px solid #eef2f7;
  border-top: 6px solid #22c55e;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Admin-sider (login + dashboard) */

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

label {
  font-size: 0.9rem;
  text-align: left;
  color: #52606d;
}

input[type="password"] {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd2e1;
  font-size: 0.95rem;
}

.metric {
  margin: 8px 0;
  font-size: 0.95rem;
  color: #334e68;
}

#sms-msg {
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Admin layout */

.admin-page .container {
  text-align: left;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-header-row h1 {
  margin: 0;
}

.admin-header-row a {
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: none;
}

.admin-header-row a:hover {
  text-decoration: underline;
}

/* Understory titel (hvis du bruger den enkelte steder) */

.understory-title {
  font-family: inherit;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  color: #102a43;
  margin: 0 0 16px;
  letter-spacing: 0.04em;
}

/* Footer (bruges på fx queue-siden) */

.site-footer {
  text-align: center;
  padding: 16px 0 24px;
  font-size: 0.8rem;
  color: #9fb3c8;
}