/**
 * SHA Student Portal - Student Dashboard UI Stylesheet
 * 
 * Design Direction:
 * - Deep navy sidebar (#060D1A) with refined purple/blue ambient glow
 * - Clean, subtle tinted canvas (#F8FAFC) for the main workspace
 * - Crisp white cards (#FFFFFF) with soft shadows and subtle borders (#E2E8F0)
 * - Professional typography (Plus Jakarta Sans & Inter)
 * - Fully responsive across Desktop, Tablet, and Mobile viewports
 */

/* ==========================================================================
   1. Dashboard Root Shell & Layout Foundation
   ========================================================================== */
.dashboard-body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-body);
  background-color: var(--color-canvas);
  color: var(--color-text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  width: 100%;
}

/* ==========================================================================
   2. Deep Navy Sidebar Navigation
   ========================================================================== */
.dash-sidebar {
  width: var(--sidebar-width);
  background-color: var(--color-navy-950);
  background: linear-gradient(180deg, #060D1A 0%, #091426 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Custom slim scrollbar for sidebar */
.dash-sidebar::-webkit-scrollbar {
  width: 4px;
}
.dash-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.dash-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
}

.dash-sidebar-header {
  padding: var(--space-6) var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.dash-brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.dash-brand-meta {
  display: flex;
  flex-direction: column;
}

.dash-brand-name {
  font-family: var(--font-family-headings);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-white);
  letter-spacing: -0.01em;
}

.dash-brand-sub {
  font-size: 11px;
  color: #94A3B8;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dash-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(109, 40, 217, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  color: #C4B5FD;
  width: fit-content;
}

.dash-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-brand-cyan);
  box-shadow: 0 0 8px var(--color-brand-cyan);
}

/* Sidebar Nav Groups */
.dash-nav-container {
  flex: 1;
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.dash-nav-group-label {
  font-size: 10.5px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748B;
  padding: var(--space-3) var(--space-3) var(--space-1);
  margin-top: var(--space-2);
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 14px;
  color: #94A3B8;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  position: relative;
}

.dash-nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  transition: stroke var(--transition-fast);
}

.dash-nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.dash-nav-link.active {
  color: #FFFFFF;
  background: linear-gradient(90deg, rgba(109, 40, 217, 0.35) 0%, rgba(37, 99, 235, 0.25) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  font-weight: var(--font-weight-semibold);
  box-shadow: 0 2px 10px rgba(109, 40, 217, 0.25);
}

.dash-nav-link.active svg {
  stroke: #8B5CF6;
}

.dash-nav-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.dash-nav-tag-purple {
  background: rgba(139, 92, 246, 0.25);
  color: #DDD6FE;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.dash-nav-tag-cyan {
  background: rgba(0, 212, 178, 0.18);
  color: #5EEAD4;
  border: 1px solid rgba(0, 212, 178, 0.3);
}

/* Sidebar Footer User Card */
.dash-sidebar-footer {
  padding: var(--space-4) var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 13, 26, 0.6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.dash-user-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.dash-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-brand-purple) 0%, var(--color-brand-blue) 100%);
  color: #FFFFFF;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(109, 40, 217, 0.4);
  overflow: hidden;
}

.dash-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-user-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash-user-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-user-role {
  font-size: 11px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: #CBD5E1;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dash-logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}

/* Mobile Sidebar Backdrop */
.dash-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 13, 26, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: calc(var(--z-fixed) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.dash-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   3. Main Dashboard Workspace & Top Navigation Bar
   ========================================================================== */
.dash-main,
.dash-main-area {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-canvas);
  min-width: 0; /* Prevents flex children from causing horizontal scroll */
}

/* Top Navigation Bar */
.dash-topbar {
  height: var(--header-height);
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-xs);
}

.dash-topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-width: 0;
}

.dash-menu-toggle,
.dash-sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 6px;
  color: var(--color-text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.dash-menu-toggle:hover,
.dash-sidebar-toggle:hover {
  background-color: var(--color-surface-hover);
}

.dash-welcome-text,
.dash-welcome-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dash-welcome-title {
  font-family: var(--font-family-headings);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy-950);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-welcome-sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

/* Search Bar in Topbar */
.dash-search-box {
  position: relative;
  width: 280px;
}

.dash-search-input {
  width: 100%;
  height: 38px;
  padding: 0 var(--space-8) 0 var(--space-8);
  background-color: var(--color-surface-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.dash-search-input:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--color-brand-purple);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.dash-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  stroke: var(--color-text-muted);
  pointer-events: none;
}

.dash-search-shortcut {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  pointer-events: none;
}

/* Notifications Button & Dropdown */
.dash-icon-btn {
  position: relative;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dash-icon-btn:hover {
  background-color: var(--color-surface-hover);
  color: var(--color-navy-950);
  border-color: var(--color-border-hover);
}

.dash-badge-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-brand-purple);
  border: 2px solid #FFFFFF;
}

/* Interactive Dropdown Menus */
.dash-dropdown-anchor {
  position: relative;
}

.dash-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-dropdown);
  min-width: 240px;
  display: none;
  flex-direction: column;
  z-index: var(--z-dropdown);
  animation: dropdownFadeIn 0.18s ease-out;
  overflow: hidden;
}

.dash-dropdown-menu.active {
  display: flex;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Notifications Dropdown Panel */
.dash-notifications-panel {
  width: 340px;
  max-width: 90vw;
}

.dash-panel-header {
  padding: var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-surface-hover);
}

.dash-panel-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy-950);
}

.dash-panel-action {
  font-size: 11px;
  color: var(--color-brand-purple);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
}

.dash-panel-action:hover {
  text-decoration: underline;
}

.dash-notification-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.dash-notification-item {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-3);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.dash-notification-item:hover {
  background-color: var(--color-surface-hover);
}

.dash-notif-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-notif-icon-box.purple { background: rgba(109, 40, 217, 0.12); color: var(--color-brand-purple); }
.dash-notif-icon-box.blue { background: rgba(37, 99, 235, 0.12); color: var(--color-brand-blue); }
.dash-notif-icon-box.green { background: rgba(16, 185, 129, 0.12); color: var(--color-success); }

.dash-notif-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-notif-title {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy-950);
}

.dash-notif-time {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Profile Dropdown Trigger & Items */
.dash-profile-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 3px 10px 3px 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dash-profile-trigger:hover {
  border-color: var(--color-border-hover);
  background-color: var(--color-surface-hover);
}

.dash-profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand-purple) 0%, var(--color-brand-blue) 100%);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-profile-name {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy-950);
}

.dash-dropdown-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 16px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dash-dropdown-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.dash-dropdown-link:hover {
  background-color: var(--color-surface-hover);
  color: var(--color-brand-purple);
}

.dash-dropdown-divider {
  height: 1px;
  background-color: var(--color-border);
  margin: var(--space-1) 0;
}

/* ==========================================================================
   4. Main Content Area & Demo Notice Banner
   ========================================================================== */
.dash-workspace,
.dash-content-container {
  flex: 1;
  padding: var(--space-8);
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Demo Simulation Alert Banner */
.dash-demo-alert {
  background: linear-gradient(90deg, rgba(109, 40, 217, 0.08) 0%, rgba(37, 99, 235, 0.08) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  font-size: var(--font-size-xs);
  color: var(--color-navy-900);
}

.dash-demo-alert-left {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dash-demo-badge {
  font-size: 10.5px;
  font-weight: var(--font-weight-bold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--color-brand-purple);
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   5. Overview: 4 Stat Cards
   ========================================================================== */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.dash-stat-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.dash-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.dash-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-stat-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.dash-stat-icon-purple {
  background: rgba(109, 40, 217, 0.1);
  color: var(--color-brand-purple);
}

.dash-stat-icon-blue {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-brand-blue);
}

.dash-stat-icon-cyan {
  background: rgba(0, 212, 178, 0.12);
  color: #0D9488;
}

.dash-stat-icon-gold {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
}

.dash-stat-badge-demo {
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  background: var(--color-surface-muted);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.dash-stat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-stat-number {
  font-family: var(--font-family-headings);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-navy-950);
  line-height: 1.1;
}

.dash-stat-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
}

.dash-stat-footnote {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ==========================================================================
   6. Continue Learning Featured Section
   ========================================================================== */
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.dash-section-title {
  font-family: var(--font-family-headings);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy-950);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dash-section-link {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand-purple);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.dash-section-link:hover {
  text-decoration: underline;
}

.dash-continue-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-6);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.dash-continue-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.dash-continue-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-brand-purple) 0%, var(--color-brand-blue) 100%);
}

.dash-continue-thumb-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background-color: var(--color-navy-900);
}

.dash-continue-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.dash-continue-card:hover .dash-continue-thumb-box img {
  transform: scale(1.04);
}

.dash-continue-play-badge {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 26, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.dash-continue-card:hover .dash-continue-play-badge {
  background: rgba(6, 13, 26, 0.25);
}

.dash-continue-play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-brand-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast);
}

.dash-continue-card:hover .dash-continue-play-circle {
  transform: scale(1.1);
}

.dash-continue-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dash-continue-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}

.dash-continue-title {
  font-family: var(--font-family-headings);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy-950);
  margin: 0 0 var(--space-2);
}

.dash-continue-subtext {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-4);
  line-height: var(--line-height-normal);
}

.dash-progress-wrap {
  margin-bottom: var(--space-4);
}

.dash-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.dash-progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-brand-purple) 0%, var(--color-brand-blue) 100%);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-next-lesson-card {
  background-color: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.dash-next-lesson-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

.dash-next-lesson-name {
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy-950);
}

.dash-continue-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ==========================================================================
   7. My Courses / Learning Tracks (4 SHA Tracks)
   ========================================================================== */
.dash-courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.dash-track-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.dash-track-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-brand-purple-light);
}

.dash-track-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--color-navy-900);
  overflow: hidden;
}

.dash-track-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.dash-track-card:hover .dash-track-thumb img {
  transform: scale(1.05);
}

.dash-track-level-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(6, 13, 26, 0.8);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dash-track-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dash-track-category {
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brand-purple);
  margin-bottom: var(--space-1);
}

.dash-track-title {
  font-family: var(--font-family-headings);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy-950);
  margin: 0 0 var(--space-3);
  line-height: var(--line-height-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.dash-track-progress-block {
  margin-top: auto;
  padding-top: var(--space-3);
  margin-bottom: var(--space-4);
}

.dash-track-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--color-text-muted);
  margin-bottom: 5px;
}

.dash-track-footer {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   8. Upcoming Assessments & Recent Activity Two-Column Split
   ========================================================================== */
.dash-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.dash-panel-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.dash-panel-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

/* Assessment Card Items */
.dash-assessment-item {
  background-color: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  transition: all var(--transition-fast);
}

.dash-assessment-item:hover {
  border-color: #CBD5E1;
  background-color: #FFFFFF;
  box-shadow: var(--shadow-xs);
}

.dash-assessment-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dash-assessment-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy-950);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-assessment-sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.dash-assessment-date {
  font-size: 11px;
  color: #B45309;
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Recent Activity Timeline */
.dash-timeline-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  padding-left: 6px;
}

.dash-timeline-list::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 21px;
  width: 2px;
  background-color: var(--color-border);
}

.dash-timeline-item {
  display: flex;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

.dash-timeline-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #FFFFFF;
  box-shadow: var(--shadow-xs);
}

.dash-timeline-icon.purple { background: var(--color-brand-purple); color: #FFFFFF; }
.dash-timeline-icon.blue { background: var(--color-brand-blue); color: #FFFFFF; }
.dash-timeline-icon.cyan { background: #0D9488; color: #FFFFFF; }
.dash-timeline-icon.gold { background: #D97706; color: #FFFFFF; }

.dash-timeline-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.dash-timeline-text {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy-950);
  line-height: var(--line-height-normal);
}

.dash-timeline-time {
  font-size: 11px;
  color: var(--color-text-muted);
}

.dash-footnote-demo {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: 11px;
  color: var(--color-text-muted);
  border-top: 1px dashed var(--color-border);
  text-align: center;
}

/* ==========================================================================
   9. Responsive Breakpoints
   ========================================================================== */
/* Tablet Breakpoint (max-width: 1180px) */
@media (max-width: 1180px) {
  .dash-courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet & Smaller (max-width: 1024px) */
@media (max-width: 1024px) {
  .dash-sidebar {
    transform: translateX(-100%);
  }

  .dash-sidebar.open {
    transform: translateX(0);
  }

  .dash-main,
  .dash-main-area {
    margin-left: 0;
  }

  .dash-menu-toggle,
  .dash-sidebar-toggle {
    display: inline-flex;
  }

  .dash-split-grid {
    grid-template-columns: 1fr;
  }

  .dash-continue-card {
    grid-template-columns: 200px 1fr;
  }
}

/* Mobile Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
  .dash-topbar {
    padding: 0 var(--space-4);
  }

  .dash-workspace,
  .dash-content-container {
    padding: var(--space-4);
  }

  .dash-search-box {
    display: none; /* Hide search input on mobile/tablet portrait; keep topbar uncluttered */
  }

  .dash-continue-card {
    grid-template-columns: 1fr;
    padding: var(--space-4);
  }

  .dash-continue-thumb-box {
    aspect-ratio: 16 / 9;
  }

  .dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .dash-courses-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .dash-assessment-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-assessment-item .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Small Mobile Breakpoint (max-width: 600px) */
@media (max-width: 600px) {
  .dash-stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .dash-courses-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* Very Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .dash-profile-name {
    display: none;
  }

  .dash-welcome-sub {
    display: none;
  }

  .dash-welcome-title {
    font-size: var(--font-size-sm);
  }

  .dash-continue-actions {
    flex-direction: column;
    width: 100%;
  }

  .dash-continue-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
