/* ========== Calendar Styles ========== */
.calendar-container {
  padding: 2rem 1.5rem;
  margin-top: 70px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  background: var(--background-dark);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.month-year {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 0 1rem;
  font-weight: 500;
}

.nav-button {
  background: var(--surface-medium);
  border: none;
  color: var(--primary-color);
  font-size: 2.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-button:hover {
  background: var(--primary-color);
  color: var(--background-dark);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  background: var(--surface-medium);
  padding: 10px;
  border-radius: 12px;
}

.day-header {
  text-align: center;
  padding: 1rem;
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 500;
}

.calendar-days {
  display: contents;
}

.day {
  aspect-ratio: 1;
  background: var(--surface-dark);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 1.4rem;
  border-radius: 8px;
  position: relative;
  transition: all 0.2s ease;
}

.day:hover {
  background: var(--surface-medium);
  transform: scale(1.05);
  z-index: 1;
}

.other-month {
  color: #666;
}

.today {
  background: var(--primary-color);
  color: var(--background-dark);
  font-weight: bold;
}

.event-dot {
  width: 6px;
  height: 6px;
  background: #03dac6;
  border-radius: 50%;
  margin-top: 4px;
}

/* ========== Weekly Tasks ========== */
.weekly-tasks {
  padding: 2rem 1.5rem;
  background: var(--surface-dark);
  margin: 2rem;
  border-radius: 12px;
}

.tasks-title {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-family: 'Pacifico', cursive;
}

.task-container {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.task-box {
  background: var(--surface-medium);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.task-box.urgent {
  border-left-color: #ff5252;
  background: #2a1a1a;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.task-category {
  font-size: 1.2rem;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
}

.task-category.study { background: #3700b3; color: white; }
.task-category.personal { background: #018786; color: white; }
.task-category.project { background: #03dac6; color: #121212; }
.task-category.revision { background: var(--primary-color); color: #121212; }

.task-time {
  font-size: 1.2rem;
  color: #888;
}

.task-text {
  margin: 0;
  font-size: 1.4rem;
  color: var(--text-primary);
}

/* ========== Media Queries ========== */
@media (max-width: 480px) {
  .calendar-container {
    padding: 1rem;
  }

  .month-year {
    font-size: 1.8rem;
  }

  .nav-button {
    width: 35px;
    height: 35px;
    font-size: 2rem;
  }

  .day-header {
    font-size: 1.2rem;
    padding: 0.8rem;
  }

  .day {
    font-size: 1.2rem;
  }

  .weekly-tasks {
    margin: 1rem;
    padding: 1.5rem;
  }

  .tasks-title {
    font-size: 1.8rem;
  }
}