body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
  background-color: #f5f5f5;
  margin: 0;
  padding-top: 40px;
}

.app-container {
  display: flex;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.calendar {
  padding: 16px;
  width: 350px;
}

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

.calendar-header button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.calendar-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-grid div {
  text-align: center;
  padding: 8px 0;
}

.day-names {
  font-weight: bold;
}

.date-cell {
  cursor: pointer;
  border-radius: 4px;
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.date-cell:hover:not(.today):not(.selected) {
  background-color: #e0e0e0;
}

/* Today indicator: filled blue circle with white text */
.date-cell.today span.today-circle {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  background-color: #1976d2;
  border-radius: 50%;
  color: #fff;
  text-align: center;
}

/* Selected date styling: blue background and white text */
.date-cell.selected {
  background-color: #1976d2;
  color: #fff;
}

/* Selected underline only when event exists */
.date-cell.selected.has-event::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 20%;
  width: 60%;
  height: 4px;
  background-color: #fff;
  border-radius: 2px;
}

/* Event underline indicator */
.date-cell.has-event::before {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 20%;
  width: 60%;
  height: 4px;
  background-color: #1976d2;
  border-radius: 2px;
}

#event-list {
  margin-top: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 16px;
  width: 350px;
  max-height: 200px;
  overflow-y: auto;
}

#event-list h3 {
  margin-top: 0;
}

.event-item {
  margin-bottom: 8px;
  padding: 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
}

.sidebar {
  width: 60px;
  background-color: #fafafa;
  border-left: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px;
}

.tab {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
  font-size: 0.75rem;
  font-weight: bold;
  color: #333;
  text-transform: uppercase;
}

.tab:hover {
  background-color: #e0e0e0;
}

.tab img {
  width: 24px;
  height: 24px;
}
