body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f6f7fb;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.calendar {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px #0001;
  padding: 24px 24px 12px 24px;
  width: 340px;
  text-align: center;
}

.calendar .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calendar .month-year {
  font-size: 1.2em;
  font-weight: bold;
  letter-spacing: 1px;
  color: #333;
}

.calendar .nav-btn {
  border: none;
  background: #e2e6f3;
  color: #4460aa;
  font-size: 1.3em;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: background 0.2s;
}
.calendar .nav-btn:hover {
  background: #4460aa;
  color: #fff;
}

.calendar .weekdays,
.calendar .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar .weekdays {
  margin-bottom: 4px;
}

.calendar .weekdays div {
  font-weight: 600;
  color: #4460aa;
  padding: 8px 0;
  font-size: 0.95em;
  background: none;
}

.calendar .days div {
  padding: 10px 0;
  background: none;
  border-radius: 50%;
  color: #222;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.calendar .days .today {
  background: #0ad;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 8px #0ad5;
}

.calendar .days .selected {
  background: #fdca40;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 8px #fdca4066;
}

.calendar .days div:hover:not(.selected):not(.today) {
  background: #e2e6f3;
  color: #4460aa;
}

.calendar .days .empty {
  cursor: default;
  background: none;
  color: transparent;
}