body {
  font-family: Arial;
  padding: 20px;
  max-width: 600px;
  margin: auto;
  background: #f4f4f4;
}
h1 {
  text-align: center;
}
button, input {
  padding: 10px;
  margin: 5px;
  font-size: 16px;
}
button {
  cursor: pointer;
}
.button-group {
  margin: 15px 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #ccc;
}
.button-group h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
ul {
  list-style: none;
  padding: 0;
}
li {
  margin: 5px 0;
  padding: 8px;
  border: 1px solid #ccc;
  text-align: center;
  background: white;
}
.available { background: white; }
.drawn { background: #a6f3a6 !important; font-weight: bold; }
.excluded { background: #f3a6a6 !important; }

#drawLog {
  margin-top: 20px;
  background: #fff;
  padding: 10px;
  border: 1px solid #ccc;
  max-height: 9em;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}
#drawLog.expanded {
  max-height: none;
  overflow-y: visible;
}
#toggleLog {
  margin-top: 5px;
  background: none;
  border: none;
  color: #0077cc;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
}

#popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  visibility: hidden;
  justify-content: center;
  align-items: center;
  z-index: 999;
  display: flex;
}
#popupContent {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  max-height: 80%;
  overflow-y: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
#popupContent h2 {
  margin-top: 0;
}
