* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fefaf5;
  font-family: 'Inter', sans-serif;
  color: #2c2a29;
  padding: 2rem 1.5rem;
}

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
}

.hero-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 2px dashed #e8ddd0;
  padding-bottom: 1.2rem;
  gap: 1rem;
}

.title-area h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: #3e3a35;
  margin-bottom: 0.2rem;
}

.title-area h1 i {
  font-size: 1.6rem;
  color: #c3aa8b;
  margin-right: 6px;
}

.date-badge {
  font-size: 0.9rem;
  font-weight: 400;
  background: #efe4d8;
  display: inline-block;
  padding: 0.2rem 1rem;
  border-radius: 40px;
  color: #6b5a4b;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffffcc;
  backdrop-filter: blur(2px);
  padding: 6px 16px 6px 8px;
  border-radius: 60px;
  border: 1px solid #f1e2d4;
  cursor: pointer;
  transition: 0.2s;
}
.user-profile:hover {
  background: #fff8f0;
}

.pfp-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e6d5c2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #fef1e4;
}
.pfp-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pfp-circle i {
  font-size: 28px;
  color: #b1977a;
}
.user-info strong {
  display: block;
  font-size: 0.85rem;
  color: #5b4636;
}
.user-info span {
  font-size: 0.7rem;
  color: #b5916b;
}

.quote-card {
  background: #ffffff;
  padding: 0.5rem 1.4rem;
  border-radius: 28px;
  border: 1px solid #f0e4d8;
  max-width: 360px;
}
.quote-card i {
  color: #cfb797;
  margin-right: 6px;
}
.quote-card p {
  font-style: italic;
  font-size: 0.85rem;
  display: inline;
}
.quote-card span {
  font-size: 0.7rem;
  color: #9b8a78;
  margin-left: 8px;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.8rem;
}

.card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.05);
  padding: 1.3rem 1.2rem;
  margin-bottom: 1.8rem;
  border: 1px solid #f3ede7;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px dashed #eedfcb;
  padding-bottom: 0.6rem;
}
.card-header h3 {
  font-size: 1.2rem;
  font-weight: 500;
  font-family: 'Playfair Display', serif;
  color: #5e4e3c;
}
.card-header h3 i {
  color: #c3aa8b;
  margin-right: 8px;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #b59d7f;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 30px;
  transition: 0.2s;
}
.icon-btn:hover {
  background: #f8f0e8;
  color: #7f6242;
}

/* timer */
.timer-display {
  font-family: monospace;
  font-size: 3rem;
  font-weight: 500;
  text-align: center;
  background: #fcf6f0;
  padding: 0.4rem;
  border-radius: 70px;
  margin: 0.6rem 0;
  color: #5c4b39;
}
.timer-controls {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}
.timer-controls button, #resetTimerBtn {
  background: #f2ebe2;
  border: none;
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  font-weight: 500;
  cursor: pointer;
}

/* daily tasks */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}
.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fefaf7;
  padding: 0.5rem 0.8rem;
  border-radius: 50px;
  border: 1px solid #f1e4d9;
}
.task-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.task-check {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #c3aa8b;
}
.task-title {
  font-size: 0.9rem;
}
.task-title.completed {
  text-decoration: line-through;
  color: #a99682;
}
.delete-task {
  background: transparent;
  border: none;
  color: #ccb79b;
  cursor: pointer;
  padding: 4px 8px;
}
.delete-task:hover {
  color: #c26a4a;
}

/* running notes */
.running-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.note-chip {
  background: #fcf5ed;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e7d8cb;
}

/* weekly grid */
.weekly-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.weekday-col {
  background: #fef9f4;
  border-radius: 20px;
  padding: 0.5rem;
}
.weekday-name {
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #b18f6e;
  text-align: center;
}
.week-tasks {
  min-height: 80px;
}
.week-task-item {
  font-size: 0.7rem;
  background: white;
  border-radius: 40px;
  padding: 4px 8px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}
.week-task-item .completed {
  text-decoration: line-through;
  color: #b59a7a;
}
.delete-task-sm {
  background: none;
  border: none;
  color: #cfb59a;
  cursor: pointer;
}

/* calendar */
.calendar-mini {
  background: #fef9f3;
  border-radius: 28px;
  padding: 0.8rem;
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.calendar-header button {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #b5916b;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #b79b7c;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.cal-day {
  background: white;
  border-radius: 40px;
  text-align: center;
  padding: 6px 4px;
  font-size: 0.75rem;
  border: 1px solid #f1e2d4;
}
.cal-day.today {
  background: #e7d9cc;
  font-weight: bold;
}
.cal-day.has-task {
  border-bottom: 2px solid #cbb898;
}

/* upcoming + tracker */
.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  margin: 12px 0;
}
.upcoming-task {
  background: #fef7f0;
  padding: 8px 12px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 3px solid #dccbb8;
}
.upcoming-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.upcoming-check {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #c3aa8b;
}
.upcoming-title {
  font-size: 0.8rem;
}
.upcoming-title.completed-upcoming {
  text-decoration: line-through;
  color: #a99682;
}
.tracker-stats {
  background: #f9f2ea;
  border-radius: 30px;
  padding: 10px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}
.progress-bar {
  background: #e2d4c6;
  border-radius: 30px;
  height: 6px;
  width: 100%;
  margin-top: 8px;
}
.progress-fill {
  background: #c3aa8b;
  width: 0%;
  height: 6px;
  border-radius: 30px;
  transition: 0.2s;
}
.info-note {
  font-size: 0.7rem;
  text-align: center;
  margin-top: 10px;
  color: #b5916b;
}

/* playlist */
.playlist-container {
  margin-top: 6px;
}
.current-track {
  background: #fcf6f0;
  border-radius: 60px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
#playPauseBtn {
  font-size: 1.5rem;
  cursor: pointer;
  color: #b59272;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
#volumeSlider {
  flex: 1;
  accent-color: #c3aa8b;
}
.playlist {
  list-style: none;
}
.playlist li {
  background: #fefaf7;
  border-radius: 50px;
  padding: 6px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.playlist li.active-track {
  background: #f1e5d9;
  border-left: 3px solid #c3aa8b;
}

/* modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: #fffcf9;
  border-radius: 32px;
  padding: 1.5rem;
  width: 300px;
}
.modal-content input, .modal-content select {
  width: 100%;
  padding: 8px;
  margin: 10px 0;
  border-radius: 60px;
  border: 1px solid #e6d7cb;
}
.modal-content button {
  background: #e2d4c6;
  border: none;
  padding: 8px;
  border-radius: 60px;
  width: 100%;
  font-weight: 500;
  cursor: pointer;
}
.close-modal {
  float: right;
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 850px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .weekly-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}