body {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  background: #222;
  color: #eee;
}

.header-controls {
  display: flex;
  align-items: center;
  background: #444;
  padding: 0.5rem 1rem;
}

.btn-muted {
  background-color: gray;
  color: papayawhip;
  border: none;
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 0.3rem;
}

.btn-on {
  background-color: papayawhip;
  color: gray;
  border: none;
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 0.3rem;
}


.layout {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 2rem;
}

.office-container {
  position: relative;
  width: 470px;   /* Adjust as needed */
  height: 325px;  /* Adjust as needed */
  background-color: #333;
  border: 2px solid #fff;
  border-radius: 8px;
  margin: 1rem;
}

/* Common styling for rooms */
.room {
  position: absolute;
  background-color: gray;
  color: papayawhip;
  border-radius: 0.5rem;
  width: 150px;   /* Adjust as needed */
  height: 75px;   /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  text-align: center;
  flex-direction: column;
}

.titleText {
    color: papayawhip;
}

/* Now position each room exactly as needed */
#FrontOffice {
  top: 5px;
  left: 160px;
}

#Clinic1 {
  top: 5px;
  left: 5px;
}

#Clinic2 {
  top: 85px;
  left: 5px;
}

#Clinic3 {
  top: 165px;
  left: 5px;
}

#Clinic4 {
  top: 245px;
  left: 5px;
}

#Proc1 {
  top: 165px;
  left: 315px;
}

#Proc2 {
  top: 245px;
  left: 315px;
}

#Proc3 {
  top: 245px;
  left: 160px;
}

#Proc4 {
  top: 165px;
  left: 160px;
}

#Lab {
  top: 85px;
  left: 315px;
}


.clear-controls {
  display: wrap;
  flex-wrap: wrap;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.clear-btn {
  background-color: gray;
  color: papayawhip;
  font-size: 1rem;
  padding: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 0.3rem;
}

.clear-btn#clearTech {
  background-color: darkorange;
}

.clear-btn#clearNurse {
  background-color: rosybrown;
}

.clear-btn#clearDrReed {
  background-color: cadetblue;
}

.clear-btn#clearAmanda {
  background-color: seagreen;
}



/* Center and style the authentication container */
#auth-container {
  max-width: 400px;
  margin: 4rem auto;        /* centers horizontally */
  background-color: #333;   /* match the dark theme */
  padding: 2rem;
  border: 2px solid #fff;   /* same border style as the office-container */
  border-radius: 8px;
}

/* Style the auth form itself */
#auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #eee;              /* light text against dark background */
}

/* Form heading */
#auth-form h2 {
  margin: 0;
  margin-bottom: 1rem;
  color: papayawhip;        /* match the room text color */
}

/* Labels, to ensure consistent spacing and color */
#auth-form label {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

/* The select and input fields */
#auth-form select,
#auth-form input[type="password"] {
  background-color: #444;
  color: #eee;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 0.5rem;
  font-size: 1rem;
  outline: none;
  width: 100%;              /* makes them full-width in the container */
}

/* The submit button */
#auth-form button[type="submit"] {
  background-color: papayawhip;
  color: gray;
  border: none;
  border-radius: 4px;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}

/* The message below the form for errors or feedback */
#auth-message {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: red;
  text-align: center;
}

#auth-form select,
#auth-form input[type="password"],
#auth-form button[type="submit"] {
  width: 100%;
  box-sizing: border-box; /* Ensures padding doesn't expand total width */
}




/* Constrained overlay within the parent container */
.modal {
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);

  /* Use flexbox to center the modal-content horizontally & vertically */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;  /* Ensure it appears on top of the rooms */
}

.modal-content {
  background-color: #333;
  color: #eee;
  padding: 1rem;
  border-radius: 8px;
  width: 250px; /* or whatever size you want */
  text-align: center;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.modal-buttons button.status-choice {
  background-color: #555;
  color: #eee;
  border: none;
  border-radius: 4px;
  padding: 0.7rem;
  cursor: pointer;
  font-size: 1rem;
}


#modalTechButton {
  background-color: darkorange;
}

#modalNurseButton {
  background-color: rosybrown;
}

#modalDoctorButton {
  background-color: cadetblue;
}

#modalAmandaButton {
  background-color: seagreen;
}