/* =============================================================
   MathPath Parent Module Sprint — CSS Patch
   ITEM 1: Color Scheme Extension (navy/gold brand palette)
   Insert into index.html <style> block or external stylesheet,
   AFTER existing parent-section styles.
   ============================================================= */

/* -------------------------------------------------------
   CSS VARIABLE OVERRIDES (ensure these are in :root if not
   already present; skip if already declared)
   ------------------------------------------------------- */
:root {
  --navy: #0B1F3A;
  --gold: #C9A84C;
  --bg:   #F0F4F8;
  --gold-light: rgba(201, 168, 76, 0.15);
  --navy-muted: rgba(11, 31, 58, 0.08);
}

/* -------------------------------------------------------
   PARENT SCREEN HEADER
   ------------------------------------------------------- */
#s-parent .tutor-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold); /* gold accent line */
  position: relative;
}

/* Gradient divider / wave effect below header */
#s-parent .tutor-header::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(to bottom, var(--navy-muted), transparent);
  pointer-events: none;
}

#s-parent .tutor-header h2,
#s-parent .tutor-header .header-title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Parent name / greeting subline */
#s-parent .header-subline {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.9;
  display: block;
  margin-top: 2px;
}

/* Notification bell in header */
#s-parent .header-bell {
  position: relative;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.15s;
}
#s-parent .header-bell:hover {
  background: rgba(255,255,255,0.12);
}
#s-parent .header-bell .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* -------------------------------------------------------
   PARENT AVATAR (header)
   ------------------------------------------------------- */
#s-parent .parent-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

/* -------------------------------------------------------
   TAB BAR — active tab gold underline
   ------------------------------------------------------- */
#s-parent .tab-btn {
  color: #666;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  background: none;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

#s-parent .tab-btn:hover {
  color: var(--navy);
}

#s-parent .tab-btn.active {
  color: var(--navy);
  border-bottom: 3px solid var(--gold);
  font-weight: 600;
}

/* Tab bar scrollable on mobile */
#s-parent .tab-bar {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  scrollbar-width: none;
}
#s-parent .tab-bar::-webkit-scrollbar { display: none; }

/* -------------------------------------------------------
   PANEL & OUTER LAYOUT
   ------------------------------------------------------- */
#s-parent .parent-panel-outer {
  background: var(--bg);
  min-height: 100%;
  padding: 16px;
}

#s-parent .pcc {         /* child card — existing class, reinforce white bg */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(11,31,58,0.08);
}

#s-parent .parent-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(11,31,58,0.08);
  overflow: hidden;
}

/* -------------------------------------------------------
   SECTION HEADINGS — c.avy with gold left border
   ------------------------------------------------------- */
#s-parent .panel-section-heading {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
  margin: 16px 0 10px;
  letter-spacing: 0.01em;
}

/* -------------------------------------------------------
   BUTTONS — parent context
   ------------------------------------------------------- */

/* Primary: navy */
#s-parent .btn-primary,
#s-parent .btn-navy {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
#s-parent .btn-primary:hover,
#s-parent .btn-navy:hover {
  background: #162f56;
  box-shadow: 0 2px 8px rgba(11,31,58,0.22);
}

/* Accent: gold outline */
#s-parent .btn-gold,
#s-parent .btn-accent {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
#s-parent .btn-gold:hover,
#s-parent .btn-accent:hover {
  background: var(--gold);
  color: #fff;
}

/* Small utility button */
#s-parent .btn-sm {
  padding: 5px 12px;
  font-size: 0.8rem;
}

/* -------------------------------------------------------
   QUICK-STATQ CARDS
   ------------------------------------------------------- */
.parent-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
@media (max-width: 480px) {
  .parent-quick-stats { grid-template-columns: 1fr; }
}

.parent-stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(11,31,58,0.07);
  border-top: 3px solid var(--navy);
}
.parent-stat-card.gold-accent { border-top-color: var(--gold); }

.parent-stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.parent-stat-card .stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* -------------------------------------------------------
   WELCOME BANNER
   ------------------------------------------------------- */
.parent-welcome-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6a 100%);
  border-radius: 14px;
  padding: 20px 22px;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.parent-welcome-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  pointer-events: none;
}
.parent-welcome-banner .banner-greeting {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.parent-welcome-banner .banner-date {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 8px;
}
.parent-welcome-banner .banner-progress-snippet {
  font-size: 0.85rem;
  background: rgba(255,255,255,0.1);
  border-left: 3px solid var(--gold);
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
  display: inline-block;
}

/* -------------------------------------------------------
   LOADING SKELETONS
   ------------------------------------------------------- */
@keyframes skeleton-pulse {
  0%   { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 400px 100%;
  animation: skeleton-pulse 1.4s ease infinite;
  border-radius: 6px;
}
.skeleton-line {
  height: 14px;
  margin-bottom: 8px;
}
.skeleton-line.short  { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.full   { width: 100%; }
.skeleton-block {
  height: 80px;
  border-radius: 10px;
}

/* -------------------------------------------------------
   TAB PANED FADE TRANSITION
   ------------------------------------------------------- */
.tab-panel {
  animation: tabFadeIn 0.15s ease;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------
   EMPTY STATE
   ------------------------------------------------------- */
.parent-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
}
.parent-empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.parent-empty-state h4 {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.parent-empty-state p {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* -------------------------------------------------------
   TUTOR BROWSER MODAL (Item 2)
   ------------------------------------------------------- */
.tutor-browser-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: overlayIn 0.18s ease;
}
@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.tutor-browser-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(11,31,58,0.25);
  animation: modalSlideIn 0.2s ease;
}
@keyframes modalSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.tutor-browser-header {
  background: var(--navy);
  padding: 18px 20px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  flex-shrink: 0;
}
.tutor-browser-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.tutor-browser-header .close-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.tutor-browser-header .close-btn:hover { background: rgba(255,255,255,0.25); }

.tutor-browser-filters {
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg);
  flex-shrink: 0;
}

.tutor-browser-filters select,
.tutor-browser-filters .filter-tag {
  border: 1px solid #d1d5db;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.8rem;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}

.tutor-browser-filters .filter-tag.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.tutor-browser-body {
  overflow-y: auto;
  padding: 16px 20px;
  flex: 1;
}

.tutor-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 500px) {
  .tutor-card-grid { grid-template-columns: 1fr; }
}

.tutor-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.tutor-card:hover {
  box-shadow: 0 4px 12px rgba(11,31,58,0.1);
  border-color: #c7d2fe;
}

.tutor-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tutor-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.tutor-info { flex: 1; min-width: 0; }
.tutor-info .tutor-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tutor-info .tutor-specialties {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 1px;
}

.tutor-rate-badge {
  background: var(--gold-light);
  color: #7a5c12;
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.tutor-bio-snippet {
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.4;
}

.tutor-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.tutor-stars {
  font-size: 0.8rem;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 3px;
}
.tutor-stars .rating-count {
  color: #9ca3af;
  font-size: 0.75rem;
}
.tutor-availability {
  font-size: 0.72rem;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 2px 7px;
}

.tutor-request-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}
.tutor-request-btn:hover { background: #162f56; }

/* -------------------------------------------------------
   STAR RATINGS + RATE-YOUR-TUTOPPHOMPT
   ------------------------------------------------------- */
.ÇG4ar-rating-prompt {
  background: var(--bg);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}
.star-rating-prompt h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.star-picker {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.star-picker .star-btn {
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #d1d5db;
  transition: color 0.1s, transform 0.1s;
  padding: 2px;
  line-height: 1;
}
.star-picker .star-btn.selected,
.star-picker .star-btn:hover,
.star-picker .star-btn.hover-active {
  color: #f59e0b;
  transform: scale(1.15);
}
.star-comment-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  resize: vertical;
  min-height: 60px;
  margin-bottom: 10px;
  box-sizing: border-box;
  font-family: inherit;
}
.star-comment-input:focus {
  outline: none;
  border-color: var(--navy);
}

/* -------------------------------------------------------
   COMMENTS WIDGET
   ------------------------------------------------------- */
.comments-widget {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
}
.comments-widget-header {
  background: var(--bg);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.comments-widget-header .caret {
  transition: transform 0.2s;
  font-size: 0.7rem;
  color: #9ca3af;
}
.comments-widget-header.open .caret { transform: rotate(180deg); }

.comments-widget-body {
  display: none;
  padding: 12px 14px;
}
.comments-widget-body.open { display: block; }

.comment-item {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comment-content { flex: 1; min-width: 0; }
.comment-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}
.comment-author-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}
.comment-role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.comment-role-badge.student { background: #dbeafe; color: #1e40af; }
.comment-role-badge.parent  { background: #d1fae5; color: #065f46; }
.comment-role-badge.tutor   { background: var(--gold-light); color: #7a5c12; }
.comment-role-badge.admin   { background: #fee2e2; color: #991b1b; }
.comment-timestamp {
  font-size: 0.7rem;
  color: #9ca3af;
}
.comment-body {
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.45;
}
.comment-pinned-badge {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 600;
}

.comments-new-form {
  border-top: 1px solid #f3f4f6;
  padding-top: 10px;
  margin-top: 4px;
}
.comments-new-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  resize: vertical;
  min-height: 54px;
  margin-bottom: 8px;
  box-sizing: border-box;
  font-family: inherit;
}
.comments-new-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.comments-new-form .post-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.comments-new-form .post-btn:hover { background: #162f56; }
/* =============================================================
   MathPath Parent Module Sprint â CSS Patch
   ITEM 1: Color Scheme Extension (navy/gold brand palette)
   Insert into index.html <style> block or external stylesheet,
   AFTER existing parent-section styles.
   ============================================================= */

/* -------------------------------------------------------
   CSS VARIABLE OVERRIDES (ensure these are in :root if not
   already present; skip if already declared)
   ------------------------------------------------------- */
:root {
  --navy: #0B1F3A;
  --gold: #C9A84C;
  --bg:   #F0F4F8;
  --gold-light: rgba(201, 168, 76, 0.15);
  --navy-muted: rgba(11, 31, 58, 0.08);
}

/* -------------------------------------------------------
   PARENT SCREEN HEADER
   ------------------------------------------------------- */
#s-parent .tutor-header {
  background: var(--navy);
  border-bottom: 3px solid var(--gold); /* gold accent line */
  position: relative;
}

/* Gradient divider / wave effect below header */
#s-parent .tutor-header::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(to bottom, var(--navy-muted), transparent);
  pointer-events: none;
}

#s-parent .tutor-header h2,
#s-parent .tutor-header .header-title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Parent name / greeting subline */
#s-parent .header-subline {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.9;
  display: block;
  margin-top: 2px;
}

/* Notification bell in header */
#s-parent .header-bell {
  position: relative;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.15s;
}
#s-parent .header-bell:hover {
  background: rgba(255,255,255,0.12);
}
#s-parent .header-bell .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* -------------------------------------------------------
   PARENT AVATAR (header)
   ------------------------------------------------------- */
#s-parent .parent-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.3);
  flex-shrink: 0;
}

/* -------------------------------------------------------
   TAB BAR â active tab gold underline
   ------------------------------------------------------- */
#s-parent .tab-btn {
  color: #666;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  background: none;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

#s-parent .tab-btn:hover {
  color: var(--navy);
}

#s-parent .tab-btn.active {
  color: var(--navy);
  border-bottom: 3px solid var(--gold);
  font-weight: 600;
}

/* Tab bar scrollable on mobile */
#s-parent .tab-bar {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  scrollbar-width: none;
}
#s-parent .tab-bar::-webkit-scrollbar { display: none; }

/* -------------------------------------------------------
   PANEL & OUTER LAYOUT
   ------------------------------------------------------- */
#s-parent .parent-panel-outer {
  background: var(--bg);
  min-height: 100%;
  padding: 16px;
}

#s-parent .pcc {         /* child card â existing class, reinforce white bg */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(11,31,58,0.08);
}

#s-parent .parent-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(11,31,58,0.08);
  overflow: hidden;
}

/* -------------------------------------------------------
   SECTION HEADINGS â c.avy with gold left border
   ------------------------------------------------------- */
#s-parent .panel-section-heading {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
  margin: 16px 0 10px;
  letter-spacing: 0.01em;
}

/* -------------------------------------------------------
   BUTTONS â parent context
   ------------------------------------------------------- */

/* Primary: navy */
#s-parent .btn-primary,
#s-parent .btn-navy {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
#s-parent .btn-primary:hover,
#s-parent .btn-navy:hover {
  background: #162f56;
  box-shadow: 0 2px 8px rgba(11,31,58,0.22);
}

/* Accent: gold outline */
#s-parent .btn-gold,
#s-parent .btn-accent {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
#s-parent .btn-gold:hover,
#s-parent .btn-accent:hover {
  background: var(--gold);
  color: #fff;
}

/* Small utility button */
#s-parent .btn-sm {
  padding: 5px 12px;
  font-size: 0.8rem;
}

/* -------------------------------------------------------
   QUICK-STATQ CARDS
   ------------------------------------------------------- */
.parent-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
@media (max-width: 480px) {
  .parent-quick-stats { grid-template-columns: 1fr; }
}

.parent-stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(11,31,58,0.07);
  border-top: 3px solid var(--navy);
}
.parent-stat-card.gold-accent { border-top-color: var(--gold); }

.parent-stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.parent-stat-card .stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* -------------------------------------------------------
   WELCOME BANNER
   ------------------------------------------------------- */
.parent-welcome-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6a 100%);
  border-radius: 14px;
  padding: 20px 22px;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.parent-welcome-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  pointer-events: none;
}
.parent-welcome-banner .banner-greeting {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.parent-welcome-banner .banner-date {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 8px;
}
.parent-welcome-banner .banner-progress-snippet {
  font-size: 0.85rem;
  background: rgba(255,255,255,0.1);
  border-left: 3px solid var(--gold);
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
  display: inline-block;
}

/* -------------------------------------------------------
   LOADING SKELETONS
   ------------------------------------------------------- */
@keyframes skeleton-pulse {
  0%   { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 400px 100%;
  animation: skeleton-pulse 1.4s ease infinite;
  border-radius: 6px;
}
.skeleton-line {
  height: 14px;
  margin-bottom: 8px;
}
.skeleton-line.short  { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.full   { width: 100%; }
.skeleton-block {
  height: 80px;
  border-radius: 10px;
}

/* -------------------------------------------------------
   TAB PANED FADE TRANSITION
   ------------------------------------------------------- */
.tab-panel {
  animation: tabFadeIn 0.15s ease;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------
   EMPTY STATE
   ------------------------------------------------------- */
.parent-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #9ca3af;
}
.parent-empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.parent-empty-state h4 {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.parent-empty-state p {
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* -------------------------------------------------------
   TUTOR BROWSER MODAL (Item 2)
   ------------------------------------------------------- */
.tutor-browser-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: overlayIn 0.18s ease;
}
@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.tutor-browser-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(11,31,58,0.25);
  animation: modalSlideIn 0.2s ease;
}
@keyframes modalSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.tutor-browser-header {
  background: var(--navy);
  padding: 18px 20px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  flex-shrink: 0;
}
.tutor-browser-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.tutor-browser-header .close-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.tutor-browser-header .close-btn:hover { background: rgba(255,255,255,0.25); }

.tutor-browser-filters {
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg);
  flex-shrink: 0;
}

.tutor-browser-filters select,
.tutor-browser-filters .filter-tag {
  border: 1px solid #d1d5db;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.8rem;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}

.tutor-browser-filters .filter-tag.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.tutor-browser-body {
  overflow-y: auto;
  padding: 16px 20px;
  flex: 1;
}

.tutor-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 500px) {
  .tutor-card-grid { grid-template-columns: 1fr; }
}

.tutor-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.tutor-card:hover {
  box-shadow: 0 4px 12px rgba(11,31,58,0.1);
  border-color: #c7d2fe;
}

.tutor-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tutor-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.tutor-info { flex: 1; min-width: 0; }
.tutor-info .tutor-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tutor-info .tutor-specialties {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 1px;
}

.tutor-rate-badge {
  background: var(--gold-light);
  color: #7a5c12;
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.tutor-bio-snippet {
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.4;
}

.tutor-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.tutor-stars {
  font-size: 0.8rem;
  color: #f59e0b;
  display: flex;
  align-items: center;
  gap: 3px;
}
.tutor-stars .rating-count {
  color: #9ca3af;
  font-size: 0.75rem;
}
.tutor-availability {
  font-size: 0.72rem;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 2px 7px;
}

.tutor-request-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}
.tutor-request-btn:hover { background: #162f56; }

/* -------------------------------------------------------
   STAR RATINGS + RATE-YOUR-TUTOPPHOMPT
   ------------------------------------------------------- */
.ÇG4ar-rating-prompt {
  background: var(--bg);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}
.star-rating-prompt h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.star-picker {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.star-picker .star-btn {
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #d1d5db;
  transition: color 0.1s, transform 0.1s;
  padding: 2px;
  line-height: 1;
}
.star-picker .star-btn.selected,
.star-picker .star-btn:hover,
.star-picker .star-btn.hover-active {
  color: #f59e0b;
  transform: scale(1.15);
}
.star-comment-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  resize: vertical;
  min-height: 60px;
  margin-bottom: 10px;
  box-sizing: border-box;
  font-family: inherit;
}
.star-comment-input:focus {
  outline: none;
  border-color: var(--navy);
}

/* -------------------------------------------------------
   COMMENTS WIDGET
   ------------------------------------------------------- */
.comments-widget {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 12px;
}
.comments-widget-header {
  background: var(--bg);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.comments-widget-header .caret {
  transition: transform 0.2s;
  font-size: 0.7rem;
  color: #9ca3af;
}
.comments-widget-header.open .caret { transform: rotate(180deg); }

.comments-widget-body {
  display: none;
  padding: 12px 14px;
}
.comments-widget-body.open { display: block; }

.comment-item {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comment-content { flex: 1; min-width: 0; }
.comment-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}
.comment-author-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}
.comment-role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.comment-role-badge.student { background: #dbeafe; color: #1e40af; }
.comment-role-badge.parent  { background: #d1fae5; color: #065f46; }
.comment-role-badge.tutor   { background: var(--gold-light); color: #7a5c12; }
.comment-role-badge.admin   { background: #fee2e2; color: #991b1b; }
.comment-timestamp {
  font-size: 0.7rem;
  color: #9ca3af;
}
.comment-body {
  font-size: 0.82rem;
  color: #374151;
  line-height: 1.45;
}
.comment-pinned-badge {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 600;
}

.comments-new-form {
  border-top: 1px solid #f3f4f6;
  padding-top: 10px;
  margin-top: 4px;
}
.comments-new-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  resize: vertical;
  min-height: 54px;
  margin-bottom: 8px;
  box-sizing: border-box;
  font-family: inherit;
}
.comments-new-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.comments-new-form .post-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.comments-new-form .post-btn:hover { background: #162f56; }
