body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f9f9f9;
}

#app {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1,
h2 {
  color: #333;
}

.red {
  color: red;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
}

.form-group input {
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background-color: #0056b3;
}

/* Grid Layout container styles */
.grid-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.grid-section {
  flex: 1;
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

/* Table grid styles */
.time-table {
  border-collapse: collapse;
  width: 100%;
}

.time-table th,
.time-table td {
  border: 1px solid #ccc;
  padding: 0; /* Removing padding makes cell uniform */
  text-align: center;
  user-select: none; /* Prevent text highlight on drag */
}

.time-table th {
  padding: 12px 8px;
  background-color: #f1f3f5;
  font-size: 14px;
}

.time-table th.time-header {
  background-color: transparent;
  border: none;
}

.time-table td.time-label {
  font-size: 11px;
  background-color: #fff;
  width: 60px;
  border: none;
  position: relative;
  border-right: none;
}

.time-table td.time-label span {
  position: absolute;
  top: -8px; /* Shifts text up to align with the border */
  right: 15px; /* Added spacing from the grid line */
  color: #777;
  line-height: 1;
  font-size: 12px;
}

.spacer-row td.spacer-cell,
.final-row td.final-empty-cell {
  border: none !important;
}

.spacer-row td.time-label {
  height: 12px;
}

.final-row td.time-label {
  height: 1px;
}

.time-cell {
  height: 25px; /* height of a time slot */
  cursor: pointer;
  border: 1px solid #e0e0e0;
}

.time-cell:hover {
  background-color: #f0f0f0;
}

#group-grid .time-cell {
  background-color: #e8ffe8; /* Default to safe green before real-time parsing */
  cursor: help; /* Changing cursor to indicate hovering gives user details */
}

/* Base style for indicating unavailable time */
.time-cell.unavailable {
  background-color: #ffcccc;
}

/* Loading Overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
