/* Calendar Container */
.calendar-container {
  margin: 1.5em auto;
  padding: 1em;
  max-width: 600px;
  background: #f9fafb;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Calendar Grid */
.calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

/* Time Slots */
.time-slot {
  display: flex;
  align-items: flex-start;
  gap: 1em;
  background: #fff;
  padding: 0.5em;
  border-bottom: 1px solid #e5e7eb;
}

.time-label {
  font-size: 0.9em;
  font-weight: bold;
  color: #6b7280;
  width: 80px;
  text-align: right;
}

.appointments {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

/* Appointment Tiles */
.appointment-tile {
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  padding: 0.5em;
  font-size: 0.9em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background 0.2s ease;
}

.appointment-tile:hover {
  background: #1e40af;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  width: 400px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 {
  font-size: 1.5em;
  color: #333;
}

.close-button {
  background: none;
  border: none;
  font-size: 1.5em;
  color: #999;
  cursor: pointer;
}

.close-button:hover {
  color: #333;
}

.modal-body p {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
}

.modal-actions .button {
  display: inline-block;
  margin: 5px;
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.2s ease;
}

.modal-actions .button:hover {
  background: #0056b3;
}