:root {
  --roed: #d94848;
  --gul: #d9b048;
  --groen: #4caf6a;
  --bg: #f5f5f4;
  --text: #222;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body.frame-body {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.frame-view {
  flex: 1;
  width: 100%;
  border: none;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.directory-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.directory-list li {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.directory-list .person-name {
  display: block;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.directory-list .person-meta {
  display: block;
  color: #666;
  font-size: 0.85rem;
  font-weight: normal;
}

.me-banner {
  background: #e8f4ea;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.status-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  margin-right: 0.4rem;
  background: #999; /* ukendt */
}

.status-dot.roed {
  background: var(--roed);
}

.status-dot.gul {
  background: var(--gul);
}

.status-dot.groen {
  background: var(--groen);
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.subtitle,
.hint {
  color: #666;
  margin-top: 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
}

input,
select {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
}

.checkbox-label input {
  padding: 0;
  width: auto;
}

#area-select {
  width: 100%;
  margin-top: 0.4rem;
}

button {
  cursor: pointer;
}

form button[type="submit"] {
  margin-top: 1rem;
  padding: 0.75rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background: #333;
  color: white;
}

.error {
  color: var(--roed);
  font-size: 0.9rem;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: white;
  border-bottom: 1px solid #e5e5e5;
}

.topbar h1 {
  margin: 0;
}

.hamburger-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 10;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 78vw;
  max-width: 300px;
  background: white;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.nav-drawer[hidden] {
  display: none;
}

.nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 1rem 0;
}

.nav-drawer li {
  border-bottom: 1px solid #eee;
}

.nav-drawer a,
.nav-drawer .link-btn {
  display: block;
  width: 100%;
  padding: 0.9rem 1.25rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-drawer-footer {
  border-top: 1px solid #e5e5e5;
}

.link-btn {
  background: none;
  border: none;
  color: #666;
  text-decoration: underline;
  font-size: 0.9rem;
}

.status-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.status-btn {
  flex: 1;
  padding: 1rem 0;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.55;
}

.status-btn.active {
  opacity: 1;
  outline: 3px solid #222;
}

.status-btn.roed {
  background: var(--roed);
}

.status-btn.gul {
  background: var(--gul);
}

.status-btn.groen {
  background: var(--groen);
}

#status-msg {
  margin-top: 1rem;
  font-size: 0.9rem;
}
