/**
 * Lesson colors, capacity flags, join links, fill percent
 */
/* Private lessons — pink (original schedule color) */
.lms-sched-grid-cell--private {
  --cell-bg: #f4cccc;
  background: #f4cccc;
}
/* Group lessons — match the day column color */
.lms-sched-grid-cell--day-sat-tue {
  --cell-bg: #93c47d;
  background: #93c47d;
}
.lms-sched-grid-cell--day-sun-wed {
  --cell-bg: #ffd966;
  background: #ffd966;
}
.lms-sched-grid-cell--day-mon-thu {
  --cell-bg: #b4d7ff;
  background: #b4d7ff;
}
.lms-sched-grid-cell--day-default {
  --cell-bg: #f4cccc;
  background: #f4cccc;
}
.lms-sched-grid-cell--private .lms-sched-grid-student-count {
  background: rgba(0, 0, 0, 0.1);
}
.lms-sched-grid-cell--day-sat-tue .lms-sched-grid-student-count,
.lms-sched-grid-cell--day-sun-wed .lms-sched-grid-student-count,
.lms-sched-grid-cell--day-mon-thu .lms-sched-grid-student-count,
.lms-sched-grid-cell--day-default .lms-sched-grid-student-count {
  background: rgba(0, 0, 0, 0.1);
}
/* Legacy aliases (kept for older markup) */
.lms-sched-grid-cell--main {
  --cell-bg: #f4cccc;
  background: #f4cccc;
}
.lms-sched-grid-cell--online {
  --cell-bg: #b6d7a8;
  background: #b6d7a8;
}
.lms-sched-grid-cell--main .lms-sched-grid-student-count {
  background: rgba(0, 0, 0, 0.1);
}
.lms-sched-grid-cell--online .lms-sched-grid-student-count {
  background: rgba(30, 58, 138, 0.15);
  color: #1e3a8a;
}
.lms-sched-grid-teacher--add {
  cursor: pointer;
  text-align: center;
  vertical-align: middle;
  background: var(--cui-surface);
  transition: background-color 0.15s ease;
}
.lms-sched-grid-teacher--add .lms-sched-grid-add-instructor {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  background: var(--cui-surface);
}
.lms-sched-grid-teacher--add:hover {
  z-index: 5;
  background: var(--cui-nav-hover-bg);
}
.lms-sched-grid-teacher--add:hover .lms-sched-grid-add-instructor {
  background: var(--cui-nav-hover-bg);
}
.lms-sched-grid-add-instructor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cui-text-muted);
}
.lms-sched-grid-teacher--add:hover .lms-sched-grid-add-instructor {
  color: var(--cui-text);
}
.lms-sched-grid-cell-time {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.92;
  margin-bottom: 0.15rem;
  line-height: 1.25;
}
.lms-sched-grid-cell--span {
  white-space: normal;
  /* Paint the colored block only across the lesson's real duration. A 1.5h class in a
     2-hour merged cell fills 75% and leaves the remaining half-hour visually empty. */
  background: linear-gradient(
    to right,
    var(--cell-bg, transparent) var(--cal-fill-pct, 100%),
    transparent var(--cal-fill-pct, 100%)
  );
}
.lms-sched-grid-cell-header {
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
}
.lms-sched-grid-cell-meta {
  font-size: 0.7rem;
  opacity: 0.85;
  margin-bottom: 0.25rem;
}
.lms-sched-grid-cell-location {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.8;
  margin-bottom: 0.2rem;
}
.lms-sched-grid-cell-link {
  margin-top: 0.35rem;
}
.lms-sched-grid-join-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1e3a8a;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lms-sched-grid-join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(30, 58, 138, 0.25);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.lms-sched-grid-join-btn:hover {
  color: #1d4ed8;
  background: #fff;
}
html[data-theme="dark"] .lms-sched-grid-join-btn {
  color: #93c5fd;
  background: rgba(29, 35, 39, 0.95);
  border-color: rgba(147, 197, 253, 0.28);
  box-shadow: none;
}
html[data-theme="dark"] .lms-sched-grid-join-btn:hover {
  color: #bfdbfe;
  background: var(--cui-surface-2);
}
.lms-sched-grid-join-btn--prominent {
  width: 100%;
}
.lms-sched-grid-join-link:hover {
  color: #1d4ed8;
}
.lms-sched-grid-link-missing {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(30, 58, 138, 0.75);
  font-style: italic;
}
.lms-sched-grid-students {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lms-sched-grid-students li {
  position: relative;
  margin: 0.1rem 0;
  padding-left: 0.65rem;
  font-size: 0.72rem;
}
.lms-sched-grid-students li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}
.lms-sched-student-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
}
.lms-sched-student-link:hover,
.lms-sched-student-link:focus-visible {
  text-decoration: underline;
  color: #1e3a8a;
  outline: none;
}
.lms-sched-student-plain {
  font-weight: 500;
}
.lms-sched-grid-students .lms-sched-student-item--frozen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
}
.lms-sched-student-link--frozen,
.lms-sched-student-plain--frozen {
  color: #0e7490;
}
html[data-theme="dark"] .lms-sched-student-link--frozen,
html[data-theme="dark"] .lms-sched-student-plain--frozen {
  color: #67e8f9;
}
.lms-sched-student-freeze-icon {
  font-size: 0.65rem;
  margin-right: 0.15rem;
  opacity: 0.9;
}
.lms-sched-student-freeze-tag {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  background: rgba(6, 182, 212, 0.18);
  color: #0e7490;
  line-height: 1.2;
}
html[data-theme="dark"] .lms-sched-student-freeze-tag {
  background: rgba(34, 211, 238, 0.15);
  color: #a5f3fc;
}
.lms-sched-student-popover {
  position: fixed;
  z-index: 10050;
  min-width: 10rem;
  max-width: 16rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--cui-radius, 0.5rem);
  border: 1px solid var(--cui-border, #d1d5db);
  background: var(--cui-surface, #ffffff);
  color: var(--cui-text, #111827);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
}
html[data-theme="dark"] .lms-sched-student-popover {
  background: #1f2937;
  border-color: #374151;
  color: #f3f4f6;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.lms-sched-student-popover-name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}
.lms-sched-student-popover-open {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4338ca;
  text-decoration: none;
}
.lms-sched-student-popover-open:hover {
  text-decoration: underline;
  color: #3730a3;
}
html[data-theme="dark"] .lms-sched-student-popover-open {
  color: #a5b4fc;
}
html[data-theme="dark"] .lms-sched-student-popover-open:hover {
  color: #c7d2fe;
}

.lms-interview-note-popover {
  position: fixed;
  z-index: 10050;
  width: min(20rem, calc(100vw - 1rem));
  max-height: min(16rem, calc(100vh - 1rem));
  overflow-y: auto;
  padding: 0.75rem 0.85rem;
  border-radius: var(--cui-radius, 0.5rem);
  border: 1px solid var(--cui-border, #d1d5db);
  background: var(--cui-surface, #ffffff);
  color: var(--cui-text, #111827);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
}
html[data-theme="dark"] .lms-interview-note-popover {
  background: #1f2937;
  border-color: #374151;
  color: #f3f4f6;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}
.lms-interview-note-popover__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cui-text-muted, #6b7280);
  margin-bottom: 0.45rem;
}
.lms-interview-note-popover__body {
  font-size: 0.875rem;
  line-height: 1.45;
  white-space: pre-line;
}

.lms-interview-note-item + .lms-interview-note-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cui-border, #d1d5db);
}
.lms-interview-note-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: var(--cui-accent, #4338ca);
  box-shadow: 0 0 0 2px var(--cui-surface, #fff);
}

.lms-interview-note-avatar--img {
  padding: 0;
  overflow: hidden;
  background: var(--cui-surface-alt, #f3f4f6);
}

.lms-interview-note-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lms-sched-grid-cell--break {
  background: #990000;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  cursor: default;
  min-height: 7rem;
  padding: 0.65rem 0.4rem;
  line-height: 1.35;
}
.lms-sched-grid-cell--break-span {
  white-space: normal;
}
.lms-sched-grid-cell--break:hover {
  filter: none;
}
.lms-sched-grid-empty {
  background: var(--cui-surface);
  min-height: 7rem;
}
.lms-sched-grid-empty--clickable {
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.lms-sched-grid-empty--clickable:hover {
  background: var(--cui-nav-hover-bg);
}
.lms-sched-grid-empty-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6.5rem;
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--cui-text-muted);
  opacity: 0.45;
}
