body {
  background: linear-gradient(120deg, #f6f9fc, #e0eafc);
  font-family: 'Segoe UI', sans-serif;
  padding: 20px;
  margin: 0;
}

.calendar {
  max-width: 800px;
  margin: auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

button {
  padding: 6px 12px;
  border: none;
  border-radius: 10px;
  background: #007bff;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #0056b3;
}

#month-year {
  font-size: 1.5em;
  margin: 10px;
  text-align: center;
  flex: 1;
}

.weekdays, .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 15px;
}

.weekdays div {
  font-weight: bold;
  text-align: center;
  color: #555;
}

.day {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 10px 0;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.day.empty {
  background: transparent;
  cursor: default;
}

.today {
  border: 2px solid #ff5722;
  background: #fff3e0;
  font-weight: bold;
}
.selected {
  background: #007bff;
  color: white;
  font-weight: bold;
}
.notes {
  margin-top: 20px;
}

#note-input {
  padding: 8px;
  width: calc(100% - 100px);
  border-radius: 10px;
  border: 1px solid #ccc;
}

#add-note {
  margin: 5px 0 0 0;
  padding: 8px;
}

ul#notes-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

#notes-list li {
  background: #f1f1f1;
  padding: 8px;
  border-radius: 10px;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#notes-list button {
  background: #dc3545;
  padding: 5px 10px;
}

#notes-list button:hover {
  background: #a71d2a;
}