/* GREETING SECTION STYLES */

/* Main greeting container with bottom margin */
.greeting {
  margin-bottom: 2rem;
}

/* Greeting heading styling */
.greeting h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Greeting paragraph with theme color */
.greeting p {
  color: var(--primary-dark);
  font-size: 1rem;
}

/* CHART SECTION STYLES */

/* Chart card container with background, rounded corners, and shadow */
.task-chart {
  background: var(--card-color);
  border-radius: 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  margin: 0 auto 2rem;
}

/* Chart title spacing */
.task-chart h3 {
  margin: 0.5rem 0 0.5rem 0; /* top 0.5rem, bottom 0.5rem */
  font-size: 1rem;
}

/* Chart wrapper container with flex layout for chart and legend */
.chart-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.2em 0.3em;
  height: 160px;
  white-space: nowrap;
}

/* Large screens: center chart, keep card compact */
@media screen and (min-width: 600px) {
  .task-chart {
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    max-width: 520px;
  }

  .task-chart h3 {
    margin: 0 1rem 0 0;
    white-space: nowrap;
    font-size: 1.2rem;
  }

  .chart-wrapper {
    width: 280px;
    height: 280px;
    gap: 1rem;
  }
}

/* Small screens: adjust chart size and padding */
@media screen and (max-width: 360px) {
  .chart-wrapper {
    width: 140px;
    height: 120px;
  }

  .task-chart {
    padding: 0.5rem;
  }

  .task-chart h3 {
    font-size: 0.9rem;
  }
}

/* QUICK ACTION BUTTONS STYLES */

/* Quick actions container with flex layout */
.quick-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* Quick action button styling */
.quick-actions button {
  flex: 1;
  padding: 0.8rem;
  border-radius: 10px;
  border: none;
  background: var(--primary-dark);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.2s;
}

/* Quick action button hover effect */
.quick-actions button:hover {
  background: var(--secondary-light);
  cursor: pointer;
}

/* COURSES SECTION STYLES */

/* Courses card container with background and rounded corners */
.courses {
  background: var(--card-color);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

/* Courses header with title and manage button */
.courses-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.courses-header h3 {
  font-size: 1rem;
}

/* Manage button styling */
.manage-btn {
  background: none;
  border: none;
  color: var(--primary-dark);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline
}

/* COURSE LIST AND CARDS STYLES */

/* Course list container with vertical flex layout */
.course-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Individual course card styling */
.course-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  padding: 0.7rem;
  border-radius: 10px;
  transition: 0.2s;
  cursor: pointer;
}

/* Course card hover effect */
.course-card:hover {
  transform: translateY(-2px);
}

/* Course info section (code and semester) */
.course-info {
  display: flex;
  flex-direction: column;
}

/* Course description text styling */
.course-desc {
  font-size: 0.8rem;
  color: #666;
  text-align: right;
  max-width: 40%;
}

/* Course link styling (removes default link styling) */
.course-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Mobile responsive adjustments for course cards */
@media screen and (max-width: 400px) {
  .course-card {
    flex-direction: column;
  }

  .course-desc {
    text-align: left;
    max-width: 100%;
  }
}
