/* Student پیشخوان (dashboard) in the Asmeli "bold" look (design approved 27 Nov 2026).
 *
 * Scoped to the student dashboard (.student-dashboard-header) inside the glass shell:
 * a blue band behind the top, a strong frosted profile card with a gradient avatar ring,
 * a glowing main button, stat cards in two columns with raised gradient icon tiles.
 * Colours from tokens.css (--as-*); lite-mode.css (loaded after) still removes blur and glow.
 */

html.app-glass body:has(.student-dashboard-header) {
  background-color: var(--as-canvas, #eef3ff) !important;
  background-image:
    radial-gradient(300px 300px at 0% 120px, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 70%),
    radial-gradient(320px 320px at 100% 640px, rgba(232, 194, 106, 0.35), rgba(232, 194, 106, 0) 70%),
    linear-gradient(180deg, #2f5bd8 0px, #6e95f2 260px, #cfddff 560px, var(--as-canvas, #eef3ff) 900px) !important;
  background-attachment: scroll !important;
}

/* Stories row sits on the blue band: white text. */
html.app-glass body:has(.student-dashboard-header) .main-panel .stories-hint,
html.app-glass body:has(.student-dashboard-header) .main-panel .stories-bar .story-name,
html.app-glass body:has(.student-dashboard-header) .main-panel .stories-bar span {
  color: #ffffff !important;
}

/* Profile card: strong frosted white with a deep blue shadow. */
html.app-glass body:has(.student-dashboard-header) .main-panel .student-dashboard-header .student-dashboard-greeting,
html.app-glass body:has(.student-dashboard-header) .main-panel .student-dashboard-header .student-dashboard-greeting-stack {
  border-radius: 30px !important;
}

html.app-glass body:has(.student-dashboard-header) .main-panel .student-dashboard-banner {
  border-radius: 30px !important;
  box-shadow: 0 24px 60px -12px rgba(16, 40, 120, 0.45), inset 0 1px 0 #ffffff !important;
}

html.app-glass body:has(.student-dashboard-header) .main-panel .student-dashboard-avatar {
  background: conic-gradient(from 200deg, var(--as-accent, #e8c26a), #4369d3, var(--as-primary, #2341a0), var(--as-accent, #e8c26a)) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 28px -8px rgba(35, 65, 160, 0.6) !important;
  padding: 4px !important;
}

html.app-glass body:has(.student-dashboard-header) .main-panel .student-dashboard-greeting h1,
html.app-glass body:has(.student-dashboard-header) .main-panel .dashboard-student-name {
  font-weight: 800 !important;
}

/* The first action (edit profile) is the main button: saturated blue with a glow. */
html.app-glass body:has(.student-dashboard-header) .main-panel .profile-action-buttons .dashboard-welcome-edit:first-child {
  background: linear-gradient(180deg, #3b63e0, var(--as-primary, #2341a0)) !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 28px -8px rgba(35, 65, 160, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  min-height: 48px;
}

html.app-glass body:has(.student-dashboard-header) .main-panel .profile-action-buttons .dashboard-welcome-edit:first-child svg {
  color: #ffffff !important;
  fill: currentColor;
  stroke: currentColor;
}

html.app-glass body:has(.student-dashboard-header) .main-panel .profile-action-buttons .dashboard-welcome-edit:not(:first-child) {
  background: #ffffff !important;
  border: 1px solid var(--as-border, #dae0ec) !important;
  border-radius: 16px !important;
  color: var(--as-text, #10192b) !important;
  font-weight: 800 !important;
  min-height: 48px;
}

/* Stats: two columns on phones, frosted cards with raised gradient icon tiles. */
@media (max-width: 899px) {
  html.app-glass body:has(.student-dashboard-header) .main-panel .dashboard-quick-stats {
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

html.app-glass body:has(.student-dashboard-header) .main-panel .dashboard-quick-stat {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  border-radius: 24px !important;
  box-shadow: 0 14px 30px -10px rgba(16, 40, 120, 0.3), inset 0 1px 0 #ffffff !important;
}

html.app-glass body:has(.student-dashboard-header) .main-panel .dashboard-quick-stat .dashboard-stat-icon {
  border: 0 !important;
  border-radius: 12px !important;
  color: #ffffff !important;
}

html.app-glass body:has(.student-dashboard-header) .main-panel .dashboard-quick-stat-enrolled .dashboard-stat-icon {
  background: linear-gradient(145deg, #6e95f2, var(--as-primary, #2341a0)) !important;
  box-shadow: 0 8px 16px -6px rgba(35, 65, 160, 0.7) !important;
}

html.app-glass body:has(.student-dashboard-header) .main-panel .dashboard-quick-stat-completed .dashboard-stat-icon {
  background: linear-gradient(145deg, #5fb474, #1a8641) !important;
  box-shadow: 0 8px 16px -6px rgba(26, 134, 65, 0.7) !important;
}

html.app-glass body:has(.student-dashboard-header) .main-panel .dashboard-quick-stat-progress .dashboard-stat-icon {
  background: linear-gradient(145deg, #93c0ff, #3683e7) !important;
  box-shadow: 0 8px 16px -6px rgba(54, 131, 231, 0.7) !important;
}

html.app-glass body:has(.student-dashboard-header) .main-panel .dashboard-quick-stat-certificates .dashboard-stat-icon {
  background: linear-gradient(145deg, #f2d58e, var(--as-accent-strong, #c9a24a)) !important;
  box-shadow: 0 8px 16px -6px rgba(201, 162, 74, 0.8) !important;
  color: #12172b !important;
}

html.app-glass body:has(.student-dashboard-header) .main-panel .dashboard-quick-stat .dashboard-stat-value {
  font-weight: 800 !important;
}

/* Bottom tab bar on every page (phones): the active tab is a glowing blue pill. */
@media (max-width: 899px) {
  html.app-glass .app-tabbar .app-tab.active {
    background: linear-gradient(180deg, #3b63e0, var(--as-primary, #2341a0)) !important;
    box-shadow: 0 10px 20px -8px rgba(35, 65, 160, 0.8) !important;
    color: #ffffff !important;
  }
}
