/* ===== Parent Dashboard Styles ===== */

.parent-header {
  background: #2D3436;
  color: white;
}

.parent-header .btn-back {
  background: rgba(255,255,255,0.15);
  color: white;
}

.parent-header h2 {
  color: white;
}

.parent-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  background: #F5F6FA;
}

.parent-section {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}

.parent-section h3 {
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  color: #2D3436;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.stat-box {
  background: #F8F9FA;
  border-radius: 12px;
  padding: 0.85rem;
  text-align: center;
}

.stat-box .stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.stat-box .stat-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 0.15rem;
}

.skill-list {
  list-style: none;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid #F0F0F0;
  font-size: 0.9rem;
}

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

.skill-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-introduced { background: #E3F2FD; color: #1565C0; }
.badge-practising { background: #FFF3E0; color: #E65100; }
.badge-developing { background: #F3E5F5; color: #7B1FA2; }
.badge-demonstrated { background: #E8F5E9; color: #2E7D32; }
.badge-needs { background: #FFEBEE; color: #C62828; }

.progress-bar-wrap {
  height: 10px;
  background: #E0E0E0;
  border-radius: 5px;
  overflow: hidden;
  margin: 0.4rem 0 0.8rem;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 5px;
  transition: width 0.4s ease;
}

.area-progress-item {
  margin-bottom: 0.9rem;
}

.area-progress-item label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
}

.area-progress-item span {
  color: var(--text-soft);
  font-weight: 400;
}

.btn-parent-action {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.5rem;
  background: #F0F0F0;
  color: var(--text);
}

.btn-parent-action.danger {
  background: #FFEBEE;
  color: #C62828;
}

.btn-parent-action.primary {
  background: var(--primary);
  color: white;
}

.week-summary {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.suggestion-card {
  background: #FFF8E1;
  border-radius: 12px;
  padding: 0.85rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  border-left: 4px solid var(--warning);
}

/* Parent Gate */
#parent-gate {
  justify-content: center;
  align-items: center;
  background: rgba(45,52,54,0.92);
}

.gate-box {
  background: white;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  max-width: 340px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.gate-box h2 {
  margin-bottom: 0.5rem;
}

.gate-box > p {
  color: var(--text-soft);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.gate-q {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  margin-bottom: 1.25rem !important;
}

.gate-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.gate-options button {
  padding: 0.85rem;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  background: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

.gate-options button:active {
  background: #F0F0F0;
}

.btn-back-text {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: underline;
}

/* Curriculum overview table-like */
.curriculum-grid {
  display: grid;
  gap: 0.5rem;
}

.curriculum-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #F0F0F0;
  align-items: center;
}

.curriculum-row.header {
  font-weight: 700;
  color: var(--text-soft);
  border-bottom: 2px solid #E0E0E0;
}
