body {
  font-family: "Inter", Arial, sans-serif;
  background: #f9f9fb;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 2rem;
}

.calendar-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  max-width: 900px;
  width: 100%;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f5f5f9;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid #ddd;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.calendar-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

.calendar-header button {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #444;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: 0.2s ease;
}
.calendar-header button:hover {
  background: rgba(0,0,0,0.05);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 130px; /* taller, consistent rows */
  border-top: 1px solid #eee;
}

.day-name {
  background: #fafafa;
  text-align: center;
  font-weight: bold;
  padding: 0.8rem 0;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #eee;
}

.day {
  border: 1px solid #eee;
  padding: 0.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: white;
  min-height: 120px;
  overflow: hidden;
}

.day.empty {
  background: #f9f9f9;
  border: none;
}

.day .date {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3rem;
}

.day .events {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  overflow-y: auto;
}

.event {
  background: #f0f4ff;
  color: #333;
  border-radius: 6px;
  padding: 0.25rem 0.4rem;
  font-size: 0.8rem;
  border-left: 4px solid #4c6ef5;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.event:hover {
  background: #e2e8ff;
}

.today {
  background: #fff4f4;
  border: 2px solid #ff6b6b;
}

