/* ---- Table layout ---- */
table.queue {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-radius: 0.4rem;
  overflow: hidden;
}

table.queue th,
table.queue td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #eee;
  text-align: left;
}

table.queue th {
  background: #f3f3f3;
  font-weight: 600;
  color: #333;
}

table.queue tr:last-child td {
  border-bottom: none;
}

table.queue td form {
  display: inline;
}

table.queue td input[type="submit"] {
  padding: 0.3rem 0.7rem;
  font-size: 0.9rem;
}


/* ---- Base ---- */
body {
  font-family: system-ui, sans-serif;
  background: #fafafa;
  color: #222;
  max-width: 700px;
  margin: 3rem auto;
  padding: 1rem;
  line-height: 1.6;
}

h1, h2 {
  font-weight: 600;
  color: #333;
}

h1 {
  margin-bottom: 1.2rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.3rem;
}

h2 {
  margin-top: 2rem;
}

/* ---- Queue list ---- */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  background: white;
  border: 1px solid #ddd;
  border-radius: 0.4rem;
  padding: 0.7rem 1rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

li strong {
  color: #007acc;
}

/* ---- Forms ---- */
form {
  display: inline;
}

input[type="text"] {
  padding: 0.45rem 0.6rem;
  margin: 0.3rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.3rem;
  font-size: 1rem;
  width: 14rem;
}

input[type="submit"], button {
  background: #007acc;
  color: white;
  border: none;
  border-radius: 0.3rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease-in-out;
  font-size: 0.95rem;
}

input[type="submit"]:hover, button:hover {
  background: #005fa3;
}

/* ---- Add form ---- */
body > form {
  background: white;
  border: 1px solid #ddd;
  border-radius: 0.4rem;
  padding: 1.2rem;
  margin-top: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

body > form label {
  font-weight: 500;
  color: #444;
}


