/*
 * Teacher navigation robotics skin (2026-09-28)
 *
 * This file is deliberately presentation-only.  Navigation buttons keep their
 * existing Vue handlers, labels, ordering and role-dependent entries.  The
 * image assets are small WebP illustrations generated for the Figma review.
 */

:root {
  --aj-nav-ink: #28425f;
  --aj-nav-muted: #63758d;
  --aj-nav-blue: #1677e8;
  --aj-nav-blue-soft: #edf6ff;
  --aj-nav-line: #e2ebf5;
  --aj-nav-focus: #72b4f4;
}

/* Top application navigation ------------------------------------------------ */
.header-shell .quick-nav .nav-pill {
  position: relative;
  min-width: 104px;
  height: 46px;
  padding: 0 14px;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--aj-nav-muted);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease,
    box-shadow .18s ease, transform .18s ease;
}

.header-shell .quick-nav .nav-pill .anticon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0;
  background: center / contain no-repeat;
}

.header-shell .quick-nav .nav-pill .anticon > svg {
  display: none;
}

.header-shell .quick-nav .nav-pill .anticon-home {
  background-image: url('/img/nav-home.webp');
}

.header-shell .quick-nav .nav-pill .anticon-highlight {
  background-image: url('/img/nav-typing.webp');
}

.header-shell .quick-nav .nav-pill .anticon-code {
  background-image: url('/img/nav-game.webp');
}

.header-shell .quick-nav .nav-pill .anticon-star {
  background-image: url('/img/nav-community.webp');
}

.header-shell .quick-nav .nav-pill .anticon-download {
  background-image: url('/img/nav-download.webp');
}

.header-shell .quick-nav .nav-pill:hover,
.header-shell .quick-nav .nav-pill:focus-visible,
.header-shell .quick-nav .nav-pill.nav-pill-dashboard {
  color: var(--aj-nav-blue);
  border-color: #cfe4f9;
  background: var(--aj-nav-blue-soft);
  box-shadow: 0 4px 12px rgba(22, 119, 232, .08);
}

.header-shell .quick-nav .nav-pill:focus-visible {
  outline: 2px solid var(--aj-nav-focus);
  outline-offset: 2px;
}

.header-shell .quick-nav .nav-pill:active {
  transform: translateY(1px);
}

/* Keep the compact responsive navigation usable without changing its flow. */
@media (max-width: 1023px) {
  .header-shell .quick-nav .nav-pill {
    min-width: 88px;
    height: 40px;
    padding: 0 10px;
    gap: 6px;
    font-size: 12px;
  }

  .header-shell .quick-nav .nav-pill .anticon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
}

/* Teacher dashboard side navigation ---------------------------------------- */
.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu {
  gap: 7px;
}

.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-item {
  position: relative;
  min-height: 46px;
  padding: 7px 12px;
  gap: 10px;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  color: var(--aj-nav-muted) !important;
  background: #fff !important;
  box-shadow: none !important;
  transform: none !important;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease,
    box-shadow .18s ease;
}

/* Legacy blue rail is replaced by the icon treatment. */
.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-item::before {
  display: none !important;
  background: transparent !important;
}

.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-item:hover,
.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-item:focus-visible,
.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-item.active {
  color: var(--aj-nav-blue) !important;
  border-color: #cfe4f9 !important;
  background: var(--aj-nav-blue-soft) !important;
  box-shadow: 0 4px 12px rgba(22, 119, 232, .07) !important;
}

.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-item:focus-visible {
  outline: 2px solid var(--aj-nav-focus);
  outline-offset: 2px;
}

.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-icon-swatch {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 0;
  border-radius: 9px;
  color: transparent !important;
  background-color: #fff !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
  font-size: 0;
}

.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-icon-swatch .anticon {
  display: none;
}

.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-icon-swatch-home {
  background-image: url('/img/side-home.webp') !important;
}

.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-icon-swatch-classes {
  background-image: url('/img/side-classes.webp') !important;
}

.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-icon-swatch-courses {
  background-image: url('/img/side-courses.webp') !important;
}

.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-icon-swatch-homework {
  background-image: url('/img/side-homework.webp') !important;
}

.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-icon-swatch-exams {
  background-image: url('/img/side-exams.webp') !important;
}

.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-icon-swatch-community {
  background-image: url('/img/side-community.webp') !important;
}

/* Role-specific items remain available and inherit the same neutral treatment. */
.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-icon-swatch-backend,
.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-icon-swatch-teachers {
  background: #fff !important;
  color: var(--aj-nav-blue) !important;
  background-image: none !important;
}

.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-icon-swatch-backend .anticon,
.teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-icon-swatch-teachers .anticon {
  display: inline-flex;
  color: var(--aj-nav-blue) !important;
  font-size: 15px;
}

/* Keep tablet navigation within its parent so both ends remain scrollable. */
@media (max-width: 1023px) {
  .teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-shell .quick-nav .nav-pill,
  .teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar .teacher-menu .menu-item {
    transition: none;
  }
}

/* Keep the shared teacher frame stable across home and every menu (2026-11-04). */
html body .teacher-dashboard.teacher-dashboard-marker {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  min-height: 820px;
  padding: 0;
  background: #fff;
}

html body .teacher-dashboard.teacher-dashboard-marker::before {
  display: none;
}

html body .teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 26px 18px 22px;
  border-right: 1px solid #e5edf5;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

html body .teacher-dashboard.teacher-dashboard-marker .teacher-profile-block {
  padding: 4px 6px 22px;
  border-bottom: 1px solid #edf2f7;
}

html body .teacher-dashboard.teacher-dashboard-marker .teacher-profile-block img {
  width: 56px;
  height: 56px;
  border: 2px solid #d9f1f5;
  box-shadow: 0 6px 16px rgba(26, 145, 174, .14);
}

html body .teacher-dashboard.teacher-dashboard-marker .teacher-profile-block strong {
  color: #18334c;
  font-size: 13px;
  font-weight: 800;
}

html body .teacher-dashboard.teacher-dashboard-marker .teacher-menu {
  gap: 6px;
  margin-top: 18px;
}

html body .teacher-dashboard.teacher-dashboard-marker .menu-item {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #557089;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

html body .teacher-dashboard.teacher-dashboard-marker .menu-item:hover,
html body .teacher-dashboard.teacher-dashboard-marker .menu-item.active {
  border-color: #cfe8f4;
  color: #12628a;
  background: #eaf8fc;
  box-shadow: none;
  transform: none;
}

html body .teacher-dashboard.teacher-dashboard-marker .menu-icon-swatch {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  font-size: 12px;
  box-shadow: none;
}

html body .teacher-dashboard.teacher-dashboard-marker .assistant-entry {
  min-height: 76px;
  margin-top: auto;
  padding: 10px;
  gap: 8px;
  border: 1px solid #d6ecf4;
  border-radius: 12px;
  color: #18516b;
  background: #f1fbfd;
  box-shadow: none;
}

html body .teacher-dashboard.teacher-dashboard-marker .assistant-avatar {
  width: 42px;
  height: 42px;
  padding: 2px;
  border-radius: 10px;
  background: #fff;
}

html body .teacher-dashboard.teacher-dashboard-marker .assistant-copy strong {
  color: #18516b;
  font-size: 12px;
}

html body .teacher-dashboard.teacher-dashboard-marker .assistant-copy em {
  color: #6b8b9a;
  font-size: 10px;
}

html body .teacher-dashboard.teacher-dashboard-marker .assistant-arrow {
  color: #2295b4;
  font-size: 13px;
}

html body .teacher-dashboard.teacher-dashboard-marker .dashboard-main {
  min-width: 0;
  padding: 0;
  background: #fff;
}


html body .teacher-dashboard.teacher-dashboard-marker:not(.teacher-dashboard-home) .dashboard-main {
  padding: 30px 34px 42px;
}

@media (max-width: 1023px) {
  html body .teacher-dashboard.teacher-dashboard-marker { grid-template-columns: minmax(0, 1fr); }
  /* Short panels must not distribute spare grid height below the navigation. */
  html body .teacher-dashboard.teacher-dashboard-marker,
  html body .student-dashboard.student-tech-workspace { align-content: start; }
  html body .teacher-dashboard.teacher-dashboard-marker .dashboard-sidebar { position: relative; min-height: 0; padding: 10px 18px; }
  html body .teacher-dashboard.teacher-dashboard-marker .teacher-menu { overflow-x: auto; }
  html body .teacher-dashboard.teacher-dashboard-marker .menu-item { white-space: nowrap; }
  html body .teacher-dashboard.teacher-dashboard-marker:not(.teacher-dashboard-home) .dashboard-main { padding: 22px 20px 30px; }
}
@media (max-width: 767px) {
  html body .teacher-dashboard.teacher-dashboard-marker:not(.teacher-dashboard-home) .dashboard-main { padding: 18px 14px 26px; }
}
