/* =========================================================================
   PROFIENCY PAGE: MATCH DASHBOARD CONTAINER & CHART STYLES
   ========================================================================= */

/* 1) Container width/spacing: exactly the same as Dashboard’s .dashboard-container */
.proficiency-page .proficiency-container {
  max-width: 650px;
  margin: 36px auto 0 auto;    /* top margin of 36px, centered horizontally */
  padding: 0 14px 56px 14px;   /* left/right padding 14px, bottom padding 56px */
}

/* 2) Instruction text (same style as Dashboard‐greeting paragraph, but slightly smaller) */
.proficiency-page .instruction-text {
  text-align: center;
  color: #5d5d5d;
  font-size: 1.19rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

/* 3) Course selector wrapper: centered & same visual style as a Dashboard input (slightly adjusted) */
.proficiency-page .course-select-wrap {
  margin: 0 auto 2.5rem auto;
  max-width: 530px;
  background: #fff;
  border-radius: 2.3rem;
  box-shadow: 0 4px 32px rgba(255,167,38,0.10);
  padding: 0.15rem 1.8rem;
  display: flex;
  align-items: center;
}
.proficiency-page .course-select-wrap select {
  border: none;
  flex: 1 1 auto;
  font-size: 1.21rem;
  padding: 0.9rem 0.9rem 0.9rem 0;
  outline: none;
  color: #444;
}

/* 4) Stats row: identical to Dashboard’s .stats-row */
.proficiency-page .stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

/* 5) Stat cards: exactly the same as Dashboard’s .stat-card */
.proficiency-page .stat-card {
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 2px 18px rgba(255,167,38,0.13);
  padding: 2.1rem 1.3rem 1.6rem 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
  text-align: center;
  transition: box-shadow 0.16s;
}
.proficiency-page .stat-card:hover {
  box-shadow: 0 6px 24px rgba(255,167,38,0.20);
}
.proficiency-page .stat-icon {
  font-size: 2.2rem;
  color: #FFA726;
  margin-bottom: 0.25rem;
}
.proficiency-page .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
}
.proficiency-page .stat-highlight {
  color: #ff5f36; /* “Last Attempt” in orange‐red, same as Dashboard’s highlight */
}
.proficiency-page .stat-label {
  font-size: 1.08rem;
  color: #757575;
  margin-top: 0.14rem;
}

/* 6) “Go to Course” button: same shape & color as Dashboard’s primary buttons */
.proficiency-page .go-course-btn {
  display: block;
  margin: 0 auto 2.5rem auto;
  background: #FFA726;
  color: #fff;
  border: none;
  border-radius: 2.3rem;
  padding: 0.8rem 2rem;
  font-size: 1.21rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(255,167,38,0.10);
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.proficiency-page .go-course-btn:hover {
  box-shadow: 0 6px 24px rgba(255,167,38,0.20);
}

/* 7) Chart section: same flex‐column with gaps as Dashboard’s .chart-section */
.proficiency-page .chart-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
  align-items: stretch;
}

/* 8) Chart cards (identical to Dashboard’s .chart-card) */
.proficiency-page .chart-card {
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 2px 16px rgba(255,167,38,0.13);
  padding: 1.6rem 1.1rem 2.0rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.16s;
  min-width: 40%;
}
.proficiency-page .chart-card:hover {
  box-shadow: 0 6px 24px rgba(255,167,38,0.20);
}
.proficiency-page .chart-title {
  font-weight: 600;
  font-size: 1.18rem;
  margin-bottom: 0.8rem;
  color: #252525;
}

/* 9) Chart canvas wrapper: exactly 180×130 px, same as Dashboard */
.proficiency-page .chart-canvas-wrap {
  width: 180px !important;
  height: 130px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto; /* center horizontally if parent is wider */
}

/* 10) Donut‐center text: 2rem, orange, positioned exactly center */
.proficiency-page .donut-center-text {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  font-size: 2rem;
  color: #FFA726;
  font-weight: bold;
}

/* 11) Trend label (“Last Scores”): same font/color/spacing as Dashboard */
.proficiency-page .trend-label {
  margin-top: 0.7rem;
  color: #444;
  font-size: 1.05rem;
  text-align: center;
}

/* 12) Correct vs Wrong line: same font/spacing as Dashboard */
.proficiency-page .chart-card > div:last-child {
  /* This targets the <div> immediately under the pie chart in usercourseproficiency.html */
  text-align: center;
  margin-top: 0.7rem;
  font-size: 1.07rem;
  color: #333;
}
.proficiency-page .correct-label {
  color: #36c449;
  font-weight: 600;
}
.proficiency-page .wrong-label {
  color: #ff4848;
  font-weight: 600;
}

/* 13) If you want to reuse Dashboard’s “about‐section” or other styles, those are already in site.css */

