/* ============================================================
   TOETSPORTAAL - Dashboard stijlen
   ============================================================ */

/* ---- Samenvatting stats ---- */
.dash-summary {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  margin-bottom: 36px;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.dash-stat {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 28px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  min-width: 140px;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  border-top: 4px solid var(--primary);
}

.dash-stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1;
}

.dash-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Sectietitels ---- */
.dash-section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* ---- Toetsen tabel ---- */
.attempts-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.attempts-table th {
  background: var(--primary-dark);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
}

.attempts-table td {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.attempts-table tr:last-child td {
  border-bottom: none;
}

.attempts-table tr:hover td {
  background: var(--bg);
}

.attempt-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.attempt-status.opened {
  background: #e3f0ff;
  color: #1565c0;
}

.attempt-status.completed {
  background: #e8f5e9;
  color: var(--success);
}

/* ---- Doelen lijst ---- */
.goals-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 8px;
}

.goal-item {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 14px 18px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 14px;
}

.goal-code {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--primary);
  min-width: 60px;
  background: var(--bg);
  border-radius: 4px;
  padding: 4px 8px;
  text-align: center;
}

.goal-desc {
  font-size: 0.85rem;
  color: var(--text);
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  line-height: 1.4;
}

.goal-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.goal-status-dot.behaald       { background: var(--success); }
.goal-status-dot.in_progress   { background: var(--warning); }
.goal-status-dot.niet_gestart  { background: #ccc; }

.goal-module-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
}

/* ---- MS user email in header ---- */
.ms-user-email {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  display: block;
}
