* {
  font-family: sans-serif;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #333;
  color: white;
}

/* ── Nav bar ── */

.app-bar {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 16px;
  background: #FF8800;
}

.app-bar-title {
  flex: 1;
  font-size: 1.2em;
  font-weight: bold;
}

.app-bar button {
  background: none;
  border: none;
  color: white;
  font-size: 1.4em;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: 8px;
  line-height: 1;
}

/* ── Screens ── */

.screen-container {
  position: fixed;
  top: 56px;
  left: 0;
  width: 100%;
  height: calc(100vh - 56px);
}

#login-screen {
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

#login-screen h1 {
  font-size: 2em;
  margin: 0;
  color: #FF8800;
}

/* ── Login form ── */

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 280px;
}

.login-form input {
  font-size: 1em;
  padding: 0.6em 1em;
  border: 1px solid #7FBD32;
  border-radius: 2em;
  background: #EEE;
  color: #222;
}

.login-form button {
  font-size: 1.1em;
  padding: 0.6em;
  border: 3px solid #7FBD32;
  border-radius: 2em;
  background: #555;
  color: white;
  cursor: pointer;
}

.login-form button:active {
  background: green;
}

#login-error {
  text-align: center;
  color: #ff6644;
  font-size: 0.9em;
  min-height: 1.2em;
  margin: 0;
}

/* ── Main screen ── */

#message-container {
  position: absolute;
  width: 100%;
  bottom: 50%;
  text-align: center;
  font-size: 2em;
  font-weight: bold;
  padding: 0.5em;
  display: none;
  z-index: 10;
}

#button-block {
  position: absolute;
  width: 100%;
  bottom: 0;
  padding-bottom: 32px;
}

.button-container {
  display: block;
  width: 300px;
  height: 56px;
  border-radius: 56px;
  margin: 32px auto;
  text-align: center;
  background: #555;
  border: 4px solid #7FBD32;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-container:active {
  background: green;
  width: 290px;
}

.button-container p {
  margin: 0;
  font-size: 1.1em;
}

/* ── Settings screen ── */

.settings-form ul {
  list-style: none;
  padding: 24px 0 0 0;
  margin: 0 auto;
  max-width: 300px;
}

.settings-form li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
}

.settings-form label {
  width: 120px;
  text-align: right;
}

.settings-form input,
.settings-form select {
  font-size: 1em;
  width: 120px;
  padding: 0.4em 0.8em;
  border: 1px solid #7FBD32;
  border-radius: 2em;
  background: #EEE;
  color: #222;
}

.settings-form button {
  font-size: 1.1em;
  padding: 0.5em 2em;
  border: 3px solid #7FBD32;
  border-radius: 2em;
  background: #555;
  color: white;
  cursor: pointer;
}

.settings-form button:active {
  background: green;
}

/* ── Admin user list ── */

#admin-user-list {
  list-style: none;
  padding: 8px 0 24px 0;
  margin: 0 auto;
  max-width: 300px;
}

#admin-user-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #555;
}

#admin-user-list .user-info { flex: 1; }
#admin-user-list .user-roles { font-size: 0.8em; color: #aaa; }

#admin-user-list button {
  font-size: 0.85em;
  padding: 0.25em 0.7em;
  border: 2px solid #cc3300;
  border-radius: 1em;
  background: #555;
  color: white;
  cursor: pointer;
  white-space: nowrap;
}

#admin-user-list button:active {
  background: #cc3300;
}
