/* ═══════════════════════════════════════════════
   ExamZEN — Dashboard Styles v2
═══════════════════════════════════════════════ */

/* ── GREETING ────────────────────────────────── */
.greeting {
  margin-bottom: 32px;
}

.greeting-time {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.greeting-name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}

.greeting-name span { color: var(--text-sub); }

/* ── STAT GRID ───────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px 16px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── EXAM PILLS ──────────────────────────────── */
.exam-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.exam-pill {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--t);
}

.exam-pill:hover:not(.coming-soon) {
  border-color: var(--border-2);
  color: var(--text-sub);
}

.exam-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.exam-pill.coming-soon {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── SUBJECT PROGRESS ────────────────────────── */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}

.subject-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  animation: fadeUp 0.3s ease both;
  opacity: 0;
}

.subject-card:nth-child(1) { animation-delay: 0ms; }
.subject-card:nth-child(2) { animation-delay: 50ms; }
.subject-card:nth-child(3) { animation-delay: 100ms; }

.subject-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.subject-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.subject-pct {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
}

.subject-bar-wrap {
  margin-bottom: 14px;
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chapter-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chapter-name {
  font-size: 0.72rem;
  color: var(--text-dim);
  width: 100px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter-track {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.chapter-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.5s ease;
}

.chapter-pct-label {
  font-size: 0.66rem;
  color: var(--text-dim);
  width: 26px;
  text-align: right;
  flex-shrink: 0;
}

/* ── QUICK ACTIONS ───────────────────────────── */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
}

.action-card:hover {
  background: var(--hover);
  border-color: var(--border-2);
}

.action-info { flex: 1; min-width: 0; }

.action-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.action-desc {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-arrow {
  color: var(--text-dim);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform var(--t);
}
.action-card:hover .action-arrow { transform: translateX(3px); }

/* ── RECENT ACTIVITY ─────────────────────────── */
.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-info    { background: var(--text-dim); }
.dot-success { background: var(--green); }
.dot-wrong   { background: var(--red); }
.dot-warning { background: var(--yellow); }

.activity-text {
  font-size: 0.82rem;
  color: var(--text-sub);
  flex: 1;
}

.activity-time {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.activity-score {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1100px) {
  .stat-grid    { grid-template-columns: repeat(2, 1fr); }
  .subject-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .greeting-name { font-size: 1.4rem; }
  .stat-grid    { grid-template-columns: repeat(2, 1fr); }
  .subject-grid { grid-template-columns: 1fr; }
  .action-grid  { grid-template-columns: 1fr; }
  .exam-pills   { gap: 5px; }
}
