body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

h2 {
  margin-bottom: 20px;
  color: #333;
}

.input-group {
  margin-bottom: 15px;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  color: #555;
}

.input-group input {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

button {
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #0056b3;
}

.error-message {
  color: red;
  margin-bottom: 15px;
}

/* src/components/BookingCalendar.css */

.calendar-container {
  width: 90%;
  max-width: 900px;
  margin: 20px auto;
  font-family: sans-serif;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.calendar-header h3 {
  margin: 0;
  font-size: 1.4em;
  color: #333;
}

.calendar-header button {
  padding: 8px 15px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.9em;
  transition: background-color 0.2s ease;
}

.calendar-header button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.calendar-header button:hover:not(:disabled) {
  background-color: #0056b3;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* Ensure columns have equal width */
}

.calendar-table th {
  text-align: center;
  padding: 10px 5px;
  font-weight: bold;
  color: #555;
  background-color: #f9f9f9;
  border-bottom: 1px solid #ddd;
}

.calendar-day {
  border: 1px solid #eee;
  height: 120px; /* Adjust height as needed */
  vertical-align: top;
  padding: 4px;
  position: relative; /* For positioning day number */
  overflow: hidden; /* Hide overflow events if cell is too small */
}

.calendar-day.empty {
  background-color: #fdfdfd;
}

.day-number {
  font-size: 0.8em;
  font-weight: bold;
  color: #888;
  text-align: right;
  margin-bottom: 3px;
}

.day-events {
  display: flex;
  flex-direction: column;
  gap: 3px; /* Space between events */
  max-height: 95px; /* Limit height to prevent overflow */
  overflow-y: auto; /* Allow scrolling if many events */
  /* Simple scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #ccc #eee;
}

.calendar-event {
  background-color: #e7f3ff;
  border-left: 3px solid #007bff;
  padding: 3px 5px;
  font-size: 0.75em;
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: background-color 0.2s ease;
}

.calendar-event:hover {
  background-color: #d0e7ff;
}

.calendar-event.full {
  background-color: #f8d7da; /* Light red for full classes */
  border-left-color: #dc3545;
  cursor: not-allowed;
  color: #721c24;
}
.calendar-event.full:hover {
  background-color: #f4c6ca;
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background-color: white;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 300px;
  max-width: 450px;
}

.popup-content h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.3em;
}

.popup-content p {
  margin-bottom: 10px;
  font-size: 0.95em;
  color: #555;
}
.popup-content p strong {
  color: #007bff;
}

.popup-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.popup-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
}

.popup-actions button:first-of-type {
  /* Confirm button */
  background-color: #28a745; /* Green */
  color: white;
}
.popup-actions button:first-of-type:hover:not(:disabled) {
  background-color: #218838;
}

.popup-actions button:last-of-type {
  /* Cancel button */
  background-color: #6c757d; /* Grey */
  color: white;
}
.popup-actions button:last-of-type:hover:not(:disabled) {
  background-color: #5a6268;
}

.popup-actions button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Status & Error Messages */
.schedule-status {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
}

.schedule-status.success {
  background-color: #d4edda; /* Light green */
  color: #155724;
  border: 1px solid #c3e6cb;
}

.schedule-status.error {
  background-color: #f8d7da; /* Light red */
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.error-message {
  color: #721c24; /* Dark red */
  background-color: #f8d7da; /* Light red */
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
}

/* Simple Scrollbar for event list */
.day-events::-webkit-scrollbar {
  width: 5px;
}
.day-events::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.day-events::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.day-events::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}
