body {
  font-family: "Inter", sans-serif;
  background: #f7f3eb;
  margin: 0;
  padding: 16px;
  color: #2f241d;
}

.page-shell {
  max-width: 900px;
  margin: auto;
}

.app-grid {
  display: flex;
  gap: 16px;
  padding: 0;
  align-items: flex-start;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.list-panel {
  width: 40%;
}

.detail-panel {
  width: 60%;
}

.calendar-entry,
.calendar-day {
  display: block;
  width: 100%;
  cursor: pointer;
  font: inherit;
}

button {
  font-size: 16px;
}

h1,
h2,
h3 {
  margin-bottom: 8px;
}

#status-message {
  margin-top: 10px;
  color: #6a5846;
}

.today-card {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #fff4df;
  font-size: 1.02rem;
}

.today-card-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.today-card-date {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #6b4a2d;
}

.today-card-grid {
  display: grid;
  gap: 10px;
}

.today-card-grid p {
  margin: 0;
}

.calendar-grid-view {
  margin-bottom: 20px;
}

#calendar-header {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #4b3828;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calendar-header h3 {
  margin: 0;
  font-size: 1rem;
}

.calendar-header button {
  width: auto;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #eee;
  font: inherit;
}

#calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-weekday {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #7a6754;
}

.calendar-day {
  padding: 14px;
  border-radius: 14px;
  background: #f5f5f5;
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
  min-height: 48px;
  position: relative;
  font-weight: 500;
  transition: all 0.2s ease;
}

.calendar-day.empty {
  cursor: default;
  background: transparent;
  border: none;
}

.calendar-day:hover {
  transform: scale(1.05);
}

.calendar-day.empty:hover {
  transform: none;
}

.calendar-day-number {
  display: block;
  font-weight: 700;
}

.calendar-day-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: #ff6b6b;
}

.calendar-day.today {
  border: 2px solid #000;
}

.calendar-day.selected {
  background: #2c3e50;
  color: white;
  transform: scale(1.05);
}

.calendar-day.selected .calendar-day-dot {
  background: white;
}

.calendar-day.festival {
  border-bottom: 3px solid #ff6b6b;
}

#entry-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.calendar-entry {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e4d6bf;
  border-radius: 14px;
  background: #fffaf1;
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.calendar-entry:hover {
  background: #fff4df;
  transform: translateY(-1px);
}

.entry-date {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #2f241d;
}

.entry-meta {
  display: block;
  font-size: 0.9rem;
  color: #6f5b47;
}

.entry-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.today {
  border-color: #d6a544;
  background: #fff0c8;
}

.purnima {
  border: 2px solid #f5c542;
  background: #fff8dc;
}

.amavasya {
  border: 2px solid #333;
  background: #f2f2f2;
}

.ekadashi {
  border: 2px solid #4a90e2;
  background: #eef6ff;
}

.festival-day {
  border-left: 5px solid #ff6b6b;
}

.active {
  box-shadow: inset 0 0 0 2px #23405f;
}

.active .entry-date,
.active .entry-meta {
  color: #2f241d;
}

.festival-badge {
  display: inline-block;
  background: #ff6b6b;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 8px;
}

.flag-badge {
  display: inline-block;
  background: #ddd;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  margin-left: 5px;
}

#detail-view h3 {
  margin-bottom: 16px;
  font-size: 1.35rem;
}

#detail-view p {
  margin: 10px 0;
}

@media (max-width: 768px) {
  .app-grid {
    display: block;
  }

  .list-panel,
  .detail-panel {
    width: 100%;
  }
}
