:root {
  --primary: #59249b;
  --secondary: #ff914d;
  --surface: #ffffff;
  --background: #f6f7fb;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ff914d;
  --info: #59249b;
  --soft-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --sidebar-bg: #111827;
  --sidebar-text: #e5e7eb;
  --sidebar-muted: rgba(229, 231, 235, 0.72);

  --classroom-bg: var(--sidebar-bg);
  --classroom-bg-soft: #1f2937;
  --classroom-surface: rgba(255, 255, 255, 0.08);
  --classroom-surface-strong: rgba(255, 255, 255, 0.14);
  --classroom-border: rgba(255, 255, 255, 0.12);
  --classroom-text: var(--sidebar-text);
  --classroom-muted: var(--sidebar-muted);
  --classroom-primary: var(--primary);
  --classroom-secondary: var(--secondary);
  --classroom-accent: var(--secondary);
  --classroom-danger: var(--danger);
  --classroom-shadow: var(--soft-shadow);
  --classroom-radius-lg: var(--radius-lg);
  --classroom-radius-md: var(--radius-md);
  --classroom-radius-sm: var(--radius-sm);
}

body.classroom-app {
  background:
    radial-gradient(circle at top left, rgba(79, 140, 255, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 28%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3fb 100%);
}

body.classroom-app .content-wrapper {
  background: transparent;
}

body.classroom-app .main-header.navbar {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(79, 140, 255, 0.12);
}

body.classroom-app .main-sidebar {
  background: linear-gradient(180deg, #0b1220 0%, #111b33 45%, #0f172a 100%);
}

body.classroom-app .brand-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.18), rgba(34, 197, 94, 0.12));
}

body.classroom-app .brand-text {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.classroom-app .nav-sidebar .nav-link {
  border-radius: 14px;
  margin: 0.15rem 0.5rem;
}

body.classroom-app .nav-sidebar .nav-link:hover,
body.classroom-app .nav-sidebar .nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.classroom-app .nav-sidebar .nav-link.text-danger:hover {
  background: rgba(239, 68, 68, 0.12);
}

body.classroom-app .card,
body.classroom-app .info-box {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--classroom-radius-lg);
  box-shadow: var(--classroom-shadow);
  overflow: hidden;
}

body.classroom-app .card-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

body.classroom-app .card-header.bg-info,
body.classroom-app .card-header.bg-secondary,
body.classroom-app .card-header.bg-success {
  color: #fff;
}

body.classroom-app .hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a 0%, #111b33 48%, #1d4ed8 100%);
  color: #fff;
  box-shadow: var(--classroom-shadow);
}

body.classroom-app .hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 22%),
    radial-gradient(circle at 80% 0%, rgba(34, 197, 94, 0.24), transparent 18%),
    radial-gradient(circle at 90% 90%, rgba(245, 158, 11, 0.22), transparent 16%);
  pointer-events: none;
}

body.classroom-app .hero-shell .hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

body.classroom-app .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
}

body.classroom-app .hero-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

body.classroom-app .hero-lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 62ch;
}

body.classroom-app .metric-card {
  position: relative;
  border-radius: 22px;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--classroom-shadow);
}

body.classroom-app .metric-card .metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 0.85rem;
}

body.classroom-app .metric-card .metric-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
}

body.classroom-app .metric-card .metric-label {
  color: #64748b;
  font-size: 0.92rem;
}

body.classroom-app .glass-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

body.classroom-app .section-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0f172a;
}

body.classroom-app .section-subtitle {
  color: #64748b;
  font-size: 0.94rem;
}

body.classroom-app .context-summary {
  padding: 1rem 1rem 0.95rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.08), rgba(34, 197, 94, 0.06));
  border: 1px solid rgba(79, 140, 255, 0.12);
  color: #334155;
}

body.classroom-app .dashboard-context-list {
  display: grid;
  gap: 0.8rem;
}

body.classroom-app .dashboard-context-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #fff;
}

body.classroom-app .dashboard-context-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: 0 0 auto;
}

body.classroom-app .dashboard-context-icon.context-item--primary {
  background: linear-gradient(135deg, #1d4ed8, #4f8cff);
}

body.classroom-app .dashboard-context-icon.context-item--success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

body.classroom-app .dashboard-context-icon.context-item--warning {
  background: linear-gradient(135deg, #d97706, #f59e0b);
}

body.classroom-app .dashboard-context-copy {
  min-width: 0;
  flex: 1 1 auto;
}

body.classroom-app .dashboard-context-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

body.classroom-app .dashboard-context-label {
  color: #475569;
  font-weight: 700;
}

body.classroom-app .dashboard-context-value {
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1;
  white-space: nowrap;
}

body.classroom-app .dashboard-context-note {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.92rem;
}

body.classroom-app .quick-action {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.classroom-app .quick-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.1);
}

body.classroom-app .quick-action .qa-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: 0 0 auto;
}

body.classroom-app .page-fade {
  animation: classroomFadeIn 420ms ease-out;
}

body.classroom-app .profile-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a 0%, #111b33 50%, #1d4ed8 100%);
  color: #fff;
  box-shadow: var(--classroom-shadow);
}

body.classroom-app .entity-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a 0%, #111b33 50%, #1d4ed8 100%);
  color: #fff;
  box-shadow: var(--classroom-shadow);
}

body.classroom-app .entity-hero__content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

body.classroom-app .entity-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.classroom-app .entity-title {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.classroom-app .entity-lead {
  color: rgba(255, 255, 255, 0.8);
}

body.classroom-app .entity-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.85rem;
}

body.classroom-app .profile-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
}

body.classroom-app .profile-hero__avatar img {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.25);
}

body.classroom-app .profile-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.classroom-app .profile-title {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.classroom-app .profile-lead {
  color: rgba(255, 255, 255, 0.8);
}

body.classroom-app .profile-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.classroom-app .profile-meta-item:last-child {
  border-bottom: 0;
}

body.classroom-app .profile-meta-label {
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

body.classroom-app .profile-chip {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

body.classroom-app .profile-about {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 1.05rem 1.1rem;
  color: #334155;
  line-height: 1.7;
}

body.classroom-app .profile-security-box {
  border-radius: 20px;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.08), rgba(34, 197, 94, 0.06));
  border: 1px solid rgba(79, 140, 255, 0.12);
}

body.classroom-app .classroom-file,
body.classroom-app .profile-upload {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

body.classroom-app .classroom-file__input,
body.classroom-app .profile-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.classroom-app .classroom-file__button,
body.classroom-app .profile-upload__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(79, 140, 255, 0.18);
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.12), rgba(34, 197, 94, 0.08));
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.classroom-app .classroom-file__button:hover,
body.classroom-app .profile-upload__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(79, 140, 255, 0.3);
}

body.classroom-app .classroom-file__name,
body.classroom-app .profile-file-name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 16px;
  padding: 0.75rem 0.95rem;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  background: rgba(255, 255, 255, 0.8);
  color: #64748b;
  word-break: break-word;
}

body.classroom-app .lesson-attachment-box {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 1.1rem;
}

body.classroom-app .lesson-resource-title {
  width: min(100%, 260px);
}

body.classroom-app .lesson-attach-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.75rem 0 0.25rem;
}

body.classroom-app .lesson-attach-button {
  border: 0;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 88px;
}

body.classroom-app .lesson-attach-button span {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

body.classroom-app .lesson-attach-button:hover span {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
}

body.classroom-app .lesson-attach-button strong {
  font-size: 0.78rem;
  font-weight: 700;
}

body.classroom-app .resource-attachment-list,
body.classroom-app .resource-link-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

body.classroom-app .resource-attachment-item,
body.classroom-app .resource-link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 0.65rem 0.75rem;
}

body.classroom-app .resource-attachment-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(89, 36, 155, 0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

body.classroom-app .resource-attachment-body {
  min-width: 0;
  flex: 1 1 auto;
}

body.classroom-app .resource-attachment-body strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.classroom-app .resource-attachment-body small {
  color: var(--text-muted);
}

body.classroom-app .resource-remove-button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 999px;
}

body.classroom-app .resource-remove-button:hover {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
}

body.classroom-app .profile-form-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #111b33 50%, #1d4ed8 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 1rem 1.1rem;
  box-shadow: var(--classroom-shadow);
}

body.classroom-app .profile-form-banner .text-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}

body.classroom-app .profile-form-banner .badge {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

body.classroom-app .danger-panel {
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 1rem 1.1rem;
}

body.classroom-app .danger-panel {
  background: rgba(254, 242, 242, 0.9);
  border-color: rgba(239, 68, 68, 0.18);
}

body.classroom-app .empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
}

body.classroom-app .empty-state i {
  font-size: 2rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

body.classroom-app .student-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

body.classroom-app .student-class-card {
  display: flex;
  min-height: 296px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.classroom-app .student-class-card:hover {
  color: #0f172a;
  transform: translateY(-3px);
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.14);
  text-decoration: none;
}

body.classroom-app .student-class-card__cover {
  min-height: 106px;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  color: #fff;
  background:
    radial-gradient(circle at 75% 12%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(135deg, #0f766e, #0ea5e9);
}

body.classroom-app .student-class-card.theme-1 .student-class-card__cover {
  background:
    radial-gradient(circle at 75% 12%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(135deg, #1d4ed8, #2563eb);
}

body.classroom-app .student-class-card.theme-2 .student-class-card__cover {
  background:
    radial-gradient(circle at 75% 12%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, #0f172a, #475569);
}

body.classroom-app .student-class-card.theme-3 .student-class-card__cover {
  background:
    radial-gradient(circle at 75% 12%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(135deg, #b45309, #f59e0b);
}

body.classroom-app .student-class-card__cover h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 800;
  overflow-wrap: anywhere;
}

body.classroom-app .student-class-card__cover p,
body.classroom-app .student-class-card__body p {
  margin: 0;
}

body.classroom-app .student-class-card__body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

body.classroom-app .student-class-card__body {
  flex: 1 1 auto;
  padding: 1rem;
  color: #64748b;
}

body.classroom-app .student-class-card__footer {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  color: #334155;
  font-weight: 700;
  font-size: 0.88rem;
}

body.classroom-app .student-course-hero {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 210px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.36)),
    radial-gradient(circle at 86% 20%, rgba(255, 255, 255, 0.22), transparent 22%),
    linear-gradient(135deg, #0f766e, #1d4ed8);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

body.classroom-app .student-course-hero--subject {
  min-height: 240px;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.28)),
    radial-gradient(circle at 88% 30%, rgba(34, 197, 94, 0.32), transparent 24%),
    linear-gradient(135deg, #111827, #2563eb);
}

body.classroom-app .student-course-hero__content {
  max-width: 820px;
  padding: 2rem;
}

body.classroom-app .student-course-hero h1 {
  margin: 0 0 0.75rem;
  font-size: 2.35rem;
  line-height: 1.08;
  font-weight: 800;
  overflow-wrap: anywhere;
}

body.classroom-app .student-course-hero p {
  max-width: 64ch;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.84);
  overflow-wrap: anywhere;
}

body.classroom-app .classroom-tabs {
  border-bottom: 1px solid rgba(15, 23, 42, 0.16);
}

body.classroom-app .classroom-tabs .nav-link {
  border: 0;
  border-bottom: 3px solid transparent;
  color: #334155;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
}

body.classroom-app .classroom-tabs .nav-link.active {
  color: #1d4ed8;
  background: transparent;
  border-bottom-color: #1d4ed8;
}

body.classroom-app .classroom-sidebox,
body.classroom-app .classroom-announcement,
body.classroom-app .people-panel {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
}

body.classroom-app .classroom-sidebox h3,
body.classroom-app .people-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 800;
}

body.classroom-app .classroom-sidebox p {
  color: #475569;
}

body.classroom-app .classroom-announcement,
body.classroom-app .classroom-stream-item,
body.classroom-app .people-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

body.classroom-app .classroom-avatar,
body.classroom-app .classroom-item-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
  font-weight: 800;
}

body.classroom-app .classroom-stream-item {
  margin-bottom: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
  color: #0f172a;
  text-decoration: none;
}

body.classroom-app .classroom-stream-item small,
body.classroom-app .people-row small,
body.classroom-app .classwork-summary small,
body.classroom-app .resource-pill small {
  display: block;
  color: #64748b;
}

body.classroom-app .classroom-stream-item strong,
body.classroom-app .people-row strong,
body.classroom-app .classwork-summary strong,
body.classroom-app .resource-pill strong {
  overflow-wrap: anywhere;
}

body.classroom-app .classwork-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

body.classroom-app .classwork-item {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
}

body.classroom-app .classwork-summary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 0;
  background: #fff;
  padding: 1rem;
  text-align: left;
  color: #0f172a;
}

body.classroom-app .classwork-summary__main {
  flex: 1 1 auto;
  min-width: 0;
}

body.classroom-app .classwork-status {
  color: #475569;
  white-space: nowrap;
}

body.classroom-app .classwork-detail {
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  padding: 1rem 1.25rem;
}

body.classroom-app .resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

body.classroom-app .resource-pill {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 0.85rem;
  color: #0f172a;
}

body.classroom-app .forum-post {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
  padding: 0.85rem;
  margin-bottom: 0.65rem;
}

body.classroom-app .people-row {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

body.classroom-app .people-row:first-of-type {
  border-top: 0;
}

body.classroom-app .note-editor .note-modal,
body.classroom-app .note-popover {
  z-index: 1065 !important;
}

body.classroom-app .note-editor .modal-backdrop {
  z-index: 1060 !important;
}

body.classroom-app .note-editor .dropdown-menu {
  z-index: 1070 !important;
  pointer-events: auto;
}

body.classroom-app .note-editor .note-toolbar .dropdown-menu {
  max-height: none;
  overflow: visible;
}

body.classroom-app .note-editor,
body.classroom-app .note-toolbar,
body.classroom-app .note-btn-group {
  overflow: visible !important;
}

body.classroom-app .note-editor .note-dropdown-menu,
body.classroom-app .note-editor .dropdown-menu {
  z-index: 2050 !important;
}

body.classroom-app .note-editor .note-dropdown-item,
body.classroom-app .note-editor .dropdown-item,
body.classroom-app .note-editor .note-btn {
  cursor: pointer;
}

body.classroom-app .lesson-builder-card,
body.classroom-app .lesson-item-card {
  overflow: visible !important;
}

body.classroom-app .lesson-builder-card .card-body,
body.classroom-app .lesson-item-card .card-body {
  overflow: visible !important;
}

body.classroom-app .lesson-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

body.classroom-app .lesson-type-badge--material {
  background: rgba(89, 36, 155, 0.14);
  border-color: rgba(89, 36, 155, 0.22);
  color: #59249b;
}

body.classroom-app .lesson-type-badge--task {
  background: rgba(255, 145, 77, 0.14);
  border-color: rgba(255, 145, 77, 0.24);
  color: #c85b17;
}

body.classroom-app .lesson-type-badge--question {
  background: rgba(36, 110, 201, 0.14);
  border-color: rgba(36, 110, 201, 0.24);
  color: #246ec9;
}

body.classroom-app .note-editor .note-modal .modal-header,
body.classroom-app .note-editor .note-modal .modal-body,
body.classroom-app .note-editor .note-modal .modal-footer {
  color: #0f172a;
}

@keyframes classroomFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.login-page.classroom-auth {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 26%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.18), transparent 22%),
    linear-gradient(135deg, #08111f 0%, #0d1830 42%, #1d4ed8 100%);
}

body.login-page.classroom-auth .login-box {
  width: 440px;
  max-width: calc(100vw - 2rem);
}

body.login-page.classroom-auth .login-logo {
  margin-bottom: 1rem;
}

body.login-page.classroom-auth .login-logo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.login-page.classroom-auth .login-logo img {
  display: block;
  width: min(100%, 160px);
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(15, 23, 42, 0.32));
}

body.login-page.classroom-auth .card {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

body.login-page.classroom-auth .login-card-body {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.96);
}

body.login-page.classroom-auth {
  font-family: 'Montserrat', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 145, 77, 0.22), transparent 26%),
    radial-gradient(circle at top right, rgba(109, 40, 217, 0.34), transparent 30%),
    linear-gradient(135deg, #0b1020 0%, #1e1b4b 44%, #59249b 100%) !important;
  color: #fff;
}

body.login-page.classroom-auth .login-logo img {
  width: min(100%, 260px);
  height: auto;
}

body.login-page.classroom-auth .card {
  border-radius: 20px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--secondary);
  box-shadow: var(--soft-shadow);
}

body.login-page.classroom-auth .login-card-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

body.login-page.classroom-auth .login-card-subtitle {
  color: #64748b;
}

body.login-page.classroom-auth .auth-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

body.login-page.classroom-auth .auth-pill {
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  background: rgba(89, 36, 155, 0.1);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

body.login-page.classroom-auth .auth-cta {
  background: linear-gradient(135deg, #59249b 0%, #6f33c5 100%);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(89, 36, 155, 0.24);
}

body.login-page.classroom-auth .auth-cta:hover,
body.login-page.classroom-auth .auth-cta:focus {
  background: linear-gradient(135deg, #6f33c5 0%, #7c3aed 100%);
}

body.login-page.classroom-auth .form-control {
  border-radius: 14px;
  border-color: var(--border);
  min-height: 46px;
}

body.login-page.classroom-auth .input-group-text {
  border-radius: 0 14px 14px 0;
  border-color: var(--border);
  color: var(--primary);
  background: #fff;
}

.section-header-soft,
.section-header-lilac,
.lesson-builder-header {
  background: linear-gradient(90deg, rgba(89, 36, 155, 0.1), rgba(89, 36, 155, 0.04)) !important;
  border-bottom: 1px solid rgba(89, 36, 155, 0.14) !important;
}

.section-header-orange {
  background: linear-gradient(90deg, rgba(255, 145, 77, 0.16), rgba(255, 145, 77, 0.06)) !important;
  border-bottom: 1px solid rgba(255, 145, 77, 0.2) !important;
}

.section-header-soft .card-title,
.section-header-lilac .card-title,
.section-header-orange .card-title {
  letter-spacing: 0.01em;
  font-weight: 700;
}

.lesson-builder-card {
  border-width: 1px;
}

.lesson-builder-card .card-body {
  padding: 1.35rem;
}

.lesson-builder-header .card-title {
  color: var(--text);
}

.grade-form {
  gap: .5rem;
  flex-wrap: wrap;
}

.grade-form .grade-input {
  max-width: 84px;
  text-align: center;
}

.grade-form .form-control {
  min-width: 120px;
}

@media (max-width: 767.98px) {
  body.classroom-app .student-class-grid {
    grid-template-columns: 1fr;
  }

  body.classroom-app .student-course-hero {
    min-height: 180px;
  }

  body.classroom-app .student-course-hero__content {
    padding: 1.25rem;
  }

  body.classroom-app .student-course-hero h1 {
    font-size: 1.8rem;
  }

  body.classroom-app .classroom-tabs {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
  }

  body.classroom-app .classwork-summary {
    flex-wrap: wrap;
  }

  body.classroom-app .classwork-status {
    width: 100%;
    margin-left: 3.25rem;
    white-space: normal;
  }

  body.classroom-app .resource-grid {
    grid-template-columns: 1fr;
  }

  body.classroom-app .dashboard-context-head {
    flex-direction: column;
    align-items: flex-start;
  }

  body.classroom-app .hero-content {
    padding: 1.25rem;
  }

  body.classroom-app .hero-shell {
    border-radius: 22px;
  }

  body.classroom-app .metric-card {
    padding: 1rem;
  }
}

body.classroom-app {
  background: var(--background);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
}

body.classroom-app .content-wrapper {
  background: var(--background);
}

body.classroom-app .main-header.navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body.classroom-app .main-header .nav-link,
body.classroom-app .main-header .navbar-text {
  color: var(--text);
}

body.classroom-app .main-header .nav-link:hover {
  color: var(--primary);
}

body.classroom-app .navbar-badge {
  background: var(--secondary);
  color: #fff;
}

body.classroom-app .dropdown-notifications-menu {
  width: min(92vw, 28rem);
  min-width: 19rem;
  max-width: 28rem;
  padding-bottom: 0.25rem;
}

body.classroom-app .dropdown-notifications-menu .dropdown-item {
  white-space: normal;
}

body.classroom-app .dropdown-notifications-menu .dropdown-item .text-sm {
  font-size: 0.82rem;
  line-height: 1.35;
}

body.classroom-app .dropdown-notifications-menu .dropdown-header {
  font-size: 0.95rem;
}

body.classroom-app .pagination .page-link {
  color: var(--primary);
  border-color: var(--border);
  border-radius: 10px;
  margin: 0 0.12rem;
}

body.classroom-app .pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

body.classroom-app .pagination .page-item.disabled .page-link {
  color: var(--text-muted);
  background: rgba(148, 163, 184, 0.08);
}

body.classroom-app .main-sidebar {
  background: var(--sidebar-bg);
}

body.classroom-app .brand-link {
  position: relative;
  background: linear-gradient(135deg, #1e1b4b 0%, #59249b 60%, #6d28d9 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.classroom-app .brand-link::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--secondary);
}

body.classroom-app .brand-text,
body.classroom-app .nav-sidebar .nav-link,
body.classroom-app .nav-sidebar .nav-link p,
body.classroom-app .nav-sidebar .nav-link i {
  color: var(--sidebar-text);
}

body.classroom-app .nav-sidebar .nav-link i {
  color: var(--secondary);
}

body.classroom-app .nav-sidebar .nav-link {
  margin: 0.15rem 0.5rem;
  border-radius: 14px;
  border-left: 4px solid transparent;
}

body.classroom-app .nav-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.classroom-app .nav-sidebar .nav-link.active {
  background: rgba(89, 36, 155, 0.25);
  border-left-color: var(--secondary);
  color: #fff;
}

body.classroom-app .nav-sidebar .nav-link.active i {
  color: var(--secondary);
}

body.classroom-app .main-sidebar .form-control-sidebar,
body.classroom-app .main-sidebar .input-group-text,
body.classroom-app .main-sidebar .btn-sidebar {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-text);
}

body.classroom-app .main-sidebar .form-control-sidebar::placeholder {
  color: rgba(229, 231, 235, 0.5);
}

body.classroom-app .user-panel .info a,
body.classroom-app .user-panel .info small {
  color: var(--sidebar-text);
}

body.classroom-app .card,
body.classroom-app .info-box,
body.classroom-app .small-box,
body.classroom-app .modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--soft-shadow) !important;
}

body.classroom-app .card,
body.classroom-app .info-box {
  overflow: hidden;
  border-top: 4px solid var(--primary);
}

body.classroom-app .card-header {
  padding: 1.25rem 1.25rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

body.classroom-app .card-header.bg-primary,
body.classroom-app .card-header.bg-info,
body.classroom-app .card-header.bg-success,
body.classroom-app .card-header.bg-warning,
body.classroom-app .card-header.bg-secondary,
body.classroom-app .card-header.bg-dark {
  background: var(--surface) !important;
  color: var(--text) !important;
}

body.classroom-app .card-title,
body.classroom-app .section-title,
body.classroom-app .entity-title,
body.classroom-app .profile-title,
body.classroom-app .student-course-hero h1 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.classroom-app .hero-shell h1,
body.classroom-app .hero-title,
body.classroom-app .entity-hero h1,
body.classroom-app .entity-title,
body.classroom-app .profile-hero h1,
body.classroom-app .profile-title,
body.classroom-app .student-course-hero h1 {
  color: #fff !important;
}

body.classroom-app .card-body,
body.classroom-app .card-footer {
  padding: 1.25rem;
}

body.classroom-app .card.card-outline.card-primary,
body.classroom-app .card.card-outline.card-info {
  border-top-color: var(--primary);
}

body.classroom-app .card.card-outline.card-success,
body.classroom-app .card.card-outline.card-warning,
body.classroom-app .card.card-outline.card-secondary {
  border-top-color: var(--secondary);
}

body.classroom-app .card.card-outline.card-light,
body.classroom-app .card.card-outline.card-dark {
  border-top-color: var(--border);
}

body.classroom-app .small-box {
  position: relative;
  padding: 0.5rem 0;
  min-height: 118px;
  background: var(--surface) !important;
  border-top: 4px solid var(--primary);
}

body.classroom-app .small-box.bg-info,
body.classroom-app .small-box.bg-primary,
body.classroom-app .small-box.bg-success,
body.classroom-app .small-box.bg-warning,
body.classroom-app .small-box.bg-danger,
body.classroom-app .small-box.bg-dark {
  background: var(--surface) !important;
  color: var(--text) !important;
}

body.classroom-app .small-box .inner h3,
body.classroom-app .small-box .inner p {
  color: var(--text);
}

body.classroom-app .small-box .icon {
  color: rgba(89, 36, 155, 0.18);
}

body.classroom-app .hero-shell,
body.classroom-app .entity-hero,
body.classroom-app .profile-hero,
body.classroom-app .student-course-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 4px solid var(--secondary);
  box-shadow: var(--soft-shadow);
  background: linear-gradient(135deg, #1e1b4b 0%, #59249b 60%, #6d28d9 100%) !important;
  color: #fff;
}

body.classroom-app .hero-shell::after,
body.classroom-app .entity-hero::after,
body.classroom-app .profile-hero::after,
body.classroom-app .student-course-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.16), transparent 22%),
    radial-gradient(circle at 82% 12%, rgba(255, 145, 77, 0.22), transparent 18%);
  pointer-events: none;
}

body.classroom-app .hero-content,
body.classroom-app .entity-hero__content,
body.classroom-app .profile-hero__content,
body.classroom-app .student-course-hero__content {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.75rem;
}

body.classroom-app .hero-lead,
body.classroom-app .entity-lead,
body.classroom-app .profile-subtitle,
body.classroom-app .student-course-hero p {
  color: rgba(255, 255, 255, 0.82);
}

body.classroom-app .entity-kicker,
body.classroom-app .profile-kicker,
body.classroom-app .auth-pill,
body.classroom-app .badge {
  font-weight: 600;
}

body.classroom-app .entity-kicker,
body.classroom-app .profile-kicker,
body.classroom-app .auth-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

body.classroom-app .badge-primary,
body.classroom-app .badge-info,
body.classroom-app .badge.bg-primary,
body.classroom-app .badge.bg-info {
  background: var(--primary);
  color: #fff;
}

body.classroom-app .badge-secondary,
body.classroom-app .badge-warning,
body.classroom-app .badge.bg-secondary,
body.classroom-app .badge.bg-warning {
  background: var(--secondary);
  color: #fff;
}

body.classroom-app .badge-success {
  background: var(--success);
  color: #fff;
}

body.classroom-app .badge.bg-danger {
  background: var(--danger);
  color: #fff;
}

body.classroom-app .badge-light {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

body.classroom-app .btn,
body.login-page.classroom-auth .btn {
  border-radius: 14px;
  font-weight: 600;
  box-shadow: none !important;
}

body.classroom-app .btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

body.classroom-app .btn-primary:hover,
body.classroom-app .btn-primary:focus {
  background: #6f33c5;
  border-color: #6f33c5;
  color: #fff;
}

body.classroom-app .btn-secondary,
body.classroom-app .btn-success,
body.classroom-app .btn-warning {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

body.classroom-app .btn-secondary:hover,
body.classroom-app .btn-success:hover,
body.classroom-app .btn-warning:hover,
body.classroom-app .btn-secondary:focus,
body.classroom-app .btn-success:focus,
body.classroom-app .btn-warning:focus {
  background: #ff7a1f;
  border-color: #ff7a1f;
  color: #fff;
}

body.classroom-app .btn-info {
  background: rgba(89, 36, 155, 0.1);
  border-color: rgba(89, 36, 155, 0.18);
  color: var(--primary);
}

body.classroom-app .btn-info:hover,
body.classroom-app .btn-info:focus {
  background: rgba(89, 36, 155, 0.16);
  border-color: rgba(89, 36, 155, 0.24);
  color: var(--primary);
}

body.classroom-app .btn-light,
body.classroom-app .btn-default,
body.classroom-app .btn-outline-light {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

body.classroom-app .btn-outline-primary {
  color: var(--primary);
  border-color: rgba(89, 36, 155, 0.22);
}

body.classroom-app .btn-outline-primary:hover,
body.classroom-app .btn-outline-primary:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

body.classroom-app .btn-outline-secondary {
  color: var(--secondary);
  border-color: rgba(255, 145, 77, 0.28);
}

body.classroom-app .btn-outline-secondary:hover,
body.classroom-app .btn-outline-secondary:focus {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

body.classroom-app .btn-tool {
  color: var(--text-muted);
}

body.classroom-app .form-control,
body.classroom-app .custom-select,
body.classroom-app .input-group-text,
body.classroom-app textarea,
body.classroom-app select {
  border-color: var(--border);
  border-radius: 14px;
  color: var(--text);
}

body.classroom-app .form-control,
body.classroom-app .custom-select,
body.classroom-app textarea,
body.classroom-app select {
  min-height: 46px;
  background: #fff;
}

body.classroom-app .form-control:focus,
body.classroom-app .custom-select:focus,
body.classroom-app textarea:focus,
body.classroom-app select:focus {
  border-color: rgba(89, 36, 155, 0.38);
  box-shadow: 0 0 0 0.18rem rgba(89, 36, 155, 0.1);
}

body.classroom-app label,
body.classroom-app .text-muted {
  color: var(--text-muted) !important;
}

body.classroom-app .table {
  color: var(--text);
  background: #fff;
}

body.classroom-app .table thead th {
  background: #fff;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

body.classroom-app .table tbody tr:hover {
  background: rgba(89, 36, 155, 0.04);
}

body.classroom-app .table td,
body.classroom-app .table th {
  border-color: var(--border);
}

body.classroom-app .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(17, 24, 39, 0.02);
}

body.classroom-app .nav-tabs {
  border-bottom: 1px solid var(--border);
}

body.classroom-app .nav-tabs .nav-link {
  color: var(--text-muted);
  border: 1px solid transparent;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

body.classroom-app .nav-tabs .nav-link:hover {
  border-color: var(--border);
  color: var(--primary);
}

body.classroom-app .nav-tabs .nav-link.active {
  color: var(--primary);
  background: #fff;
  border-color: var(--border) var(--border) #fff;
}

body.classroom-app .dataTables_wrapper .dataTables_filter input,
body.classroom-app .dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

body.classroom-app .dataTables_wrapper .dataTables_info,
body.classroom-app .dataTables_wrapper .dataTables_paginate {
  color: var(--text-muted);
}

body.classroom-app .dataTables_wrapper .dt-buttons .btn {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-radius: 12px;
  margin-right: 0.35rem;
}

body.classroom-app .dataTables_wrapper .dt-buttons .btn:hover,
body.classroom-app .dataTables_wrapper .dt-buttons .btn:focus {
  background: #6f33c5;
  border-color: #6f33c5;
  color: #fff;
}

body.classroom-app .dataTables_wrapper .page-link {
  border-color: var(--border);
  color: var(--primary);
}

body.classroom-app .dataTables_wrapper .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

body.classroom-app .modal-content {
  border-top: 4px solid var(--secondary);
}

body.classroom-app .modal-header,
body.classroom-app .modal-footer {
  border-color: var(--border);
}

body.classroom-app .dropdown-menu {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
}

body.classroom-app .alert {
  border-radius: 16px;
  border-color: var(--border);
}

body.classroom-app .alert-info {
  background: rgba(89, 36, 155, 0.08);
  color: var(--text);
  border-color: rgba(89, 36, 155, 0.16);
}

body.classroom-app .alert-warning {
  background: rgba(255, 145, 77, 0.12);
  color: var(--text);
  border-color: rgba(255, 145, 77, 0.2);
}

body.classroom-app .timeline-icon.bg-primary,
body.classroom-app .timeline-icon.bg-info {
  background: var(--primary) !important;
}

body.classroom-app .timeline-icon.bg-success {
  background: var(--secondary) !important;
}

body.classroom-app .timeline-icon.bg-warning {
  background: var(--secondary) !important;
}

body.classroom-app .timeline-icon.bg-danger {
  background: var(--danger) !important;
}

body.classroom-app .section-header-soft,
body.classroom-app .section-header-lilac,
body.classroom-app .lesson-builder-header {
  background: linear-gradient(90deg, rgba(89, 36, 155, 0.1), rgba(89, 36, 155, 0.04)) !important;
  border-bottom: 1px solid rgba(89, 36, 155, 0.14) !important;
}

body.classroom-app .section-header-orange,
body.classroom-app .card.card-outline.card-success > .section-header-soft,
body.classroom-app .card.card-outline.card-warning > .section-header-soft,
body.classroom-app .card.card-outline.card-secondary > .section-header-soft {
  background: linear-gradient(90deg, rgba(255, 145, 77, 0.16), rgba(255, 145, 77, 0.06)) !important;
  border-bottom: 1px solid rgba(255, 145, 77, 0.2) !important;
}

body.classroom-app .section-header-soft .card-title,
body.classroom-app .section-header-lilac .card-title,
body.classroom-app .section-header-orange .card-title,
body.classroom-app .lesson-builder-header .card-title {
  color: var(--text);
}

body.classroom-app .lesson-builder-card .card-body {
  padding: 1.5rem;
}

body.classroom-app .lesson-side-card .card-title {
  font-size: 0.95rem;
  line-height: 1.25;
}

body.classroom-app .quick-action {
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
}

body.classroom-app .quick-action .qa-icon {
  background: linear-gradient(135deg, #59249b, #6f33c5) !important;
}

body.classroom-app .quick-action:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

body.classroom-app .student-class-card {
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--soft-shadow);
}

body.classroom-app .student-class-card__cover {
  background: linear-gradient(135deg, #1e1b4b 0%, #59249b 55%, #6d28d9 100%);
}

body.classroom-app .student-class-card .student-class-card__footer {
  border-top: 1px solid var(--border);
}

body.classroom-app .profile-file-name,
body.classroom-app .classroom-file__name {
  border-color: var(--border);
  background: #fff;
  color: var(--text-muted);
}

body.classroom-app .profile-upload__button,
body.classroom-app .classroom-file__button {
  background: #fff;
  border-color: rgba(89, 36, 155, 0.16);
  color: var(--text);
}

body.classroom-app .profile-upload__button:hover,
body.classroom-app .classroom-file__button:hover {
  border-color: rgba(89, 36, 155, 0.3);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}

body.classroom-app .entity-chip {
  background: rgba(255, 255, 255, 0.12);
}

body.classroom-app .entity-chip i,
body.classroom-app .profile-chip i {
  color: var(--secondary);
}

body.classroom-app .toastify {
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}

body.classroom-app .main-footer {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

body.classroom-app .card-header .badge,
body.classroom-app .small-box .badge {
  border-radius: 999px;
}

body.classroom-app {
  background:
    radial-gradient(circle at top left, rgba(89, 36, 155, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 145, 77, 0.08), transparent 28%),
    linear-gradient(180deg, var(--background) 0%, #eef0f6 100%) !important;
}

body.classroom-app .main-header.navbar {
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid var(--border) !important;
}

body.classroom-app .main-sidebar {
  background: var(--sidebar-bg) !important;
}

body.classroom-app .brand-link {
  background: rgba(89, 36, 155, 0.16) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.classroom-app .nav-sidebar .nav-link:hover,
body.classroom-app .nav-sidebar .nav-link.active {
  background: rgba(89, 36, 155, 0.25) !important;
  border-left: 4px solid var(--secondary);
  color: var(--sidebar-text) !important;
}

body.classroom-app .bg-primary,
body.classroom-app .bg-info,
body.classroom-app div.bg-primary,
body.classroom-app div.bg-info {
  background: var(--primary) !important;
  color: #fff !important;
}

body.classroom-app .bg-secondary,
body.classroom-app .bg-success,
body.classroom-app .bg-warning,
body.classroom-app div.bg-secondary,
body.classroom-app div.bg-success,
body.classroom-app div.bg-warning {
  background: var(--secondary) !important;
  color: #fff !important;
}

body.classroom-app .bg-light,
body.classroom-app div.bg-light {
  background: rgba(89, 36, 155, 0.04) !important;
  color: var(--text) !important;
}

body.classroom-app .bg-white,
body.classroom-app div.bg-white {
  background: var(--surface) !important;
  color: var(--text) !important;
}

body.classroom-app .bg-dark,
body.classroom-app div.bg-dark {
  background: #1e1b4b !important;
  color: #fff !important;
}

body.classroom-app .bg-danger,
body.classroom-app div.bg-danger {
  background: var(--danger) !important;
  color: #fff !important;
}

body.classroom-app .card-header.bg-primary,
body.classroom-app .card-header.bg-info {
  background: linear-gradient(90deg, rgba(89, 36, 155, 0.1), rgba(89, 36, 155, 0.04)) !important;
  color: var(--text) !important;
}

body.classroom-app .card-header.bg-secondary,
body.classroom-app .card-header.bg-success,
body.classroom-app .card-header.bg-warning {
  background: linear-gradient(90deg, rgba(255, 145, 77, 0.16), rgba(255, 145, 77, 0.06)) !important;
  color: var(--text) !important;
}

body.classroom-app .border.rounded.bg-light,
body.classroom-app div.border.rounded.bg-light {
  background: rgba(89, 36, 155, 0.035) !important;
  border-color: rgba(89, 36, 155, 0.12) !important;
}

body.classroom-app .p-3.rounded.bg-white,
body.classroom-app .p-4.rounded.bg-white,
body.classroom-app div.p-3.rounded.bg-white,
body.classroom-app div.p-4.rounded.bg-white {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

body.classroom-app .small-box.bg-info,
body.classroom-app .small-box.bg-primary {
  border-top-color: var(--primary) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
}

body.classroom-app .small-box.bg-success,
body.classroom-app .small-box.bg-warning {
  border-top-color: var(--secondary) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
}

body.classroom-app .small-box.bg-danger {
  border-top-color: var(--danger) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
}

body.classroom-app .classwork-rich-content {
  line-height: 1.65;
}

body.classroom-app .classwork-rich-content p:last-child,
body.classroom-app .classwork-rich-content ul:last-child,
body.classroom-app .classwork-rich-content ol:last-child {
  margin-bottom: 0;
}

body.classroom-app .classwork-rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

body.classroom-app .classwork-rich-content table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
}

body.classroom-app .classwork-rich-content th,
body.classroom-app .classwork-rich-content td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
}

@media (max-width: 767.98px) {
  body.classroom-app .hero-shell,
  body.classroom-app .entity-hero,
  body.classroom-app .profile-hero,
  body.classroom-app .student-course-hero {
    border-radius: 22px;
  }

  body.classroom-app .hero-content,
  body.classroom-app .entity-hero__content,
  body.classroom-app .profile-hero__content,
  body.classroom-app .student-course-hero__content {
    padding: 1.25rem;
  }

  body.classroom-app .card-body,
  body.classroom-app .card-footer,
  body.classroom-app .card-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
