/* Shared admin/user panel styles */
body {
  font-family: Arial, sans-serif;
  background-color: #111;
  color: white;
  margin: 0;
  padding: 40px;
}

h1 {
  text-align: center;
  font-family: "Luxurious Roman", serif;
}

form {
  max-width: 500px;
  margin: auto;
  background-color: #222;
  padding: 30px;
  border-radius: 10px;
}

label {
  display: block;
  margin-bottom: 10px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  margin-bottom: 15px;
}

.invitee-input {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.invitee-input input {
  flex: 1;
  margin-right: 10px;
  padding: 10px;
  border-radius: 5px;
  border: none;
  font-size: 16px;
}

.invitee-input button {
  background-color: #555;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
}

button[type="submit"],
button.primary {
  background-color: #b8a67c;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.success {
  color: lightgreen;
  text-align: center;
  margin-top: 20px;
}

.error {
  color: red;
  text-align: center;
  margin-top: 20px;
}

.token-link {
  text-align: center;
  margin-top: 10px;
  word-break: break-all;
}

code {
  background: #333;
  padding: 5px 10px;
  border-radius: 5px;
}

/* Login page centering */
body.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0;
}

body.login-page form {
  width: 300px;
  text-align: center;
}

body.login-page input[type="text"],
body.login-page input[type="password"] {
  width: calc(100% - 20px);
  margin: 10px 0;
}

/* RSVP view page */
.logout-link {
  display: block;
  text-align: right;
  margin-top: -25px;
  margin-bottom: 20px;
  color: #b8a67c;
  text-decoration: none;
  font-size: 14px;
}

.group {
  background: #222;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.token-header {
  font-family: "Luxurious Roman", serif;
  font-size: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid #444;
  padding-bottom: 10px;
}

.invitee-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.invitee-list li {
  padding: 8px 10px;
  border-bottom: 1px solid #333;
}

.invitee-list li:last-child {
  border-bottom: none;
}

.status-Accept {
  color: lightgreen;
}

.status-Decline {
  color: red;
}

.no-response {
  color: #ccc;
}

.refresh-button {
  display: block;
  margin: 20px auto;
  background: #b8a67c;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

.footer {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #aaa;
}
