h1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: darkslategray;
  text-align: center;
}

h1::after {
  display: none;
}

.week-nav {
  margin-bottom: 1rem;
}

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

.week-nav-header button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #5a6b7c;
}

.week-nav-header button:hover {
  background-color: #e5e5e5;
}

.week-nav-header button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.week-dates {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: #5a6b7c;
}

.week-dates .separator {
  color: #999;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.day-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.25rem;
  border-radius: 0.5rem;
  min-height: 5rem;
}

.day-cell:hover {
  background-color: #e5e5e5;
}

.day-name {
  font-size: 1rem;
  font-weight: normal;
  color: #999;
  margin-bottom: 0.25rem;
  line-height: 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  text-align: center;
}

.today .day-name {
  background-color: #f4a27b;
  border-radius: 50%;
  color: white;
}

.day-number {
  font-size: 1rem;
  font-weight: bold;
  color: #5a6b7c;
  margin-bottom: 0.25rem;
}

.day-dot {
  width: 6px;
  height: 6px;
  background-color: #5a6b7c;
  border-radius: 50%;
  margin-top: 4px;
  display: none;
}

.day-dot.has-meal {
  display: block;
}

.meals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meal-card {
  display: flex;
  align-items: anchor-center;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.meal-image {
  width: 64px;
  height: 64px;
  border-radius: 100%;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
}

.meal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-image svg {
  color: #999;
}

.meal-details {
  flex: 1;
  min-width: 0;
}

.meal-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meal-type {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #666;
}

.meal-type-icon {
  font-size: 16px;
}

.meal-calories {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #666;
}

.meal-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #666;
}

.meal-date {
  font-size: 12px;
  color: #999;
}

.meal-edit {
  margin-left: 8px;
}

.edit-icon {
  min-width: unset;
  background: none;
  cursor: pointer;
  color: #666;
  padding: 0;
}

.no-meals {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 16px;
}

/* Edit Form Styles */
.edit-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.edit-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.edit-photo-img {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  object-fit: cover;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.row-2 {
  grid-template-columns: repeat(2, 1fr);
}

.row-4 {
  grid-template-columns: repeat(4, 1fr);
}

.form-submit {
  margin-top: 2rem;
}

.form-submit-btn {
  --border-radius-md: 999px;
  background: #f4a27b !important;
  width: 100%;
  font-size: 1.5rem;
}
