/* LMS data views: table / list / card + toolbar, pager, sticky header */

.lms-dt { margin: 0 0 1rem; }
.lms-dt [hidden] { display: none !important; }

/* ---------- toolbar ---------- */
.lms-dt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .6rem;
  margin-bottom: .75rem;
  padding: .55rem .7rem;
  border: 1px solid var(--edu-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, var(--edu-accent));
  box-shadow: 0 4px 14px rgba(23, 67, 108, .06);
}
.lms-dt-spacer { flex: 1 1 auto; }
.lms-dt-count { font-size: .82rem; font-weight: 600; color: var(--edu-text-soft); white-space: nowrap; }
.lms-dt-search { position: relative; margin: 0; flex: 1 1 220px; max-width: 340px; }
.lms-dt-search .bi { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--edu-text-soft); pointer-events: none; }
.lms-dt-search input { padding-left: 2.1rem; border-radius: 999px; border-color: var(--edu-border); }
.lms-dt-sort, .lms-dt-size { width: auto; min-width: 8.5rem; border-radius: 10px; border-color: var(--edu-border); }
.lms-dt-export { border-radius: 10px; white-space: nowrap; }

.lms-dt-views {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--edu-border);
  border-radius: 12px;
  background: #fff;
}
.lms-dt-view-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--edu-text-soft);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.lms-dt-view-btn:hover { background: var(--edu-accent); color: var(--edu-primary); }
.lms-dt-view-btn.is-active {
  background: linear-gradient(135deg, var(--edu-primary), var(--edu-primary-2));
  color: #fff;
  box-shadow: 0 4px 10px rgba(15, 98, 214, .28);
}
.lms-dt-view-btn:focus-visible, .lms-pg:focus-visible, .lms-sortable:focus-visible {
  outline: 2px solid var(--edu-primary-2);
  outline-offset: 2px;
}

/* ---------- table view ---------- */
.lms-dt .table-responsive { border: 1px solid var(--edu-border); border-radius: 14px; background: #fff; max-height: 70vh; }
.lms-view-table .lms-table { margin-bottom: 0; }
.lms-view-table .lms-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--edu-accent);
  color: #1a4268;
  font-size: .82rem;
  white-space: nowrap;
  border-bottom: 2px solid var(--edu-border);
}
.lms-view-table .lms-table tbody tr { transition: background .12s ease; }
.lms-view-table .lms-table tbody tr:hover > * { background-color: rgba(49, 133, 235, .07); }

.lms-sortable { cursor: pointer; user-select: none; }
.lms-sortable::after {
  content: "\F282"; /* bi-chevron-expand */
  font-family: "bootstrap-icons";
  font-size: .72rem;
  margin-left: .4rem;
  opacity: .35;
}
.lms-sortable:hover::after { opacity: .8; }
.lms-sortable.lms-sort-asc::after { content: "\F235"; opacity: 1; color: var(--edu-primary); } /* bi-chevron-up */
.lms-sortable.lms-sort-desc::after { content: "\F229"; opacity: 1; color: var(--edu-primary); } /* bi-chevron-down */

/* ---------- shared (list + card) ---------- */
.lms-view-list .table-responsive,
.lms-view-card .table-responsive { border: 0; background: transparent; max-height: none; overflow: visible; }
.lms-view-list .lms-table,
.lms-view-card .lms-table { display: block; border: 0; background: transparent; --bs-table-bg: transparent; --bs-table-striped-bg: transparent; }
.lms-view-list .lms-table thead,
.lms-view-card .lms-table thead { display: none; }
.lms-view-list .lms-table tbody,
.lms-view-card .lms-table tbody { display: grid; gap: .6rem; }
.lms-view-list .lms-table tbody tr,
.lms-view-card .lms-table tbody tr {
  background: #fff;
  border: 1px solid var(--edu-border);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(23, 67, 108, .06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.lms-view-list .lms-table tbody tr:hover,
.lms-view-card .lms-table tbody tr:hover {
  transform: translateY(-1px);
  border-color: var(--ux-border-strong);
  box-shadow: var(--ux-panel-shadow);
}
.lms-view-list .lms-table td,
.lms-view-card .lms-table td { display: block; border: 0; background: transparent !important; padding: 0; min-width: 0; }
.lms-view-list .lms-table td[data-label]:not(:first-child):not(.lms-cell-actions)::before,
.lms-view-card .lms-table td[data-label]:not(:first-child):not(.lms-cell-actions)::before {
  content: attr(data-label);
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--edu-text-soft);
  margin-bottom: .1rem;
}
.lms-view-list .lms-table td:first-child,
.lms-view-card .lms-table td:first-child { font-weight: 700; color: #123f6b; font-size: 1.02rem; }
.lms-view-list .lms-table td:empty,
.lms-view-card .lms-table td:empty { display: none; }

/* ---------- list view: one row per record ---------- */
.lms-view-list .lms-table tbody tr {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) repeat(auto-fit, minmax(110px, 1fr));
  align-items: center;
  gap: .4rem 1.1rem;
  padding: .75rem 1rem;
  border-left: 4px solid var(--edu-primary-2);
}
.lms-view-list .lms-table td.lms-cell-actions { grid-column: 1 / -1; padding-top: .35rem; border-top: 1px dashed var(--edu-border) !important; }

/* ---------- card view ---------- */
.lms-view-card .lms-table tbody { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.lms-view-card .lms-table tbody tr {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1rem 1.1rem;
  border-top: 4px solid var(--edu-primary-2);
}
.lms-view-card .lms-table td:first-child { padding-bottom: .5rem; border-bottom: 1px solid var(--edu-border) !important; }
.lms-view-card .lms-table td.lms-cell-actions { margin-top: auto; padding-top: .6rem; border-top: 1px dashed var(--edu-border) !important; }

/* ---------- empty state + pager ---------- */
.lms-dt-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--edu-text-soft);
  border: 1px dashed var(--edu-border);
  border-radius: 14px;
  background: #fff;
}
.lms-dt-empty .bi { font-size: 2rem; display: block; margin-bottom: .35rem; opacity: .6; }

.lms-dt-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .3rem; margin-top: .85rem; }
.lms-pg {
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 .55rem;
  border: 1px solid var(--edu-border);
  border-radius: 10px;
  background: #fff;
  color: #1a4268;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.lms-pg:hover:not(:disabled) { background: var(--edu-accent); border-color: var(--edu-primary-2); color: var(--edu-primary); }
.lms-pg.is-active { background: linear-gradient(135deg, var(--edu-primary), var(--edu-primary-2)); border-color: transparent; color: #fff; }
.lms-pg:disabled { opacity: .4; cursor: not-allowed; }
.lms-pg-gap { color: var(--edu-text-soft); padding: 0 .15rem; }

/* ---------- responsive ---------- */
@media (max-width: 767.98px) {
  .lms-dt-search { max-width: none; flex-basis: 100%; }
  .lms-dt-spacer { display: none; }
  .lms-dt-view-btn span { display: none; }
  .lms-dt-sort, .lms-dt-size { min-width: 0; flex: 1 1 40%; }
  .lms-view-list .lms-table tbody tr { grid-template-columns: 1fr 1fr; }
  .lms-view-list .lms-table td:first-child { grid-column: 1 / -1; }
}

@media print {
  .lms-dt-toolbar, .lms-dt-pager { display: none !important; }
  .lms-dt .lms-table tbody tr[hidden] { display: table-row !important; }
}

/* =====================================================================
   Grouped navigation: sidebar / drawer sections + top-bar dropdowns
   ===================================================================== */
.menu-groups { display: flex; flex-direction: column; gap: .55rem; }

.menu-group {
  --mg: var(--ux-blue);
  border: 1px solid var(--edu-border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.menu-accent-blue   { --mg: var(--ux-blue); }
.menu-accent-teal   { --mg: var(--ux-teal); }
.menu-accent-amber  { --mg: var(--ux-amber); }
.menu-accent-rose   { --mg: var(--ux-rose); }
.menu-accent-indigo { --mg: var(--ux-indigo); }
.menu-accent-green  { --mg: var(--ux-green); }

.menu-group:hover { box-shadow: 0 6px 16px rgba(23, 67, 108, .08); }
.menu-group.has-active { border-color: var(--mg); box-shadow: 0 6px 18px rgba(23, 67, 108, .1); }

.menu-group-toggle {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .55rem .7rem;
  border: 0;
  background: transparent;
  color: #123f6b;
  font-weight: 700;
  font-size: .9rem;
  text-align: left;
  cursor: pointer;
  position: relative;
}
.menu-group-toggle::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--mg);
  opacity: .85;
}
.menu-group-toggle:hover { background: color-mix(in srgb, var(--mg) 7%, #fff); }
.menu-group-toggle:focus-visible { outline: 2px solid var(--mg); outline-offset: -2px; }

.menu-group-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 10px;
  background: color-mix(in srgb, var(--mg) 14%, #fff);
  color: var(--mg);
  font-size: 1rem;
}
.menu-group-title { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.menu-group-count {
  min-width: 1.4rem;
  padding: .05rem .4rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mg) 12%, #fff);
  color: var(--mg);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}
.menu-group-chevron { font-size: .75rem; color: var(--edu-text-soft); transition: transform .2s ease; }
.menu-group-toggle:not(.collapsed) .menu-group-chevron { transform: rotate(180deg); }

.menu-group-items { display: flex; flex-direction: column; gap: 2px; padding: .15rem .45rem .5rem; }

.menu-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .42rem .6rem;
  border-radius: 10px;
  color: #1a4268;
  font-size: .86rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .14s ease, color .14s ease, transform .14s ease;
}
.menu-item-icon { width: 1.3rem; text-align: center; color: var(--edu-text-soft); transition: color .14s ease; }
.menu-item-label { flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.menu-item:hover { background: color-mix(in srgb, var(--mg) 9%, #fff); color: #123f6b; transform: translateX(2px); }
.menu-item:hover .menu-item-icon { color: var(--mg); }
.menu-item.is-active {
  background: linear-gradient(135deg, var(--mg), color-mix(in srgb, var(--mg) 70%, #fff));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--mg) 35%, transparent);
}
.menu-item.is-active .menu-item-icon { color: #fff; }

.right-sidebar .nav-panel { max-height: calc(100vh - 6rem); overflow-y: auto; }
.offcanvas .menu-groups { padding-bottom: 1rem; }

/* Top bar dropdown groups */
.app-group-menu { min-width: 15rem; padding: .4rem; border-radius: 14px; border: 1px solid var(--edu-border); box-shadow: var(--ux-panel-shadow); }
.app-group-menu .dropdown-item { display: flex; align-items: center; border-radius: 9px; padding: .45rem .7rem; font-size: .88rem; }
.app-group-menu .dropdown-item .bi { width: 1.2rem; text-align: center; color: var(--edu-text-soft); }
.app-group-menu .dropdown-item:hover { background: var(--edu-accent); }
.app-group-menu .dropdown-item.active { background: var(--edu-primary); color: #fff; }
.app-group-menu .dropdown-item.active .bi { color: #fff; }
.app-primary-nav .nav-link.active { font-weight: 700; box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .85); }

/* =====================================================================
   Educational PR, News & School Activities Portal (Login Page)
   ===================================================================== */
.lms-portal-wrapper {
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

/* Breaking PR Ticker */
.lms-pr-ticker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.15rem;
  background: linear-gradient(135deg, rgba(15, 98, 214, 0.08) 0%, rgba(20, 150, 120, 0.08) 100%);
  border: 1px solid rgba(49, 133, 235, 0.22);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(23, 67, 108, 0.04);
}

.lms-pr-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #e53935 0%, #d81b60 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(229, 57, 53, 0.35);
  animation: lmsPulse 2s infinite ease-in-out;
}

@keyframes lmsPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.lms-pr-ticker-content {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a4268;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lms-pr-ticker-date {
  font-size: 0.82rem;
  color: var(--edu-text-soft);
  white-space: nowrap;
  display: none;
}
@media (min-width: 992px) {
  .lms-pr-ticker-date { display: inline-flex; align-items: center; gap: 0.35rem; }
}

/* Portal Welcome Header */
.lms-portal-header {
  margin-bottom: 1.5rem;
}

.lms-portal-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(15, 98, 214, 0.1);
  color: var(--edu-primary);
  border: 1px solid rgba(15, 98, 214, 0.2);
  margin-bottom: 0.6rem;
}

.lms-portal-title {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: #0d3862;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.lms-portal-subtitle {
  font-size: 0.98rem;
  color: #557291;
  max-width: 820px;
  line-height: 1.55;
  margin-bottom: 1rem;
}

/* Filter Pills */
.lms-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.lms-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid var(--edu-border);
  background: #fff;
  color: #2b567d;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.lms-cat-pill:hover,
.lms-cat-pill.is-active {
  background: linear-gradient(135deg, var(--edu-primary) 0%, var(--edu-primary-2) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(15, 98, 214, 0.25);
  transform: translateY(-1px);
}

/* Hero Showcase Carousel */
.lms-hero-showcase {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(16, 62, 114, 0.12);
  border: 1px solid rgba(49, 133, 235, 0.18);
  margin-bottom: 1.75rem;
  background: #0f1828;
}

.lms-hero-slide {
  position: relative;
  min-height: 420px;
  background: #0d1b2e;
  overflow: hidden;
}

.lms-hero-slide-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.lms-hero-slide:hover .lms-hero-slide-img {
  transform: scale(1.02);
}

.lms-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 36, 0.15) 0%, rgba(9, 18, 33, 0.72) 50%, rgba(7, 14, 26, 0.96) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2.2rem;
  color: #fff;
  z-index: 2;
}

.lms-hero-category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  width: fit-content;
  box-shadow: 0 3px 8px rgba(245, 124, 0, 0.35);
}

.lms-hero-title {
  color: #ffffff;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.lms-hero-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 720px;
  margin-bottom: 1.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lms-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* Section Title Headers */
.lms-section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid rgba(49, 133, 235, 0.12);
}

.lms-section-hdr-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f3d6c;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.lms-section-hdr-title i {
  color: var(--edu-primary);
  font-size: 1.35rem;
}

.lms-section-hdr-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--edu-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: transform 0.15s ease;
}
.lms-section-hdr-more:hover {
  transform: translateX(3px);
  color: var(--edu-primary-2);
}

/* Feature News & Activity Cards */
.lms-act-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--edu-border);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 4px 16px rgba(23, 67, 108, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lms-act-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(18, 73, 122, 0.13);
  border-color: rgba(49, 133, 235, 0.35);
}

.lms-act-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #112033;
  overflow: hidden;
}

.lms-act-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.lms-act-card:hover .lms-act-thumb {
  transform: scale(1.05);
}

.lms-act-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(15, 34, 58, 0.85);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.lms-act-play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 20, 36, 0.35);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
}
.lms-act-play-btn i {
  font-size: 2.8rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  transition: transform 0.2s ease;
}
.lms-act-play-btn:hover {
  background: rgba(10, 20, 36, 0.55);
}
.lms-act-play-btn:hover i {
  transform: scale(1.15);
}

.lms-act-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.lms-act-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--edu-text-soft);
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.lms-act-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #12385e;
  line-height: 1.35;
  margin-bottom: 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lms-act-desc {
  font-size: 0.88rem;
  color: #556f8a;
  line-height: 1.5;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
}

.lms-act-footer {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--edu-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Headline List Items */
.lms-headline-card {
  background: #ffffff;
  border: 1px solid var(--edu-border);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(23, 67, 108, 0.05);
  margin-bottom: 1.75rem;
}

.lms-headline-item-row {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(49, 133, 235, 0.1);
  text-decoration: none;
  transition: all 0.18s ease;
}
.lms-headline-item-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.lms-headline-item-row:hover {
  transform: translateX(4px);
}

.lms-headline-date-box {
  width: 50px;
  height: 52px;
  flex: 0 0 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 98, 214, 0.1) 0%, rgba(49, 133, 235, 0.18) 100%);
  border: 1px solid rgba(15, 98, 214, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--edu-primary);
  text-align: center;
  line-height: 1;
}

.lms-headline-date-day {
  font-size: 1.25rem;
  font-weight: 800;
}
.lms-headline-date-mo {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

.lms-headline-info {
  flex: 1 1 auto;
  min-width: 0;
}

.lms-headline-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--edu-primary);
  background: rgba(15, 98, 214, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
}

.lms-headline-title-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #12385e;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.lms-headline-item-row:hover .lms-headline-title-text {
  color: var(--edu-primary);
}

.lms-headline-summary-text {
  font-size: 0.84rem;
  color: #556f8a;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Educational Timeline */
.lms-timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.lms-timeline-card {
  background: #ffffff;
  border: 1px solid var(--edu-border);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--edu-primary);
  box-shadow: 0 4px 14px rgba(23, 67, 108, 0.05);
}

.lms-timeline-card.accent-teal   { border-left-color: var(--ux-teal); }
.lms-timeline-card.accent-amber  { border-left-color: var(--ux-amber); }
.lms-timeline-card.accent-indigo { border-left-color: var(--ux-indigo); }

.lms-timeline-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--edu-primary);
  margin-bottom: 0.25rem;
}
.lms-timeline-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #12385e;
  margin-bottom: 0.2rem;
}
.lms-timeline-desc {
  font-size: 0.82rem;
  color: #5e7792;
  line-height: 1.4;
  margin: 0;
}

/* Educational Stats Ribbon */
.lms-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.lms-stat-box {
  background: linear-gradient(180deg, #ffffff 0%, rgba(243, 248, 255, 0.8) 100%);
  border: 1px solid var(--edu-border);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(23, 67, 108, 0.04);
}

.lms-stat-icon {
  font-size: 1.6rem;
  color: var(--edu-primary);
  margin-bottom: 0.25rem;
}
.lms-stat-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f3d6c;
  line-height: 1.1;
}
.lms-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--edu-text-soft);
  margin-top: 0.15rem;
}

/* =====================================================================
   LMS Login Station (Right Column)
   ===================================================================== */
.lms-login-station {
  background: #ffffff;
  border: 1px solid rgba(49, 133, 235, 0.22);
  border-radius: 24px;
  padding: 1.85rem 1.65rem;
  box-shadow: 0 16px 44px rgba(18, 73, 122, 0.12);
  position: sticky;
  top: 86px;
  z-index: 10;
}

.lms-login-station-hdr {
  text-align: center;
  margin-bottom: 1.35rem;
}

.lms-login-emblem {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--edu-primary) 0%, var(--edu-secondary) 100%);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 6px 18px rgba(15, 98, 214, 0.32);
}

.lms-login-station-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0d3862;
  margin-bottom: 0.25rem;
}

.lms-login-station-sub {
  font-size: 0.88rem;
  color: #557291;
  line-height: 1.4;
  margin: 0;
}

.lms-login-hint-banner {
  background: linear-gradient(135deg, rgba(15, 98, 214, 0.08) 0%, rgba(49, 133, 235, 0.05) 100%);
  border: 1px solid rgba(49, 133, 235, 0.18);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: #123e6b;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}
.lms-login-hint-banner i {
  color: var(--edu-primary);
  font-size: 1.05rem;
  flex: 0 0 auto;
  margin-top: 1px;
}

.lms-input-icon-group {
  position: relative;
  margin-bottom: 1.15rem;
}

.lms-input-icon-group .form-control {
  padding-left: 2.65rem;
  padding-right: 2.65rem;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--edu-border);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.lms-input-icon-group .form-control:focus {
  border-color: var(--edu-primary-2);
  box-shadow: 0 0 0 3px rgba(49, 133, 235, 0.18);
}

.lms-input-lead-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--edu-text-soft);
  font-size: 1.15rem;
  pointer-events: none;
}

.lms-pwd-toggle-btn {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--edu-text-soft);
  font-size: 1.15rem;
  padding: 0.25rem;
  cursor: pointer;
  border-radius: 6px;
  line-height: 1;
}
.lms-pwd-toggle-btn:hover {
  color: var(--edu-primary);
}

.lms-btn-submit {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--edu-primary) 0%, var(--edu-primary-2) 100%);
  border: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 6px 18px rgba(15, 98, 214, 0.28);
  transition: all 0.2s ease;
  cursor: pointer;
}
.lms-btn-submit:hover {
  background: linear-gradient(135deg, #0d55bb 0%, #2076dc 100%);
  box-shadow: 0 8px 24px rgba(15, 98, 214, 0.38);
  transform: translateY(-1px);
}

.lms-login-divider {
  display: flex;
  align-items: center;
  margin: 1.15rem 0;
  color: var(--edu-text-soft);
  font-size: 0.8rem;
  font-weight: 600;
}
.lms-login-divider::before,
.lms-login-divider::after {
  content: "";
  flex: 1 1 auto;
  border-bottom: 1px solid var(--edu-border);
}
.lms-login-divider span {
  padding: 0 0.75rem;
}

.lms-btn-google {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--edu-border);
  color: #2b4764;
  font-size: 0.92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}
.lms-btn-google:hover {
  background: #f8fbff;
  border-color: rgba(49, 133, 235, 0.4);
  color: #12385e;
}
.lms-btn-google i {
  color: #ea4335;
  font-size: 1.1rem;
}

.lms-login-security-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--edu-text-soft);
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--edu-border);
}
.lms-login-security-tag i {
  color: #16a34a;
}

/* ==========================================================================
   MODERN LMS DASHBOARD STYLES (Admin, Executive, Teacher, Student)
   ========================================================================== */

.lms-dash-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2.5rem;
}

/* Modern Dashboard Hero */
.lms-dash-hero {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8fd 100%);
  border: 1px solid var(--edu-border);
  box-shadow: 0 10px 30px rgba(18, 56, 94, 0.06);
  padding: 1.6rem 1.8rem;
  overflow: hidden;
  transition: all 0.25s ease;
}
.lms-dash-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--edu-primary), var(--edu-primary-2), #38bdf8);
}
.lms-dash-hero-admin::before {
  background: linear-gradient(90deg, #4f46e5, #0ea5e9, #6366f1);
}
.lms-dash-hero-teacher::before {
  background: linear-gradient(90deg, #0284c7, #2563eb, #818cf8);
}
.lms-dash-hero-student::before {
  background: linear-gradient(90deg, #f59e0b, #ec4899, #8b5cf6);
}
.lms-dash-hero-executive::before {
  background: linear-gradient(90deg, #0d9488, #059669, #0284c7);
}

.lms-dash-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.lms-dash-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}
.lms-dash-role-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: lmsPulse 2s infinite;
}
@keyframes lmsPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.lms-dash-role-badge.badge-admin {
  background: rgba(79, 70, 229, 0.1);
  color: #4338ca;
  border: 1px solid rgba(79, 70, 229, 0.25);
}
.lms-dash-role-badge.badge-admin .badge-dot { background: #4f46e5; }

.lms-dash-role-badge.badge-teacher {
  background: rgba(2, 132, 199, 0.1);
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.25);
}
.lms-dash-role-badge.badge-teacher .badge-dot { background: #0284c7; }

.lms-dash-role-badge.badge-student {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.28);
}
.lms-dash-role-badge.badge-student .badge-dot { background: #f59e0b; }

.lms-dash-role-badge.badge-executive {
  background: rgba(13, 148, 136, 0.1);
  color: #0f766e;
  border: 1px solid rgba(13, 148, 136, 0.25);
}
.lms-dash-role-badge.badge-executive .badge-dot { background: #0d9488; }

.lms-dash-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f2742;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}
.lms-dash-subtitle {
  font-size: 0.92rem;
  color: #55708f;
  margin-bottom: 0;
  max-width: 620px;
  line-height: 1.55;
}

.lms-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.lms-dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 2px 6px rgba(18, 56, 94, 0.05);
}
.lms-dash-btn-primary {
  background: linear-gradient(135deg, var(--edu-primary) 0%, var(--edu-primary-2) 100%);
  color: #ffffff !important;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(15, 98, 214, 0.25);
}
.lms-dash-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 98, 214, 0.35);
  color: #ffffff !important;
}
.lms-dash-btn-secondary {
  background: #ffffff;
  color: #1e4063 !important;
  border: 1px solid var(--edu-border);
}
.lms-dash-btn-secondary:hover {
  background: #f8fbff;
  border-color: rgba(49, 133, 235, 0.4);
  color: var(--edu-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(18, 56, 94, 0.08);
}

/* Modern Insight Row under Hero */
.lms-dash-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(199, 216, 235, 0.6);
}
.lms-dash-insight-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--edu-border);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(18, 56, 94, 0.03);
  transition: all 0.2s ease;
}
.lms-dash-insight-card:hover {
  background: #ffffff;
  border-color: rgba(49, 133, 235, 0.35);
  box-shadow: 0 4px 14px rgba(18, 56, 94, 0.07);
  transform: translateY(-2px);
}
.lms-dash-insight-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.lms-dash-insight-label {
  font-size: 0.78rem;
  color: #627d98;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.lms-dash-insight-val {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f2b48;
  line-height: 1.2;
}

/* Modern Stat Cards */
.lms-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.lms-modern-stat-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--edu-border);
  box-shadow: 0 4px 16px rgba(18, 56, 94, 0.05);
  padding: 1.25rem 1.35rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lms-modern-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.25s ease;
}
.lms-modern-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(49, 133, 235, 0.35);
  box-shadow: 0 10px 24px rgba(18, 56, 94, 0.1);
}
.lms-modern-stat-card:hover::before {
  background: linear-gradient(90deg, var(--edu-primary), #38bdf8);
}

.lms-stat-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.lms-modern-stat-card:hover .lms-stat-icon-box {
  transform: scale(1.08);
}

/* Stat color palettes */
.stat-box-blue { background: rgba(15, 98, 214, 0.1); color: #0f62d6; }
.stat-box-indigo { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
.stat-box-emerald { background: rgba(16, 185, 129, 0.12); color: #059669; }
.stat-box-amber { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.stat-box-rose { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.stat-box-purple { background: rgba(168, 85, 247, 0.12); color: #9333ea; }
.stat-box-teal { background: rgba(20, 184, 166, 0.12); color: #0d9488; }
.stat-box-cyan { background: rgba(6, 182, 212, 0.12); color: #0891b2; }

.lms-stat-info {
  flex: 1 1 auto;
  min-width: 0;
}
.lms-stat-num {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f2742;
  line-height: 1.15;
  margin-bottom: 0.2rem;
  letter-spacing: -0.5px;
}
.lms-stat-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #55708f;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lms-stat-hint {
  font-size: 0.74rem;
  color: #829ab1;
  font-weight: 500;
}

/* Alert Notification Banners inside Dashboards */
.lms-dash-alert-banner {
  border-radius: 16px;
  padding: 1rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid;
}
.lms-dash-alert-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fde68a;
  color: #92400e;
}
.lms-dash-alert-info {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #bae6fd;
  color: #0369a1;
}
.lms-dash-alert-success {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #bbf7d0;
  color: #166534;
}

/* Modern Action Section Headers */
.lms-dash-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.lms-dash-sec-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f2a4a;
  margin-bottom: 0.2rem;
}
.lms-dash-sec-title .title-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(15, 98, 214, 0.1);
  color: var(--edu-primary);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
}
.lms-dash-sec-subtitle {
  font-size: 0.84rem;
  color: #627d98;
  margin-bottom: 0;
}

/* Action Cards Grid */
.lms-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.lms-dash-action-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--edu-border);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  text-decoration: none !important;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.lms-dash-action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 133, 235, 0.4);
  box-shadow: 0 8px 24px rgba(18, 56, 94, 0.08);
}
.lms-dash-action-card.card-priority {
  background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
  border-color: rgba(49, 133, 235, 0.35);
  box-shadow: 0 4px 16px rgba(15, 98, 214, 0.08);
}
.lms-dash-action-card.card-priority::after {
  content: "แนะนำ";
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 98, 214, 0.12);
  color: var(--edu-primary);
}

.lms-action-icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 98, 214, 0.08);
  color: var(--edu-primary);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  transition: all 0.2s ease;
}
.lms-dash-action-card:hover .lms-action-icon-pill {
  background: linear-gradient(135deg, var(--edu-primary), var(--edu-primary-2));
  color: #ffffff;
  transform: scale(1.05);
}

.lms-action-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #123354;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lms-action-name .hover-arrow {
  font-size: 0.88rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  color: var(--edu-primary);
}
.lms-dash-action-card:hover .lms-action-name .hover-arrow {
  opacity: 1;
  transform: translateX(0);
}
.lms-action-desc {
  font-size: 0.82rem;
  color: #627d98;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Modern Data Box / Dashboard Tables */
.lms-dash-box {
  background: #ffffff;
  border: 1px solid var(--edu-border);
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 4px 18px rgba(18, 56, 94, 0.05);
}
.lms-dash-table {
  width: 100%;
  margin-bottom: 0;
  vertical-align: middle;
}
.lms-dash-table thead th {
  background: #f7fafc;
  color: #2b4865;
  font-size: 0.82rem;
  font-weight: 700;
  border-bottom: 2px solid var(--edu-border);
  padding: 0.85rem 1rem;
}
.lms-dash-table tbody td {
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: #213c58;
  border-bottom: 1px solid rgba(220, 230, 240, 0.8);
}
.lms-dash-table tbody tr:hover td {
  background: #f8fbff;
}

/* ==========================================================================
   MODERN LMS REPORTING SUITE STYLES (Admin, Teacher, Student, Executive)
   ========================================================================== */

.lms-report-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Modern Report Hero Header */
.lms-report-hero {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f6f9fc 100%);
  border: 1px solid var(--edu-border);
  border-radius: 20px;
  padding: 1.5rem 1.8rem;
  box-shadow: 0 4px 18px rgba(18, 56, 94, 0.05);
  overflow: hidden;
}
.lms-report-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--edu-primary), #0ea5e9, #6366f1);
}
.lms-report-hero-teacher::before {
  background: linear-gradient(90deg, #0284c7, #2563eb, #818cf8);
}
.lms-report-hero-student::before {
  background: linear-gradient(90deg, #f59e0b, #ec4899, #8b5cf6);
}
.lms-report-hero-admin::before {
  background: linear-gradient(90deg, #4f46e5, #0ea5e9, #10b981);
}
.lms-report-hero-executive::before {
  background: linear-gradient(90deg, #0d9488, #059669, #0284c7);
}

.lms-report-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f2742;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lms-report-subtitle {
  font-size: 0.9rem;
  color: #55708f;
  margin-bottom: 0;
  max-width: 760px;
  line-height: 1.5;
}

/* Print formal header for official reports */
.lms-print-header {
  display: none;
  border-bottom: 2px solid #000;
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.lms-print-header .school-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #000;
}
.lms-print-header .report-meta {
  font-size: 0.82rem;
  color: #333;
}

/* Report Stat Cards */
.lms-report-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.lms-report-stat-card {
  background: #ffffff;
  border: 1px solid var(--edu-border);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 2px 10px rgba(18, 56, 94, 0.04);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
}
.lms-report-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(18, 56, 94, 0.08);
  border-color: rgba(49, 133, 235, 0.35);
}
.lms-report-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.lms-report-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #627d98;
  margin-bottom: 0.15rem;
}
.lms-report-stat-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f2742;
  line-height: 1.2;
}

/* Modern Report Filter Card */
.lms-report-filter {
  background: #ffffff;
  border: 1px solid var(--edu-border);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 2px 12px rgba(18, 56, 94, 0.04);
}
.lms-report-filter .form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #2b4865;
  margin-bottom: 0.35rem;
}
.lms-report-filter .form-select,
.lms-report-filter .form-control {
  border-radius: 10px;
  border-color: var(--edu-border);
  font-size: 0.88rem;
  padding: 0.55rem 0.85rem;
}
.lms-report-filter .form-select:focus,
.lms-report-filter .form-control:focus {
  border-color: var(--edu-primary);
  box-shadow: 0 0 0 3px rgba(15, 98, 214, 0.12);
}

/* Report Table Container */
.lms-report-card {
  background: #ffffff;
  border: 1px solid var(--edu-border);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 4px 18px rgba(18, 56, 94, 0.04);
}
.lms-report-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(220, 230, 240, 0.8);
}
.lms-report-card-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f2b48;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.lms-report-card-subtitle {
  font-size: 0.82rem;
  color: #627d98;
  margin-bottom: 0;
}

/* Score Pills */
.lms-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.lms-score-pass {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.lms-score-fail {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.lms-score-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Print Rules */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }
  .navbar,
  .site-sidebar,
  .panel-actions,
  .lms-dt-toolbar,
  .lms-dt-views,
  .lms-dt-search,
  .lms-dt-export,
  .lms-pg-wrap,
  .lms-report-filter,
  .lms-print-hide,
  .btn:not(.lms-print-keep),
  footer,
  #scroll-top-btn {
    display: none !important;
  }

  .lms-print-only,
  .lms-print-header {
    display: block !important;
  }

  .lms-report-wrapper,
  .lms-report-card,
  .lms-dash-box,
  .soft-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  .lms-report-hero {
    border: none !important;
    box-shadow: none !important;
    padding: 0 0 10px 0 !important;
    margin-bottom: 12px !important;
    background: transparent !important;
  }
  .lms-report-hero::before {
    display: none !important;
  }

  .table-responsive {
    overflow: visible !important;
  }

  .table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 10pt !important;
  }
  .table th,
  .table td {
    border: 1px solid #333333 !important;
    padding: 4px 6px !important;
    color: #000000 !important;
  }
  .table thead th {
    background: #eeeeee !important;
  }
  .table thead th {
    background: #eeeeee !important;
  }
  tr {
    page-break-inside: avoid !important;
  }
}

/* ==========================================================================
   LMS Online Examination System (Modern Exam Suite)
   ========================================================================== */

/* Exam Sticky Control Bar / HUD */
.lms-exam-hud {
  position: sticky;
  top: 10px;
  z-index: 1020;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(23, 67, 108, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 98, 214, 0.1);
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.5rem;
  transition: all 0.25s ease;
}

.lms-exam-hud-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lms-exam-hud-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lms-exam-badge-course {
  background: linear-gradient(135deg, #103b60, #17436c);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  letter-spacing: 0.03em;
}

.lms-exam-hud-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #17436c;
  margin: 0;
  line-height: 1.3;
}

.lms-exam-hud-meta {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
}

/* Exam Timer Badge */
.lms-exam-timer-box {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  transition: all 0.3s ease;
}

.lms-exam-timer-icon {
  font-size: 1.15rem;
  color: #0284c7;
}

.lms-exam-timer-val {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0f172a;
}

.lms-exam-timer-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
  display: block;
  line-height: 1;
}

/* Timer State Variations */
.lms-exam-timer-box.timer-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}
.lms-exam-timer-box.timer-warning .lms-exam-timer-icon,
.lms-exam-timer-box.timer-warning .lms-exam-timer-val {
  color: #d97706;
}

.lms-exam-timer-box.timer-danger {
  background: #fef2f2;
  border-color: #fca5a5;
  animation: lms-timer-pulse 1.8s infinite;
}
.lms-exam-timer-box.timer-danger .lms-exam-timer-icon,
.lms-exam-timer-box.timer-danger .lms-exam-timer-val {
  color: #dc2626;
}

@keyframes lms-timer-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
  }
}

/* Exam Progress bar in HUD */
.lms-exam-progress-wrap {
  flex: 1 1 200px;
  max-width: 320px;
}
.lms-exam-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.3rem;
}
.lms-exam-progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.lms-exam-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #2563eb, #10b981);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Exam Action Buttons */
.lms-exam-hud-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Layout 2-col on desktop */
.lms-exam-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 992px) {
  .lms-exam-container {
    grid-template-columns: 1fr 300px;
  }
}

/* Question Palette / Navigator */
.lms-exam-navigator {
  position: sticky;
  top: 100px;
  background: #ffffff;
  border: 1px solid rgba(23, 67, 108, 0.12);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  padding: 1.25rem;
}

.lms-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.lms-nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.lms-nav-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 1rem;
  padding: 0.6rem;
  background: #f8fafc;
  border-radius: 10px;
}
.lms-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.lms-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.lms-legend-dot.answered { background: #10b981; }
.lms-legend-dot.unanswered { background: #cbd5e1; }
.lms-legend-dot.flagged { background: #f59e0b; }

.lms-palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  max-height: 380px;
  overflow-y: auto;
  padding: 2px;
}

.lms-palette-btn {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}
.lms-palette-btn:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
  transform: translateY(-2px);
}
.lms-palette-btn.is-active {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}
.lms-palette-btn.is-answered {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}
.lms-palette-btn.is-flagged {
  border-color: #f59e0b;
}
.lms-palette-btn.is-flagged::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
}

/* Question Cards */
.lms-question-card {
  background: #ffffff;
  border: 1px solid rgba(23, 67, 108, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  scroll-margin-top: 110px;
}
.lms-question-card:hover {
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.08);
}
.lms-question-card.highlight-target {
  animation: lms-pulse-target 1.5s ease;
}

@keyframes lms-pulse-target {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.lms-q-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 1rem;
}
.lms-q-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lms-q-num-chip {
  background: #17436c;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
}
.lms-q-type-chip {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}
.lms-q-score-chip {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

/* Flag Question Button */
.lms-btn-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lms-btn-flag:hover {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}
.lms-btn-flag.is-flagged {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

.lms-q-text {
  font-size: 1.02rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.lms-q-image {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  max-width: 100%;
}
.lms-q-image img {
  max-width: 100%;
  max-height: 320px;
  display: block;
  object-fit: contain;
}

/* Modern Multiple Choice Tiles */
.lms-choice-grid {
  display: grid;
  gap: 0.65rem;
}

.lms-choice-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.lms-choice-tile:hover {
  border-color: #93c5fd;
  background: #f8fafc;
  transform: translateX(3px);
}
.lms-choice-tile.is-selected {
  border-color: #0284c7;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.05), rgba(37, 99, 235, 0.08));
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

.lms-choice-label-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.lms-choice-tile.is-selected .lms-choice-label-badge {
  background: #0284c7;
  color: #ffffff;
}

.lms-choice-text {
  flex: 1 1 auto;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.45;
}

/* Exam Monitor Live Dot */
.lms-pulse-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
  margin-right: 6px;
}
.lms-pulse-dot::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: #10b981;
  animation: lms-live-pulse 1.8s infinite ease-out;
}
@keyframes lms-live-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Anti-Cheat Warning Badge */
.lms-anticheat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}
.lms-anticheat-badge.safe {
  background: #ecfdf5;
  color: #047857;
}
.lms-anticheat-badge.alert {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Retake Workflow Stepper */
.lms-retake-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin: 1rem 0;
  padding: 0;
}
.lms-retake-stepper::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 36px;
  right: 36px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}
.lms-retake-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  padding: 0 4px;
}
.lms-retake-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.lms-retake-step.active .lms-retake-step-circle {
  background: #3b82f6;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}
.lms-retake-step.completed .lms-retake-step-circle {
  background: #10b981;
  border-color: #059669;
  color: #fff;
}
.lms-retake-step.rejected .lms-retake-step-circle {
  background: #ef4444;
  border-color: #dc2626;
  color: #fff;
}
.lms-retake-step-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.45rem;
  line-height: 1.25;
}
.lms-retake-step.active .lms-retake-step-title {
  color: #0f172a;
  font-weight: 700;
}
.lms-retake-step.completed .lms-retake-step-title {
  color: #065f46;
  font-weight: 600;
}
.lms-retake-step.rejected .lms-retake-step-title {
  color: #991b1b;
  font-weight: 600;
}
.lms-retake-step-desc {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.2rem;
  line-height: 1.2;
}

/* Workflow Guide Card */
.lms-workflow-guide-box {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.25rem;
}
.lms-workflow-guide-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}



