body {
  margin: 0;
  background: #f4f1ea;
  font-family: Arial, sans-serif;
  color: #222;
}

.container {
  max-width: 760px;
  margin: auto;
  padding: 20px;
}

h1 {
  text-align: center;
  margin: 20px 0;
}

button {
  font-size: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  background: #222;
  color: white;
  cursor: pointer;
}

button:hover {
  opacity: 0.85;
}

input,
textarea,
select {
  font-size: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  width: 100%;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

#auth-section,
#user-section,
.calendar-card,
.selected-day-card {
  background: white;
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

#auth-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#auth-section button {
  width: 100%;
}

#user-section {
  text-align: center;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-header h2 {
  margin: 0;
  font-size: 22px;
}

.calendar-header button {
  width: 42px;
  height: 42px;
  font-size: 28px;
  padding: 0;
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.weekday-row {
  margin-top: 18px;
  margin-bottom: 8px;
  text-align: center;
  font-size: 13px;
  color: #777;
  font-weight: bold;
}

.calendar-grid {
  gap: 6px;
}

.calendar-day {
  min-height: 68px;
  background: #f8f6f1;
  border-radius: 14px;
  padding: 8px;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calendar-day.empty {
  background: transparent;
}

.calendar-day.has-entry {
  cursor: pointer;
}

.calendar-day.selected {
  border-color: #222;
  background: #fff;
}

.calendar-day.today .day-number {
  background: #222;
  color: white;
}

.day-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.dots {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot.General {
  background: #555;
}

.dot.Diet {
  background: #3fa35b;
}

.dot.Physio {
  background: #3b82f6;
}

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filters button {
  background: #e2ded5;
  color: #222;
}

.filters button.active {
  background: #222;
  color: white;
}

.selected-day-card h2 {
  margin-top: 0;
}

.entry {
  border-top: 1px solid #eee;
  padding: 14px 0;
}

.entry:first-child {
  border-top: none;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.flavour {
  font-size: 14px;
  color: #666;
}

.entry p {
  white-space: pre-wrap;
  line-height: 1.5;
}

.empty-message {
  color: #777;
}

.add-entry-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 34px;
  padding: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.entry-form {
  width: 100%;
  max-width: 720px;
  background: white;
  padding: 18px;
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-header h2 {
  margin: 0;
}

#close-form-button {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 26px;
}

@media (max-width: 600px) {
  .container {
    padding: 14px;
  }

  .calendar-day {
    min-height: 58px;
    padding: 6px;
  }

  .weekday-row {
    font-size: 12px;
  }

  .day-number {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
}