:root {
  --bg: #edf4f7;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-soft: #fffdfa;
  --ink: #1f2937;
  --muted: #667085;
  --line: rgba(31, 41, 55, 0.08);
  --brand: #0f766e;
  --brand-dark: #115e59;
  --sidebar: #163553;
  --sidebar-soft: #27486a;
  --sidebar-line: rgba(255, 255, 255, 0.08);
  --blue: #2d3fa3;
  --orange: #f59e0b;
  --green: #22c55e;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.16), transparent 26%),
    linear-gradient(135deg, #f6f1e8 0%, #eef7f5 48%, #f8f5ef 100%);
}

a {
  color: inherit;
}

.app-shell {
  position: relative;
  z-index: 1;
}

.login-body .app-shell {
  min-height: calc(100vh - 170px);
  display: flex;
  align-items: flex-start;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.login-page {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
}

.login-showcase,
.login-panel,
.dashboard-card,
.module-page,
.menu-panel,
.stat-card,
.menu-card {
  background: var(--surface);
  border: 1px solid rgba(31, 41, 55, 0.06);
  box-shadow: var(--shadow);
}

.login-showcase {
  border-radius: 32px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.login-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 1.5rem;
}

.login-logo {
  max-width: 290px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(17, 24, 39, 0.14));
}

.login-showcase::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.32), rgba(245, 158, 11, 0));
}

.login-badge,
.dashboard-kicker,
.login-panel-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-showcase h1,
.dashboard-copy h1 {
  margin-top: 1.25rem;
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 3vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.login-panel p,
.dashboard-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.login-panel {
  border-radius: 32px;
  padding: 2.4rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
}

.login-panel-header h2 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.login-form {
  margin-top: 1.5rem;
}

.login-form label {
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.login-input {
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.9rem 1rem;
}

.login-input:focus {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.12);
}

.login-submit {
  width: 100%;
  margin-top: 1rem;
  height: 56px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #2d3fa3 0%, #3f4db8 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 30px rgba(45, 63, 163, 0.28);
}

.login-submit:hover {
  color: #fff;
  background: linear-gradient(135deg, #24348e 0%, #3344a8 100%);
}

.login-validation {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.08);
  color: #b42318;
}

.login-validation:empty {
  display: none;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px 1fr;
  background: #edf4f7;
}

.sidebar {
  background: linear-gradient(180deg, var(--sidebar) 0%, #183b60 100%);
  color: #fff;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 30;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.sidebar-close,
.sidebar-toggle {
  border: 0;
  background: transparent;
  color: inherit;
}

.sidebar-close {
  display: none;
  align-self: flex-end;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-logo-image {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff;
  padding: 4px;
}

.sidebar-brand strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.sidebar-brand span {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.sidebar-profile {
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--sidebar-line);
}

.sidebar-profile-label {
  display: block;
  margin-bottom: 0.55rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sidebar-profile strong {
  display: block;
  font-size: 1.05rem;
}

.sidebar-profile small {
  color: rgba(255, 255, 255, 0.72);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidebar-section-title {
  margin-top: 0.9rem;
  margin-bottom: 0.15rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 700;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.admin-content {
  padding: 1.75rem 1.75rem 2rem;
  min-width: 0;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.topbar-heading {
  display: flex;
  flex-direction: column;
}

.sidebar-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-bottom: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(31, 41, 55, 0.08);
  color: var(--sidebar);
  box-shadow: var(--shadow);
}

.sidebar-overlay {
  display: none;
}

.topbar-kicker {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(45, 63, 163, 0.08);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.topbar h1 {
  margin-top: 0.8rem;
  margin-bottom: 0;
  font-size: 2.1rem;
  letter-spacing: -0.05em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.topbar-user-chip,
.topbar-logout {
  height: 46px;
  padding: 0 1rem;
  border-radius: 16px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.topbar-user-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #4caf50;
}

.topbar-logout {
  cursor: pointer;
}

.admin-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dashboard-hero {
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.stat-card {
  border-radius: 24px;
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
}

.stat-card-blue::after {
  background: #35a8ff;
}

.stat-card-green::after {
  background: #22c55e;
}

.stat-card-orange::after {
  background: #f59e0b;
}

.stat-label {
  display: block;
  color: #6b7280;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-card strong {
  display: block;
  margin-top: 0.9rem;
  font-size: 2.6rem;
  line-height: 1;
}

.stat-card small {
  display: inline-flex;
  margin-top: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: #2f7a2f;
  font-weight: 700;
}

.menu-panel,
.module-page {
  border-radius: 28px;
  padding: 1.8rem;
}

.module-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.menu-panel-header {
  margin-bottom: 1.25rem;
}

.menu-panel-header h2,
.module-page h1 {
  margin: 0 0 0.55rem;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.menu-panel-header p,
.module-page p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.course-toolbar {
  margin-bottom: 1.25rem;
}

.course-search-input {
  width: min(420px, 100%);
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(31, 41, 55, 0.1);
  background: rgba(255, 255, 255, 0.92);
  padding: 0 1rem;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.student-course-progress {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.35rem 0 0.2rem;
}

.student-course-progress.is-large {
  margin-top: 1rem;
}

.student-course-progress.compact {
  margin: 0.25rem 0 0;
}

.student-course-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: #5b6b87;
}

.student-course-progress-head strong {
  color: #22314a;
  font-weight: 800;
}

.student-course-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(45, 63, 163, 0.1);
  overflow: hidden;
}

.student-course-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d3fa3 0%, #21c2b5 100%);
}

.student-course-progress small {
  color: #64748b;
  font-size: 0.85rem;
}

.course-enter-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: #eef2ff;
  color: #2d3fa3;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-enter-action:hover {
  color: #2d3fa3;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(45, 63, 163, 0.16);
}

.learning-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.learning-hero,
.learning-main-panel,
.learning-sidebar-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(203, 213, 225, 0.65);
  border-radius: 30px;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

.learning-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
}

.learning-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.learning-hero-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.learning-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.learning-hero-body h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  color: #22314a;
}

.learning-hero-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #55657f;
}

.learning-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  color: #5f6f88;
  font-weight: 600;
}

.learning-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.learning-diploma-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.35rem;
}

.learning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 1.5rem;
  min-width: 0;
}

.learning-main-panel,
.learning-sidebar-panel {
  padding: 1.6rem;
}

.learning-content-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.learning-content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.learning-content-header h2,
.learning-sidebar-head h2,
.learning-empty h2 {
  margin: 0.5rem 0 0;
  color: #22314a;
}

.learning-content-header p,
.learning-sidebar-head p,
.learning-empty p,
.learning-module-description,
.learning-assessment-card p {
  margin: 0.5rem 0 0;
  color: #5f6f88;
  line-height: 1.65;
}

.learning-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.learning-video-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.learning-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.learning-empty-video,
.learning-assessment-card,
.learning-empty {
  padding: 1.3rem;
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, 0.75);
  background: #f8fbff;
}

.learning-assessment-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.learning-assessment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.learning-assessment-head strong {
  color: #22314a;
  font-size: 1.05rem;
}

.learning-assessment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.learning-question-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.learning-question-card {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  background: white;
}

.learning-question-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.learning-question-card h3 {
  margin: 0 0 0.9rem;
  color: #22314a;
  font-size: 1.05rem;
  line-height: 1.5;
}

.learning-question-options {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.learning-option-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(203, 213, 225, 0.7);
  background: #fbfdff;
  color: #42526b;
  margin: 0;
}

.learning-option-item input {
  margin-top: 0.2rem;
}

.learning-question-missing-options {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(191, 100, 31, 0.28);
  background: #fff8ee;
  color: #a15d17;
  font-weight: 700;
}

.learning-discursive-answer {
  min-height: 120px;
  border-radius: 18px;
  background: #fbfdff;
}

.response-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.response-summary-card {
  padding: 1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(203, 213, 225, 0.75);
  background: #fbfdff;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.response-summary-card strong {
  color: #22314a;
  font-size: 1rem;
}

.response-summary-card small {
  color: #61728d;
}

.response-email-nowrap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.response-question-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.response-question-card {
  padding: 1.15rem;
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, 0.7);
  background: white;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.04);
}

.response-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.response-question-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.response-question-card h3 {
  margin: 0.9rem 0;
  color: #22314a;
  font-size: 1.05rem;
  line-height: 1.55;
}

.response-discursive-answer {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.75);
  background: #f8fbff;
  color: #49566d;
  line-height: 1.7;
}

.response-option-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.response-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.68);
  background: #fbfdff;
}

.response-option-item.is-correct {
  border-color: rgba(34, 197, 94, 0.26);
  background: #f3fcf6;
}

.response-option-item.is-selected {
  border-color: rgba(45, 63, 163, 0.22);
  background: #f7f9ff;
}

.response-option-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.response-question-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  color: #61728d;
  font-size: 0.92rem;
}

.response-question-grade {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.response-question-grade label {
  margin: 0;
  font-weight: 700;
  color: #42526b;
  white-space: nowrap;
}

.response-question-grade .form-control {
  width: 110px;
  border-radius: 14px;
}

.learning-empty-video {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #5f6f88;
}

.learning-empty-video i {
  color: #2d3fa3;
}

.learning-content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: #5f6f88;
}

.learning-content-meta span,
.learning-content-meta a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.learning-content-meta a {
  color: #2d3fa3;
  font-weight: 700;
  text-decoration: none;
}

.learning-comments-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.learning-comments-panel {
  border-radius: 24px;
  border: 1px solid rgba(45, 63, 163, 0.08);
  background: rgba(249, 251, 255, 0.94);
  padding: 1.2rem;
}

.learning-module-comments {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(31, 41, 55, 0.06);
}

.learning-course-comments-panel {
  margin-top: 1.2rem;
}

.learning-comments-head h3 {
  margin: 0.35rem 0 0.2rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #22314a;
}

.learning-comments-head p {
  margin: 0;
  color: #5f7290;
}

.learning-comment-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.95rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: rgba(45, 63, 163, 0.06);
  color: #2d3fa3;
  font-size: 0.92rem;
  font-weight: 700;
}

.learning-comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.learning-comment-form .module-primary-action {
  align-self: flex-start;
}

.learning-comment-thread {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.learning-comment-item,
.learning-comment-reply {
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  background: #fff;
  padding: 0.95rem 1rem;
}

.learning-comment-item.is-admin {
  border-color: rgba(34, 197, 94, 0.18);
}

.learning-comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  color: #5f7290;
  font-size: 0.9rem;
}

.learning-comment-meta strong {
  color: #22314a;
  font-size: 0.96rem;
}

.learning-comment-item p,
.learning-comment-reply p {
  margin: 0;
  color: #324762;
  line-height: 1.6;
  white-space: pre-line;
}

.learning-comment-replies {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(31, 41, 55, 0.06);
}

.learning-comment-reply {
  background: rgba(245, 248, 255, 0.95);
}

.learning-comment-empty {
  padding: 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(45, 63, 163, 0.16);
  color: #66758f;
  background: rgba(255, 255, 255, 0.7);
}

.learning-complete-form {
  flex-shrink: 0;
}

.learning-completed-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #ebf9f1;
  color: #20784a;
  font-weight: 800;
}

.learning-module-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.learning-module-card {
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  background: #fbfdff;
}

.learning-module-card.is-current {
  border-color: rgba(45, 63, 163, 0.35);
  box-shadow: 0 18px 30px rgba(45, 63, 163, 0.08);
}

.learning-module-card.is-locked {
  background: #f8fafc;
}

.learning-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.learning-module-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.learning-module-header > div {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.learning-module-header strong {
  color: #22314a;
  font-size: 1rem;
}

.learning-module-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(45, 63, 163, 0.18);
  background: #fff;
  color: #2d3fa3;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.learning-module-toggle:hover {
  text-decoration: none;
  color: #2d3fa3;
  background: #f8faff;
  box-shadow: 0 10px 18px rgba(45, 63, 163, 0.12);
}

.learning-module-toggle i {
  transition: transform 0.2s ease;
}

.learning-module-toggle[aria-expanded="true"] i,
.learning-module-toggle.is-open i {
  transform: rotate(180deg);
}

.learning-content-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.learning-content-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.7);
  background: white;
}

.learning-content-item.is-current {
  border-color: rgba(45, 63, 163, 0.32);
  background: #f8faff;
}

.learning-content-item.is-completed {
  background: #f4fbf6;
}

.learning-content-item.is-locked {
  background: #f8fafc;
  opacity: 0.7;
}

.learning-content-item-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.learning-content-type-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  flex: 0 0 auto;
  font-size: 1rem;
}

.learning-content-type-icon.is-video {
  background: rgba(33, 194, 181, 0.12);
  color: #0f766e;
}

.learning-content-type-icon.is-assessment {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.learning-content-link {
  color: #22314a;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.learning-content-link:hover {
  color: #2d3fa3;
  text-decoration: none;
}

.learning-content-link.is-locked {
  color: #61728d;
}

.learning-content-item-state {
  flex: 0 0 auto;
  color: #2d3fa3;
}

.learning-content-item.is-completed .learning-content-item-state {
  color: #20784a;
}

.comment-admin-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-admin-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.comment-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: #4b5d79;
  font-weight: 800;
  text-decoration: none;
}

.comment-filter-chip.active {
  background: linear-gradient(135deg, #2d3fa3 0%, #3f4db8 100%);
  color: #fff;
  box-shadow: 0 14px 24px rgba(45, 63, 163, 0.2);
}

.comment-admin-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-admin-card,
.comment-admin-empty {
  border-radius: 26px;
  border: 1px solid rgba(31, 41, 55, 0.06);
  background: rgba(255, 255, 255, 0.96);
  padding: 1.2rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.comment-admin-empty h2 {
  margin-bottom: 0.45rem;
  color: #22314a;
}

.comment-admin-empty p {
  margin: 0;
  color: #66758f;
}

.comment-admin-card-head,
.comment-admin-scope,
.comment-admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.comment-admin-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.comment-admin-card-meta strong {
  color: #22314a;
  font-size: 1.05rem;
}

.comment-admin-email {
  color: #5f7290;
  white-space: nowrap;
}

.comment-admin-scope {
  margin-top: 0.85rem;
  justify-content: flex-start;
}

.comment-admin-date {
  color: #66758f;
  font-weight: 600;
}

.comment-admin-message {
  margin: 0.95rem 0 0;
  color: #324762;
  line-height: 1.7;
  white-space: pre-line;
}

.comment-admin-replies {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.comment-admin-reply {
  border-radius: 18px;
  padding: 0.95rem 1rem;
  background: rgba(244, 248, 255, 0.98);
  border: 1px solid rgba(31, 41, 55, 0.05);
}

.comment-admin-reply strong {
  color: #22314a;
}

.comment-admin-reply span {
  margin-left: 0.55rem;
  color: #66758f;
  font-size: 0.9rem;
}

.comment-admin-reply p {
  margin: 0.45rem 0 0;
  color: #324762;
  line-height: 1.6;
  white-space: pre-line;
}

.comment-inline-action {
  min-height: 42px;
}

.comment-reply-context {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.learning-content-item.is-locked .learning-content-item-state {
  color: #94a3b8;
}

.course-card,
.course-empty-state {
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 41, 55, 0.06);
  box-shadow: var(--shadow);
}

.course-card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
}

.course-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.course-card-overlay {
  position: absolute;
  inset: 0;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.22) 0%, rgba(15, 23, 42, 0.02) 55%, rgba(15, 23, 42, 0) 100%);
}

.course-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.course-pill.is-published {
  background: rgba(34, 197, 94, 0.15);
  color: #14532d;
}

.course-pill.is-draft {
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
}

.course-pill.is-active {
  background: rgba(255, 255, 255, 0.86);
  color: #0f766e;
}

.course-pill.is-inactive {
  background: rgba(255, 255, 255, 0.86);
  color: #b42318;
}

.course-card-body {
  padding: 1.25rem;
}

.course-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: #667085;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.course-card h2 {
  margin-top: 0.9rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.course-card-description {
  min-height: 72px;
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.course-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
}

.course-card-footer strong {
  display: block;
  font-size: 1rem;
}

.course-card-footer span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}

.course-card-actions {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
}

.course-textarea {
  min-height: 120px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.9rem 1rem;
}

.course-empty-state {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
}

.course-modal-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

#cursoModal .course-modal-tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  padding: 0.2rem 0 0.9rem;
  margin-bottom: 1rem;
  background: transparent;
}

.course-modules-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.course-modules-header h6 {
  margin: 0.9rem 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.course-modules-header p {
  margin: 0;
}

.course-modules-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-module-list-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.35rem;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.course-module-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.course-module-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(31, 41, 55, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.course-module-row {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: center;
  width: 100%;
}

.course-module-list-copy {
  flex: 1;
  min-width: 0;
}

.course-module-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.course-module-list-actions {
  display: flex;
  flex-direction: row;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
  min-width: auto;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(31, 41, 55, 0.08);
}

.course-module-editor-card {
  margin: 0;
}

.course-module-card {
  border-radius: 24px;
  padding: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  border: 1px solid rgba(31, 41, 55, 0.08);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.course-module-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.course-module-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(45, 63, 163, 0.08);
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.course-module-title-preview {
  display: block;
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.course-module-count {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.course-module-action {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.course-module-action.is-ghost {
  border-color: rgba(31, 41, 55, 0.08);
  background: rgba(15, 23, 42, 0.04);
  color: #475467;
}

.course-module-action.is-ghost i {
  transition: transform 0.18s ease;
}

.course-module-action.is-open i {
  transform: rotate(180deg);
}

.course-module-contents {
  width: 100%;
  border-top: 1px solid rgba(31, 41, 55, 0.06);
  padding-top: 1rem;
}

.course-module-contents-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.course-module-contents-head strong,
.course-content-title-preview {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.course-module-contents-head span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.course-content-add {
  height: 40px;
  border-radius: 14px;
  padding: 0 0.95rem;
}

.course-content-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.course-content-list-item {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(31, 41, 55, 0.07);
}

.course-content-copy {
  flex: 1;
  min-width: 0;
}

.course-content-inline {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.course-content-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.course-content-title-preview {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.course-content-duration {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  background: rgba(45, 63, 163, 0.08);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.course-content-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(31, 41, 55, 0.08);
}

.course-contents-empty {
  margin-top: 0.75rem;
}

.course-form-loading {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
}

.course-form-loading-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.9rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(31, 41, 55, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.course-module-textarea {
  min-height: 108px;
}

.course-module-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.35rem;
}

.course-modules-empty {
  margin-top: 0.5rem;
}

.menu-card {
  display: block;
  text-decoration: none;
  padding: 1.5rem;
  border-radius: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.16);
  color: inherit;
  text-decoration: none;
}

.menu-card-kicker,
.module-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(45, 63, 163, 0.08);
  color: #2d3fa3;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.menu-card h2 {
  margin-top: 1rem;
  margin-bottom: 0.7rem;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.menu-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.module-primary-action,
.module-secondary-action {
  height: 46px;
  padding: 0 1.1rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.module-primary-action {
  background: linear-gradient(135deg, #2d3fa3 0%, #3f4db8 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(45, 63, 163, 0.24);
}

.module-primary-action:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(45, 63, 163, 0.28);
}

.module-primary-action.is-disabled,
.module-primary-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.12);
}

.module-primary-action.is-disabled:hover,
.module-primary-action:disabled:hover {
  transform: none;
  box-shadow: none;
}

.module-secondary-action {
  border: 1px solid rgba(31, 41, 55, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.users-table-shell,
.user-form-card {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  border: 1px solid rgba(31, 41, 55, 0.06);
}

.users-table-shell {
  overflow: hidden;
  padding: 1rem 1rem 1.2rem;
}

.users-table-area {
  width: 100%;
  overflow: visible;
}

.users-table {
  width: 100% !important;
  table-layout: fixed;
  margin-bottom: 0;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border-radius: 12px;
  border: 1px solid rgba(31, 41, 55, 0.12);
  min-height: 38px;
  max-width: 100%;
}

.dataTables_wrapper .row:first-child,
.dataTables_wrapper .row:last-child {
  margin-left: 0;
  margin-right: 0;
}

.dataTables_wrapper .row:first-child {
  margin-bottom: 0.9rem;
}

.dataTables_wrapper .row:last-child {
  margin-top: 1rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 10px !important;
}

.users-table thead th {
  border-top: 0;
  border-bottom: 1px solid rgba(31, 41, 55, 0.08);
  color: #667085;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.users-table td {
  vertical-align: middle;
  border-top: 1px solid rgba(31, 41, 55, 0.05);
}

.users-secondary-text {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.users-table td:nth-child(3),
.users-table th:nth-child(3) {
  word-break: break-word;
}

.users-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.users-badge.is-admin {
  background: rgba(45, 63, 163, 0.1);
  color: #2d3fa3;
}

.users-badge.is-student {
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
}

.users-badge.is-active {
  background: rgba(34, 197, 94, 0.1);
  color: #2f7a2f;
}

.users-badge.is-course-count {
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}

.users-badge.is-inactive {
  background: rgba(239, 68, 68, 0.1);
  color: #b42318;
}

.users-actions {
  display: inline-flex;
  gap: 0.9rem;
  align-items: center;
}

.users-action-link {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(45, 63, 163, 0.14);
  background: rgba(45, 63, 163, 0.08);
  font-weight: 800;
  color: #2d3fa3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.users-action-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(45, 63, 163, 0.12);
  text-decoration: none;
}

.users-action-link.is-danger {
  border-color: rgba(180, 35, 24, 0.14);
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
}

.users-action-link.is-danger:hover {
  box-shadow: 0 10px 18px rgba(180, 35, 24, 0.12);
}

.users-action-link.is-success {
  border-color: rgba(34, 197, 94, 0.16);
  background: rgba(34, 197, 94, 0.1);
  color: #2f7a2f;
}

.users-action-link.is-success:hover {
  box-shadow: 0 10px 18px rgba(34, 197, 94, 0.14);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  min-width: 40px;
  height: 40px;
  margin-left: 0.35rem;
  border: 1px solid rgba(31, 41, 55, 0.08) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #334155 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: linear-gradient(135deg, #2d3fa3 0%, #3f4db8 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(45, 63, 163, 0.2);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(45, 63, 163, 0.08) !important;
  border-color: rgba(45, 63, 163, 0.14) !important;
  color: #2d3fa3 !important;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.users-empty-state {
  text-align: center;
  padding: 2rem !important;
  color: var(--muted);
}

.user-form-card {
  padding: 1.6rem;
  position: relative;
}

.user-modal-content {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: transparent;
}

.user-modal-form {
  margin: 0;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 3rem);
}

.user-modal-body {
  position: relative;
  padding: 1.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
}

.user-modal-title {
  margin: 0.55rem 0 0;
  color: #22314a;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.user-modal-close {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(31, 41, 55, 0.1);
  border-radius: 14px;
  background: white;
  color: #475467;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.user-modal-close:hover {
  color: #22314a;
  background: #f8fbff;
}

.user-modal-header {
  border-bottom: 1px solid rgba(31, 41, 55, 0.06);
  align-items: flex-start;
}

.user-modal-header .modal-title {
  margin-top: 0.8rem;
  margin-bottom: 0.35rem;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.user-modal-subtitle {
  margin: 0;
}

.user-modal-form .modal-body {
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 17rem);
  padding-right: 1rem;
}

.user-modal-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.06);
  flex-shrink: 0;
}

.user-modal-tabs {
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.user-modal-tabs .nav-link {
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 800;
  color: #475467;
  background: rgba(15, 23, 42, 0.04);
}

.user-modal-tabs .nav-link.active {
  background: linear-gradient(135deg, #2d3fa3 0%, #3f4db8 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(45, 63, 163, 0.22);
}

.user-modal-tab-content {
  min-height: 320px;
}

#cursoModal .modal-dialog {
  max-width: min(1180px, calc(100vw - 2rem));
  margin: 1rem auto;
}

#cursoModal .modal-content {
  max-height: calc(100vh - 2rem);
}

.user-course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.user-course-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.06);
  background: rgba(255, 255, 255, 0.94);
}

.user-course-cover {
  aspect-ratio: 16 / 8;
  background: #eef2ff;
}

.user-course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-course-body {
  padding: 1rem;
}

.user-course-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.user-course-check .form-check-input {
  margin-top: 0.15rem;
}

.user-course-level {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.user-course-empty-state {
  padding: 1.2rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--muted);
}

.user-form-check {
  margin-top: 0.5rem;
}

.form-group.is-disabled {
  opacity: 0.5;
}

.user-form-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
}

@media (max-width: 1100px) {
  .stats-grid,
  .menu-grid,
  .course-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .admin-shell {
    grid-template-columns: 1fr;
    position: relative;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, calc(100vw - 44px));
    padding: 1rem;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    overflow-y: auto;
  }

  .admin-content {
    padding: 1rem;
  }

  .admin-shell.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .admin-shell.sidebar-open .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    z-index: 20;
  }

  .sidebar-close,
  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .login-body .app-shell {
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .login-page {
    grid-template-columns: 1fr;
  }

  .login-showcase,
  .login-panel {
    padding: 2rem;
  }

  .login-logo {
    max-width: 230px;
  }

  .module-page {
    overflow: hidden;
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learning-hero,
  .learning-layout {
    grid-template-columns: 1fr;
  }

  .learning-hero-media {
    max-height: 320px;
  }

  .learning-assessment-head {
    flex-direction: column;
  }

  .response-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .app-shell.container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .login-page {
    gap: 1rem;
  }

  .login-showcase,
  .login-panel,
  .menu-panel,
  .module-page,
  .stat-card,
  .user-form-card {
    border-radius: 24px;
    padding: 1.35rem;
  }

  .sidebar {
    padding: 1rem;
  }

  .sidebar-brand strong {
    font-size: 1.6rem;
  }

  .topbar h1 {
    font-size: 1.7rem;
  }

  .topbar-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .topbar-user-chip,
  .topbar-logout {
    width: 100%;
    justify-content: center;
  }

  .module-toolbar,
  .user-form-actions,
  .course-modules-header,
  .course-module-card-header,
  .course-module-row,
  .course-module-contents-head,
  .course-content-list-item,
  .learning-content-header,
  .learning-module-header,
  .learning-content-item,
  .learning-content-item-main,
  .learning-hero-top,
  .response-question-head,
  .response-option-item,
  .response-question-footer {
    flex-direction: column;
  }

  .module-primary-action,
  .module-secondary-action {
    width: 100%;
  }

  .user-course-grid {
    grid-template-columns: 1fr;
  }

  .course-module-remove {
    align-self: flex-end;
  }

  .course-module-list-actions {
    width: 100%;
    justify-content: flex-end;
    flex-direction: row;
    padding-left: 0;
    padding-top: 1rem;
    border-left: 0;
    border-top: 1px solid rgba(31, 41, 55, 0.08);
  }

  .course-content-actions {
    width: 100%;
    justify-content: flex-end;
    border-left: 0;
    border-top: 1px solid rgba(31, 41, 55, 0.08);
    padding-left: 0;
    padding-top: 0.85rem;
  }

  .course-module-inline,
  .course-content-inline {
    width: 100%;
    flex-wrap: wrap;
  }

  .course-module-list {
    gap: 0.65rem;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .learning-hero-body,
  .learning-main-panel,
  .learning-sidebar-panel {
    padding: 1.25rem;
  }

  .learning-content-link {
    white-space: normal;
  }

  .learning-comments-grid {
    grid-template-columns: 1fr;
  }

  .response-summary-grid {
    grid-template-columns: 1fr;
  }

  .user-modal-body {
    padding: 1.2rem;
  }

  .user-modal-title {
    font-size: 1.6rem;
    padding-right: 3rem;
  }

  .user-modal-form {
    max-height: calc(100vh - 1rem);
  }

  .user-modal-form .modal-body {
    max-height: calc(100vh - 14rem);
    padding-right: 0.35rem;
  }

  .course-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .course-card-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .learning-module-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .users-table-shell {
    padding: 0.85rem;
  }

  .users-table-area {
    overflow-x: auto;
    overflow-y: hidden;
  }

  .users-table {
    table-layout: auto;
    min-width: 760px;
  }

  .dataTables_wrapper .row:first-child > div,
  .dataTables_wrapper .row:last-child > div {
    width: 100%;
    max-width: 100%;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    text-align: left !important;
  }

  .dataTables_wrapper .dataTables_filter {
    margin-top: 0.75rem;
  }

  .comment-admin-card-head,
  .comment-admin-scope,
  .comment-admin-actions,
  .comment-admin-card-meta,
  .learning-comment-meta {
    align-items: flex-start;
  }

  #cursoModal .modal-dialog {
    max-width: calc(100vw - 0.75rem);
    margin: 0.375rem auto;
  }

  #cursoModal .modal-content {
    max-height: calc(100vh - 0.75rem);
  }

  .dataTables_wrapper .dataTables_paginate {
    margin-top: 0.9rem;
  }

  .login-logo-wrap {
    margin-bottom: 1rem;
  }

  .login-logo {
    max-width: 180px;
  }

  .login-badge,
  .login-panel-kicker {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }

  .login-input,
  .login-submit {
    height: 52px;
    border-radius: 16px;
  }

  .login-form {
    margin-top: 1.1rem;
  }
}

.diploma-body {
  min-height: 100vh;
  margin: 0;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(circle at top left, rgba(255, 215, 138, 0.28), transparent 30%),
    radial-gradient(circle at top right, rgba(45, 63, 163, 0.12), transparent 28%),
    #eef6fb;
  color: #22314a;
}

.diploma-body,
.diploma-body * {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.diploma-printbar {
  max-width: 1120px;
  margin: 0 auto 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.85rem;
}

.diploma-sheet {
  max-width: 1120px;
  margin: 0 auto;
}

.diploma-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.diploma-brand img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: #fff;
  border-radius: 22px;
  padding: 0.65rem;
  border: 1px solid rgba(203, 213, 225, 0.7);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.diploma-brand strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.diploma-card {
  position: relative;
  overflow: hidden;
  min-height: 780px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.98) 68%, rgba(241, 246, 253, 0.98)),
    rgba(255, 255, 255, 0.98);
  border-radius: 36px;
  border: 1px solid rgba(191, 203, 227, 0.9);
  box-shadow:
    0 30px 80px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.diploma-inner-glow {
  position: absolute;
  inset: 12px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(76, 107, 196, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(212, 183, 109, 0.12), transparent 34%);
  pointer-events: none;
}

.diploma-frame {
  position: absolute;
  inset: 22px;
  border: 2px solid rgba(45, 63, 163, 0.16);
  border-radius: 28px;
  pointer-events: none;
}

.diploma-frame-secondary {
  position: absolute;
  inset: 38px;
  border: 1px solid rgba(212, 183, 109, 0.45);
  border-radius: 22px;
  pointer-events: none;
}

.diploma-ornament {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  pointer-events: none;
  opacity: 0.8;
}

.diploma-ornament::before,
.diploma-ornament::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.diploma-ornament::before {
  inset: 0;
  border: 1px solid rgba(210, 180, 95, 0.35);
}

.diploma-ornament::after {
  inset: 16px;
  border: 1px solid rgba(45, 63, 163, 0.14);
}

.diploma-ornament-top-left {
  top: 34px;
  left: 34px;
  border-top: 3px solid rgba(45, 63, 163, 0.28);
  border-left: 3px solid rgba(210, 180, 95, 0.38);
}

.diploma-ornament-top-right {
  top: 34px;
  right: 34px;
  border-top: 3px solid rgba(45, 63, 163, 0.28);
  border-right: 3px solid rgba(210, 180, 95, 0.38);
}

.diploma-ornament-bottom-left {
  bottom: 34px;
  left: 34px;
  border-bottom: 3px solid rgba(45, 63, 163, 0.28);
  border-left: 3px solid rgba(210, 180, 95, 0.38);
}

.diploma-ornament-bottom-right {
  bottom: 34px;
  right: 34px;
  border-bottom: 3px solid rgba(45, 63, 163, 0.28);
  border-right: 3px solid rgba(210, 180, 95, 0.38);
}

.diploma-content {
  position: relative;
  z-index: 1;
  padding: 4rem 21rem 3.2rem 4.2rem;
}

.diploma-qr-corner {
  position: absolute;
  top: 4.2rem;
  right: 4.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.diploma-qr-caption {
  text-align: center;
  width: 168px;
}

.diploma-qr-caption span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diploma-qr-caption small {
  display: block;
  margin-top: 0.15rem;
  max-width: 170px;
  color: #52627d;
  font-size: 0.8rem;
  line-height: 1.3;
  word-break: break-word;
}

.diploma-overline {
  display: inline-flex;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(45, 63, 163, 0.08);
  color: #2d3fa3;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.diploma-content h1 {
  margin: 1.2rem 0 0.75rem;
  font-size: clamp(2.6rem, 4vw, 4.5rem);
  line-height: 1.05;
  color: #16263d;
}

.diploma-text,
.diploma-description {
  max-width: 860px;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.9;
  color: #52627d;
}

.diploma-description {
  margin-top: 0.65rem;
}

.diploma-highlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.diploma-highlight div,
.diploma-meta-item {
  padding: 1rem 1.15rem;
  border-radius: 22px;
  background: rgba(244, 248, 252, 0.95);
  border: 1px solid rgba(203, 213, 225, 0.75);
}

.diploma-highlight span,
.diploma-meta-item span {
  display: block;
  margin-bottom: 0.35rem;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diploma-highlight strong,
.diploma-meta-item strong {
  font-size: 1.15rem;
  color: #1f2d47;
}

.diploma-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.diploma-signature-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 3rem;
}

.diploma-validation-qr {
  flex: 0 0 auto;
  width: 168px;
  height: 168px;
  padding: 0.45rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(203, 213, 225, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.diploma-validation-qr img,
.diploma-validation-qr canvas,
#diploma-qrcode,
#diploma-qrcode img,
#diploma-qrcode canvas {
  display: block;
  width: 152px !important;
  height: 152px !important;
}

#diploma-qrcode {
  display: flex;
  align-items: center;
  justify-content: center;
}

.diploma-signature {
  min-width: 320px;
  text-align: center;
}

.diploma-signature-line {
  display: block;
  width: 100%;
  height: 2px;
  margin-bottom: 0.75rem;
  background: linear-gradient(90deg, rgba(45, 63, 163, 0.15), rgba(45, 63, 163, 0.7), rgba(45, 63, 163, 0.15));
}

.diploma-signature strong {
  display: block;
  color: #1f2d47;
}

.diploma-signature small {
  color: #64748b;
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .diploma-body {
    padding: 1rem 0.8rem;
  }

  .diploma-printbar {
    display: grid;
  }

  .diploma-highlight,
  .diploma-meta {
    grid-template-columns: 1fr;
  }

  .diploma-ornament,
  .diploma-frame-secondary {
    display: none;
  }

  .diploma-content {
    padding: 2rem 1.25rem;
  }

  .diploma-qr-corner {
    position: static;
    margin: 0 0 1rem auto;
  }

  .diploma-signature-row {
    justify-content: stretch;
  }

  .diploma-signature {
    min-width: 0;
    width: 100%;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 8mm;
  }

  .no-print {
    display: none !important;
  }

  .diploma-body {
    padding: 0;
    min-height: auto;
    background:
      radial-gradient(circle at top left, rgba(255, 215, 138, 0.28), transparent 30%),
      radial-gradient(circle at top right, rgba(45, 63, 163, 0.12), transparent 28%),
      #eef6fb;
  }

  .diploma-sheet {
    max-width: none;
    width: 100%;
  }

  .diploma-card {
    min-height: 185mm;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
    border-radius: 36px;
    border: 1px solid rgba(203, 213, 225, 0.65);
    page-break-inside: avoid;
  }

  .diploma-frame {
    inset: 18px;
  }

  .diploma-frame-secondary {
    inset: 30px;
  }

  .diploma-brand img,
  .diploma-validation-qr img,
  .diploma-validation-qr canvas {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .diploma-content {
    padding: 3.1rem 17.5rem 2.4rem 3.3rem;
  }

  .diploma-content h1 {
    font-size: 3.6rem;
  }

  .diploma-text,
  .diploma-description {
    max-width: 760px;
  }

  .diploma-highlight {
    gap: 0.8rem;
  }

  .diploma-meta {
    gap: 0.8rem;
  }

  .diploma-signature-row {
    margin-top: 2.2rem;
  }
}
.agenda-page {
    display: grid;
    gap: 2rem;
}

.agenda-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
}

.agenda-calendar-card,
.agenda-sidebar-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(168, 189, 255, 0.36);
    border-radius: 2rem;
    box-shadow: 0 24px 60px rgba(12, 33, 79, 0.12);
    padding: 1.6rem;
}

.agenda-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.agenda-card-head h2 {
    margin: 0 0 0.35rem;
    color: #20314f;
    font-size: 2rem;
    font-weight: 800;
}

.agenda-card-head p {
    margin: 0;
    color: #667a99;
    font-size: 1.45rem;
    line-height: 1.6;
}

#agendaCalendar .fc {
    --fc-border-color: rgba(172, 190, 234, 0.35);
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: rgba(230, 236, 255, 0.42);
    --fc-today-bg-color: rgba(45, 63, 163, 0.08);
    --fc-button-bg-color: #2d3fa3;
    --fc-button-border-color: #2d3fa3;
    --fc-button-hover-bg-color: #24358f;
    --fc-button-hover-border-color: #24358f;
    --fc-button-active-bg-color: #18286e;
    --fc-button-active-border-color: #18286e;
    --fc-event-text-color: #ffffff;
}

#agendaCalendar .fc-toolbar-title {
    color: #20314f;
    font-size: 2rem;
    font-weight: 800;
}

#agendaCalendar .fc-button {
    border-radius: 1.1rem;
    box-shadow: none;
    font-weight: 700;
}

#agendaCalendar .fc-daygrid-day-frame,
#agendaCalendar .fc-timegrid-col-frame,
#agendaCalendar .fc-timegrid-col-bg,
#agendaCalendar .fc-timegrid-slot-lane,
#agendaCalendar .fc-timegrid-col {
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

#agendaCalendar .fc-daygrid-day:hover .fc-daygrid-day-frame,
#agendaCalendar .fc-timegrid-col:hover .fc-timegrid-col-frame,
#agendaCalendar .fc-timegrid-col:hover .fc-timegrid-col-bg,
#agendaCalendar .fc-timegrid-slot:hover .fc-timegrid-slot-lane {
    background: rgba(45, 63, 163, 0.06);
    box-shadow: inset 0 0 0 1px rgba(45, 63, 163, 0.12);
}

#agendaCalendar .fc-event {
    border-radius: 1rem;
    border: 0;
    box-shadow: 0 10px 18px rgba(24, 40, 110, 0.14);
}

#agendaCalendar .fc-event-main {
    font-weight: 700;
}

.agenda-side-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.3rem;
}

.agenda-stat {
    background: linear-gradient(180deg, rgba(240, 244, 255, 0.88), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(176, 190, 232, 0.28);
    border-radius: 1.4rem;
    padding: 1rem 1.1rem;
}

.agenda-stat strong {
    display: block;
    color: #20314f;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.45rem;
}

.agenda-stat span {
    color: #677b98;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.agenda-event-list {
    display: grid;
    gap: 1rem;
}

.agenda-event-empty {
    border: 1px dashed rgba(166, 183, 227, 0.7);
    border-radius: 1.6rem;
    padding: 1.8rem;
    background: rgba(248, 250, 255, 0.72);
}

.agenda-event-empty h3 {
    margin: 0 0 0.5rem;
    color: #20314f;
    font-size: 1.8rem;
    font-weight: 800;
}

.agenda-event-empty p {
    margin: 0;
    color: #6b7f9e;
    font-size: 1.45rem;
    line-height: 1.6;
}

.agenda-event-item {
    display: grid;
    grid-template-columns: 0.5rem minmax(0, 1fr);
    background: rgba(248, 250, 255, 0.92);
    border: 1px solid rgba(176, 191, 235, 0.36);
    border-radius: 1.6rem;
    overflow: hidden;
}

.agenda-event-accent {
    min-height: 100%;
}

.agenda-event-content {
    padding: 1.2rem 1.3rem 1.3rem;
    display: grid;
    gap: 0.45rem;
}

.agenda-event-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.agenda-event-top strong {
    color: #20314f;
    font-size: 1.35rem;
    font-weight: 800;
    white-space: nowrap;
}

.agenda-event-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.agenda-event-type.is-live {
    background: rgba(45, 63, 163, 0.12);
    color: #2d3fa3;
}

.agenda-event-type.is-general {
    background: rgba(16, 149, 173, 0.12);
    color: #0f7c8d;
}

.agenda-event-content h3 {
    margin: 0;
    color: #20314f;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.35;
}

.agenda-event-content p,
.agenda-event-content small {
    margin: 0;
    color: #6a7d99;
    font-size: 1.35rem;
    line-height: 1.55;
}

.agenda-event-link {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #2d3fa3;
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
}

.agenda-event-link:hover {
    color: #1f2f84;
    text-decoration: none;
}

.agenda-modal-content {
    border: 0;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(12, 33, 79, 0.22);
}

.agenda-modal-header {
    background: linear-gradient(135deg, #1a2d86, #3247bf);
    color: #ffffff;
    padding: 1.5rem 1.8rem;
}

.agenda-modal-header .close {
    color: #ffffff;
    opacity: 1;
    text-shadow: none;
}

.agenda-modal-header .modal-title {
    font-size: 2.1rem;
    font-weight: 800;
}

.agenda-modal-body {
    padding: 1.8rem 1.8rem 1rem;
    background: linear-gradient(180deg, rgba(248, 250, 255, 0.95), #ffffff);
}

.agenda-modal-footer {
    padding: 1.2rem 1.8rem 1.6rem;
    border-top: 1px solid rgba(194, 206, 237, 0.35);
}

.agenda-modal-footer-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.agenda-footer-actions-right {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.agenda-footer-action {
    height: auto;
    min-height: 4.3rem;
    padding: 0.9rem 1.1rem;
    border-radius: 1.2rem;
}

.agenda-color-input {
    height: 4.6rem;
    padding: 0.4rem 0.6rem;
}

.agenda-checkbox-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.agenda-checkbox-row label {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    color: #20314f;
    font-size: 1.45rem;
    font-weight: 700;
}

.agenda-event-popup {
    text-align: left;
    display: grid;
    gap: 0.8rem;
}

.agenda-event-popup p {
    margin: 0;
    color: #32455f;
    font-size: 1.45rem;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .agenda-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .agenda-calendar-card,
    .agenda-sidebar-card {
        padding: 1.3rem;
        border-radius: 1.6rem;
    }

    .agenda-card-head h2 {
        font-size: 1.8rem;
    }

    .agenda-side-stats {
        grid-template-columns: 1fr;
    }

    .agenda-modal-body {
        padding: 1.4rem 1.4rem 0.8rem;
    }

    .agenda-modal-footer {
        padding: 1rem 1.4rem 1.4rem;
    }

    .agenda-modal-footer-split,
    .agenda-footer-actions-right {
        width: 100%;
        justify-content: stretch;
    }

    .agenda-footer-actions-right > * ,
    .agenda-modal-footer-split > div,
    .agenda-modal-footer-split > button {
        width: 100%;
    }

    #agendaCalendar .fc-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
    }
}
.participant-selection-message {
    border: 1px dashed rgba(166, 184, 227, 0.72);
    border-radius: 1.6rem;
    padding: 1.3rem 1.4rem;
    background: rgba(248, 250, 255, 0.78);
    color: #647999;
    font-size: 1.45rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.presential-participant-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.presential-participant-card {
    border: 1px solid rgba(181, 196, 234, 0.46);
    border-radius: 1.6rem;
    background: rgba(255, 255, 255, 0.92);
    padding: 1.2rem 1.25rem;
    display: grid;
    gap: 0.7rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.presential-participant-card.is-selected {
    border-color: rgba(45, 63, 163, 0.42);
    box-shadow: 0 14px 24px rgba(32, 51, 125, 0.12);
    transform: translateY(-1px);
}

.presential-participant-card.is-hidden-by-filter {
    display: none;
}

.cliente-colaboradores-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cliente-colaboradores-header h6 {
    margin: 0.25rem 0 0.35rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: #243043;
}

.cliente-colaboradores-header p {
    margin: 0;
    color: #5d6b82;
}

.cliente-colaborador-shell {
    padding: 0.85rem 0.85rem 1rem;
}

.cliente-colaborador-shell .dataTables_filter {
    margin-bottom: 0.85rem;
}

.cliente-colaborador-shell .dataTables_filter label {
    width: 100%;
    justify-content: flex-end;
}

.cliente-colaborador-shell .dataTables_filter input {
    width: 18rem !important;
    max-width: 100%;
}

#clienteModal .cliente-modal-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.participant-chip-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .presential-participant-grid {
        grid-template-columns: 1fr;
    }

    .cliente-colaboradores-header {
        flex-direction: column;
        align-items: stretch;
    }

    .cliente-colaborador-shell .dataTables_filter label {
        justify-content: flex-start;
    }

    .cliente-colaborador-shell .dataTables_filter input {
        width: 100% !important;
    }
}
