.calendar-wrapper {
  width: 100%;
  max-width: 100%;
  background: white;
  border-radius: 12px;
  box-sizing: border-box;
  padding: 16px 20px;
  /* Add subtle shadow for better look */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
  padding: 0 8px;
}

.calendar-header button {
  border: none;
  /* background: transparent; */
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.calendar-header button:hover,
.calendar-header button:focus {
  background-color: #aeaeae;
  outline: none;
}

table.calendar {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* equal cell widths */
}

table.calendar th,
table.calendar td {
  padding: 14px 8px;
  text-align: center;
  word-wrap: break-word;
}

table.calendar th {
  background-color: #eee;
  font-weight: 600;
  font-size: 1rem;
}

table.calendar td {
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  user-select: none;
}

table.calendar td:hover {
  background-color: #007bff;
  color: white;
}

td.today {
  background-color: #28a745;
  color: white;
  font-weight: 600;
}

td.selected {
  background-color: #ff9800;
  color: white;
  font-weight: 600;
}

/* Responsive styles */

@media (max-width: 768px) {
  .calendar-wrapper {
    padding: 12px 16px;
  }

  .calendar-header {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .calendar-header button {
    font-size: 1.3rem;
    padding: 5px 8px;
  }

  table.calendar th,
  table.calendar td {
    padding: 12px 6px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .calendar-wrapper {
    padding: 10px 12px;
  }

  .calendar-header {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .calendar-header button {
    font-size: 1.1rem;
    padding: 4px 6px;
  }

  table.calendar th,
  table.calendar td {
    padding: 10px 4px;
    font-size: 0.85rem;
  }
}
