/* Кабинет преподавателя: хлебные крошки (нейтральная серая палитра) */
.teacher-breadcrumbs {
  --tb-bg: #f4f4f5;
  --tb-border: #e4e4e7;
  --tb-text: #71717a;
  --tb-link: #52525b;
  --tb-link-hover: #27272a;
  --tb-active: #18181b;
  margin-bottom: 1.25rem;
}

.teacher-breadcrumbs__nav {
  background: var(--tb-bg);
  border: 1px solid var(--tb-border);
  border-radius: 12px;
  padding: 0.55rem 1rem;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.05);
}

.teacher-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.35;
}

.teacher-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.teacher-breadcrumbs__sep {
  color: #a1a1aa;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin: 0 0.1rem;
  user-select: none;
}

.teacher-breadcrumbs__link {
  color: var(--tb-link);
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.15rem 0.25rem;
  margin: -0.15rem -0.25rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.teacher-breadcrumbs__link:hover {
  color: var(--tb-link-hover);
  background-color: rgba(24, 24, 27, 0.06);
}

.teacher-breadcrumbs__link:focus-visible {
  outline: 2px solid #a1a1aa;
  outline-offset: 2px;
}

.teacher-breadcrumbs__home {
  font-size: 1rem;
  vertical-align: -0.1em;
}

.teacher-breadcrumbs__current {
  color: var(--tb-active);
  font-weight: 600;
  padding: 0.15rem 0.25rem;
  max-width: min(100%, 42rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .teacher-breadcrumbs__nav {
    padding: 0.5rem 0.75rem;
  }

  .teacher-breadcrumbs__list {
    font-size: 0.8125rem;
  }

  .teacher-breadcrumbs__current {
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
  }
}

/* --- Список учеников, заголовок блока «на проверке» --- */
.teacher-card-header-pending {
  background-color: rgba(255, 193, 7, 0.12);
  border-bottom: 1px solid rgba(255, 193, 7, 0.28);
}

.empty-students {
  background: #f8f9fa;
  border: 1px dashed rgba(0, 0, 0, 0.12);
}

.teacher-list-page .student-avatar {
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.teacher-list-page .student-cell {
  min-width: 200px;
  max-width: 280px;
}

.btn-assign-soft {
  border: 1px solid #0d9488;
  color: #0f766e;
  background: rgba(13, 148, 136, 0.08);
  font-weight: 600;
}

.btn-assign-soft:hover {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}

.teacher-list-page .student-row .action-btn {
  cursor: pointer;
}

/* --- Страница списка тестов --- */
.teacher-test-list-page {
  --ttl-border: rgba(0, 0, 0, 0.08);
}

.teacher-test-list-page .quick-gen-section {
  background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.teacher-test-list-page .quick-gen-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

.teacher-test-list-page .quick-gen-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.teacher-test-list-page .quick-gen-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: 0.5rem 0.85rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
  background: #fff;
  border: 1px solid var(--ttl-border);
  border-radius: 0.375rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04);
}

.teacher-test-list-page .quick-gen-meta {
  min-width: 0;
}

.teacher-test-list-page .quick-gen-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #333;
  line-height: 1.25;
}

.teacher-test-list-page .quick-gen-hint {
  font-size: 0.6875rem;
  color: #6c757d;
  line-height: 1.2;
  margin-top: 0.05rem;
}

.teacher-test-list-page .quick-gen-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-end;
}

.teacher-test-list-page .quick-gen-form .form-select-sm {
  min-width: 7.5rem;
  max-width: 11rem;
  flex: 1 1 auto;
}

.teacher-test-list-page .quick-gen-form--multi .form-select-sm {
  min-width: 5.25rem;
  max-width: none;
  flex: 1 1 28%;
}

.teacher-test-list-page .quick-gen-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

@media (max-width: 767.98px) {
  .teacher-test-list-page .quick-gen-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 0.5rem 0.6rem;
  }

  .teacher-test-list-page .quick-gen-form,
  .teacher-test-list-page .quick-gen-form--multi {
    justify-content: stretch;
  }

  .teacher-test-list-page .quick-gen-form .form-select-sm,
  .teacher-test-list-page .quick-gen-form--multi .form-select-sm {
    max-width: none;
    flex: 1 1 100%;
  }

  .teacher-test-list-page .quick-gen-btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .teacher-test-list-page .quick-gen-btn-text {
    display: none;
  }
}

.teacher-test-list-page .filters-panel {
  background-color: #f8f9fa;
  padding: 1.25rem;
  border-radius: 0.375rem;
  border: 1px solid var(--ttl-border);
}

.teacher-test-list-page .filters-panel .form-label {
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.teacher-test-list-page .clickable-row td:first-child {
  position: relative;
}

.teacher-test-list-page .clickable-row td:first-child::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: transparent;
  transition: background-color 0.2s ease;
  border-radius: 2px 0 0 2px;
}

.teacher-test-list-page .clickable-row:hover td:first-child::before {
  background-color: #0d6efd;
}

.teacher-test-list-page .test-list-empty-state {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* --- Дашборд: плитки быстрых действий --- */
.teacher-quick-action-tile {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
}

a:hover .teacher-quick-action-tile,
a:focus-visible .teacher-quick-action-tile {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.teacher-quick-action-tile .action-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-quick-action-tile .action-icon i {
  font-size: 1.2rem;
}
