/* css/style.css */

/* Base resets */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
  background-color: #f5f5f5;
}

/* Wrapper for calendar and controls */
#calendar-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px auto;
  max-width: 1200px;
}

/* Controls panel (left of calendar) */
#controls-container {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: 60px;  /* aligns with calendar’s time slots */
}

/* User info at top of controls */
#user-info {
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #ccc;
  margin-bottom: 16px;
}

/* Auto‑refresh & weekdays slider are laid out by JS; no extra CSS */

/* Rooms legend under controls */
#rooms-legend {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 0.9em;
  line-height: 1.4;
}
#rooms-legend > strong {
  margin-bottom: 4px;
}
#rooms-legend > div {
  display: block;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  color: #fff;
}

/* Admin button below rooms */
#admin-button-container {
  order: 998;      /* just above logout */
  margin-top: 12px;
  text-align: center;
}

/* Logout button container under everything */
#logout-container {
  order: 999;      /* force to bottom of controls */
  margin-top: 24px;
  text-align: center;
}

/* The calendar itself */
#calendar {
  flex: 1 1 auto;
  min-width: 600px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

/* Modal (event form) styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 320px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

/* Login page styles */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.login-form {
  background: #fff;
  padding: 32px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 320px;
  box-sizing: border-box;
}
.login-form h2 {
  margin: 0 0 24px;
  text-align: center;
  font-weight: normal;
}
.login-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  color: #333;
}
.login-form input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 4px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.login-form button {
  width: 100%;
  padding: 12px;
  margin-top: 24px;
  border: none;
  background-color: #3788d8;
  color: white;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}
.login-form button:hover {
  background-color: #2b6bb2;
}
.login-form .error {
  background-color: #ffe6e6;
  color: #d8000c;
  padding: 8px;
  margin-bottom: 16px;
  border-radius: 4px;
  font-size: 13px;
  text-align: center;
}

