.teacher-panel {
  padding: 2.5rem 0 3.5rem;
}

.teacher-panel__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 0.25rem;
}

.stat-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  height: 100%;
}

.stat-card__label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
}

.panel-card {
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.teacher-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
}

.teacher-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.teacher-table tbody td {
  padding: 0.9rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
}

.teacher-table tbody tr:hover {
  background: var(--bg-subtle);
}

.module-card {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md);
  padding: 1.25rem !important;
  margin-bottom: 1rem;
}

.module-order-label {
  color: var(--brand) !important;
  font-weight: 700;
}

.drag-handle {
  cursor: grab;
  color: var(--muted);
  user-select: none;
  padding: 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1;
}

.drag-handle:active {
  cursor: grabbing;
}

.sortable-ghost {
  opacity: 0.45;
  background: var(--brand-soft) !important;
}

.sortable-chosen {
  border-color: var(--brand) !important;
}

#reorder-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1200;
  display: none;
  padding: 0.65rem 1rem;
  background: var(--text);
  border: none;
  color: #fff;
  font-size: 0.9rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.course-cover-preview__img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  display: block;
}

.category-picker {
  position: relative;
}

.category-picker__selected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.category-picker__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  background: var(--brand-soft);
  color: var(--text);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

.category-picker__chip button {
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 0;
  line-height: 1;
  cursor: pointer;
  font-size: 1rem;
}

.category-picker__empty {
  padding: 0.6rem 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.category-picker__results {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-md);
  max-height: 220px;
  overflow-y: auto;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
}

.category-picker__results li button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
}

.category-picker__results li button:hover {
  background: var(--bg-subtle);
  color: var(--brand);
}

.upload-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.upload-card .card-body {
  padding: 1.5rem;
}

.upload-card .progress {
  background: var(--bg-muted);
}

.upload-card .progress-bar {
  background: var(--brand) !important;
}
