/* Chaqar Student — UI/UX Phase 7
   Action-first learner and teacher workspace. No business rules live here. */

[data-product-surface="student"] {
  background:
    radial-gradient(circle at 12% 0%, rgb(37 99 235 / .06), transparent 26rem),
    #f8fafc;
}

[data-product-surface="student"] .cq-app-header {
  border-bottom-color: rgb(191 219 254 / .72);
}

.cq-btn-secondary {
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

.cq-btn-secondary:hover {
  border-color: #93c5fd;
  background: #dbeafe;
}

.cq-notification-link {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: .8rem;
  color: #475569;
  background: #fff;
}

.cq-notification-link:hover { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }

[data-student-navigation] .cq-app-nav-link.is-current {
  color: #1d4ed8;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #dbeafe;
}

.cq-student-page { position: relative; }

.cq-student-hero {
  border-color: #dbeafe;
  background:
    radial-gradient(circle at 86% 4%, rgb(96 165 250 / .24), transparent 34%),
    linear-gradient(135deg, #fff 0%, #eff6ff 100%);
}

.cq-student-next-action {
  display: grid;
  gap: 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 1.35rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 62%, #3b82f6 100%);
  color: #fff;
  box-shadow: 0 18px 48px rgb(37 99 235 / .18);
}

.cq-student-next-action .cq-btn { background: #fff; color: #1d4ed8; }
.cq-student-next-action .cq-btn:hover { background: #eff6ff; }

.cq-student-kicker {
  color: #bfdbfe;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cq-student-grid-card {
  height: 100%;
  transition: transform var(--cq-motion-normal), border-color var(--cq-motion-normal), box-shadow var(--cq-motion-normal);
}

.cq-student-grid-card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 20px 48px rgb(30 64 175 / .09);
}

.cq-student-status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  padding: .38rem .7rem;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: .72rem;
  font-weight: 800;
}

.cq-student-status::before {
  width: .42rem;
  height: .42rem;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.cq-student-step-list { counter-reset: student-step; }
.cq-student-step { position: relative; padding-left: 3.2rem; }
.cq-student-step::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid #bfdbfe;
  border-radius: .75rem;
  color: #1d4ed8;
  background: #eff6ff;
  content: counter(student-step);
  counter-increment: student-step;
  font-size: .78rem;
  font-weight: 850;
}

.cq-student-empty {
  border: 1px dashed #bfdbfe;
  border-radius: 1.35rem;
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  background: rgb(255 255 255 / .84);
}

.cq-student-sidebar {
  border-top: 4px solid #2563eb;
  box-shadow: 0 20px 50px rgb(15 23 42 / .07);
}

.cq-student-page :where(button, .cq-btn)[disabled] {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

@media (min-width: 640px) {
  .cq-student-next-action { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 1.5rem; }
}

@media (max-width: 767px) {
  [data-student-navigation] { padding-block: .45rem; }
  .cq-student-next-action { border-radius: 1.1rem; }
}
