body {
  font-family: "Poppins", sans-serif;
  background: #f4f7fa;
  color: #333;
  margin: 0;
  padding: 0;
}
.container, .admin-container, .login-container {
  max-width: 80%;
  margin: 50px auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
h2 { text-align: center; color: #0077cc; }
form input, form button {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}
form button {
  background: #0077cc;
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
form button:hover { background: #005fa3; }
.message { text-align: center; color: green; }
.error { color: red; text-align: center; }

#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 20px 0;
}
.day {
  padding: 15px;
  text-align: center;
  border-radius: 8px;
  background: #e0f7e9;
  cursor: pointer;
}
.day.off { background: #f8d7da; color: #721c24; }
.day.past { opacity: 0.5; cursor: not-allowed; }
.day.selected { outline: 2px solid #0077cc; }
.logout { float: right; color: red; }
@media (max-width: 600px) {
  #calendar { grid-template-columns: repeat(4, 1fr); }
}

/* booking system extras */
.bookings-table { width:100%; border-collapse: collapse; margin-top: 20px; }
.bookings-table th, .bookings-table td { padding:10px; border-bottom:1px solid #eee; text-align:left; }
.status-pending { color: #856404; background:#fff3cd; padding:6px 10px; border-radius:6px; display:inline-block; }
.status-approved { color:#155724; background:#d4edda; padding:6px 10px; border-radius:6px; display:inline-block; }
.status-rejected { color:#721c24; background:#f8d7da; padding:6px 10px; border-radius:6px; display:inline-block; }
.action-links a { margin-right:8px; text-decoration:none; }
@media (max-width: 600px) {
  #calendar { grid-template-columns: repeat(4, 1fr); }
  .bookings-table { font-size: 13px; }
}
/* calendar grid improvements */
#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 20px 0;
}
.weekday {
  font-weight: 600;
  text-align: center;
  background: #eef1f4;
  border-radius: 6px;
  padding: 6px;
}
.day {
  padding: 14px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #000000;

  cursor: pointer;
  transition: transform 0.2s;
}
.day:hover { transform: scale(1.05); }

.day.available { background: #209a4d9d; color:#2d7731; }
.day.pending { background: #fff3cd; color:#856404; }
.day.approved { background: #cce5ff; color:#004085; }
.day.off { background: #e3152660; color:#721c24; }
.day.past { opacity: 0.5; cursor: not-allowed;background:#aaaaaa82; }
.day.selected { outline: 3px solid #0077cc; background:#e0f0ff; }

.legend {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;

}
.legend-box {
  width: 18px;
  height: 18px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 4px;
}
.legend-box.available { background: #05ee5b; border:1px solid #0a9711; }
.legend-box.pending { background: #fff3cd; border:1px solid #a88009; }
.legend-box.approved { background: #cce5ff; border:1px solid #0168d6; }
.legend-box.off { background: #f8d7da; border:1px solid #eb4354; }

@media (max-width: 600px) {
  #calendar { grid-template-columns: repeat(4, 1fr); }
}
.loading {
  grid-column: 1 / -1;
  text-align: center;
  font-weight: 600;
  color: #555;
}
