/*
 * 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;
  }
}
