/* =========================================================
   1) RESET / BASE
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html,
body {
  min-height: 100%;
}

body {
  line-height: 1.4;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  font: inherit;
}

input,
select,
textarea,
button {
  font-size: 16px;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

/* =========================================================
   2) TOKENS / VARIÁVEIS
========================================================= */
:root {
  --bg-dark: #000;
  --bg-dark-soft: #0b0b0b;
  --bg-dark-input: #111;
  --text-light: #fff;
  --text-muted: #cfcfcf;
  --text-soft: #bdbdbd;
  --purple: #a855f7;
  --purple-hover: #9333ea;
  --purple-gradient: linear-gradient(90deg, #9d4edd, #c056f0);
  --blue: #3b82f6;

  --bg-light: #f1f5f9;
  --card-light: #fff;
  --text-dark: #0f172a;
  --text-dark-soft: #475569;
  --border-light: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.08);
  --shadow-light: 0 4px 18px rgba(0, 0, 0, 0.08);

  --success-bg: #dcfce7;
  --success-text: #166534;
  --error-bg: #fee2e2;
  --error-text: #991b1b;
  --info-bg: #dbeafe;
  --info-text: #1d4ed8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;

  --container: 1280px;
}

/* =========================================================
   3) UTILITÁRIOS GLOBAIS
========================================================= */
.page-container,
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.message {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
}

.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.error {
  background: var(--error-bg);
  color: var(--error-text);
}

.empty-state {
  color: #64748b;
  padding: 8px 0;
}

.top-actions {
  margin-bottom: 16px;
}

.back-link {
  display: inline-block;
  color: var(--info-text);
  font-weight: bold;
}

.full-width {
  grid-column: 1 / -1;
}

/* =========================================================
   4) COMPONENTES REAPROVEITÁVEIS - TEMA ESCURO
========================================================= */
.public-page,
.public-page html,
.public-page body {
  background: var(--bg-dark);
  color: var(--text-light);
}

.public-page {
  background: #000;
  color: #fff;
  min-height: 100vh;
}

.site-header {
  width: 100%;
  border-bottom: 1px solid var(--border-dark);
  background: black;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.site-logo__img {
  height: 60px;
  width: auto;
  border-radius: 8px;
}

.site-logo__icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.site-logo__text {
  font-size: 18px;
  font-weight: 800;
}

.site-logo__text--blue {
  color: orange;
  font-size: 30px;
}

.site-logo__text--purple {
  color: var(--purple);
  font-size: 30px;
}

.site-nav,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: 0.2s ease;
}

.btn--full,
.btn-full {
  width: 100%;
}

.btn--dark,
.btn-dark {
  background: #0a0a0a;
  color: #fff;
  border: 1px solid var(--border-dark);
}

.btn--dark:hover,
.btn-dark:hover {
  background: #151515;
}

.btn--purple,
.btn-purple {
  background: var(--purple);
  color: #fff;
  border: 1px solid transparent;
}

.btn--purple:hover,
.btn-purple:hover {
  background: var(--purple-hover);
}

.btn-outline {
  background: #0a0a0a;
  color: #dbeafe;
  border: 1px solid var(--border-dark);
}

.btn-outline:hover {
  background: #151515;
}

/* =========================================================
   5) FORMULÁRIOS ESCUROS
========================================================= */
.form-card {
  width: 100%;
  max-width: 500px;
  background: var(--bg-dark-soft);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 32px;
}

.form-card__title,
.form-card h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.form-card__subtitle,
.form-card p {
  color: var(--text-soft);
  margin-bottom: 24px;
}

.form-field,
.form-group {
  margin-bottom: 16px;
}

.form-field__label,
.form-label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #e5e5e5;
}

.form-field__input,
.form-input {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-dark-input);
  color: #fff;
  padding: 0 14px;
}

.form-field__input:focus,
.form-input:focus {
  outline: none;
  border-color: var(--purple);
}

.form-feedback--error,
.form-error {
  margin-top: 14px;
  color: #f87171;
  font-size: 14px;
}

.form-feedback--success,
.form-success {
  margin-top: 14px;
  color: #4ade80;
  font-size: 14px;
}

.form-footer {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.form-footer a {
  color: var(--purple);
  font-weight: 700;
}

/* Campo de senha com ícone */
.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  width: 100%;
  padding-right: 45px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.password-toggle svg {
  opacity: 0.7;
  transition: 0.2s;
}

.password-toggle:hover svg {
  opacity: 1;
}

/* =========================================================
   6) HOME / INDEX
========================================================= */
.home-page {
  background: var(--bg-dark);
  color: var(--text-light);
}

.home-hero,
.hero {
  text-align: center;
  padding: 60px 24px 180px;
}

.home-hero__container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.home-hero__title,
.hero h1 {
  font-size: 72px;
  line-height: 1.05;
  font-weight: 900;
  max-width: 1100px;
  margin: 0 auto;
}

.home-hero__subtitle,
.hero p {
  max-width: 620px;
  margin: 24px auto 0;
  color: rgba(186, 230, 253, 0.85);
  font-size: 24px;
  line-height: 1.5;
}

/* ========================================================= 
   HOME SPLIT (Imagem + Texto em caixa)
========================================================= */

.home-hero-split {
  background: #000;
  max-height: calc(100vh - 72px);
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: top;
}

.home-hero-split__container {
  max-height: calc(100vh - 72px);
  width: 100vw;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: top;
  gap: 60px;
}

.home-hero-split__image {
  flex: 1;
  display: flex;
  justify-content: top;
  height: 80%;
}

.home-hero-split__image img {
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
}

.home-hero-split__content-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: top;
}

.home-hero-split__content-box {
  width: 100%;
  max-width: 500px;

  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 32px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.home-hero-split__content-box h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.home-hero-split__content-box p {
  font-size: 17px;
  color: #cfcfcf;
  line-height: 1.6;
}

.home-hero-split__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


@media (max-width: 768px) {
  .home-hero-split__container {
    flex-direction: column;
    gap: 32px;
  }

  .home-hero-split__content-box {
    text-align: center;
  }
}

/* ========================================================= */



.home-hero__actions {
  margin-top: 36px;
}

.home-stats {
  margin: 56px auto 0;
  width: 100%;
  max-width: 760px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 18px;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(168, 85, 247, 0.18);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--purple);
}

.stat-label {
  margin-top: 10px;
  color: rgba(186, 230, 253, 0.75);
  font-size: 14px;
}

.modules-section {
  padding: 0 24px 80px;
}

.modules-wrapper {
  max-width: var(--container);
  margin: 0 auto;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 24px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.module-card {
  background: var(--bg-dark-soft);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

.module-top {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.module-purple {
  background: linear-gradient(135deg, #2e064b, #581c87);
}

.module-indigo {
  background: linear-gradient(135deg, #1e1b4b, #3730a3);
}

.module-green {
  background: linear-gradient(135deg, #052e16, #166534);
}

.module-pink {
  background: linear-gradient(135deg, #4a044e, #be185d);
}

.module-content {
  padding: 18px;
}

.module-tag {
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.module-title {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 800;
}

.module-text {
  margin-top: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 14px;
}

/* =========================================================
   7) LOGIN / CADASTRO
========================================================= */
.login-page,
.register-page {
  background: var(--bg-dark);
  color: var(--text-light);
}

.page-center,
.login-page,
.register-page {
  min-height: calc(100vh - 72px);
}

.login-page .page-center,
.register-page .page-center,
.login-page main,
.register-page main {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.login-page .form-card,
.register-page .form-card {
  margin: 0 auto;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}


/* =========================================================
  7.1) AUTH SPLIT (Cadastro / Login)
========================================================= */

.auth-split {
  background: #000;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.auth-split__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.auth-split__image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.auth-split__image img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
}

.auth-split__form {
  flex: 1;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .auth-split__container {
    flex-direction: column;
    gap: 32px;
  }
  .auth-split__image img {
    max-width: 320px;
  }
}



/* =========================================================
   8) CURSOS / CURSO / PERFIL PÚBLICOS
========================================================= */
.courses-page,
.course-page,
.profile-page {
  background: var(--bg-dark);
  color: var(--text-light);
}

.courses-page__content,
.course-page__content,
.profile-page__content,
.courses-page main,
.course-page main,
.profile-page main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.courses-page__title,
.course-title,
.profile-page__title {
  font-size: 42px;
  margin-bottom: 12px;
}

.courses-page__subtitle,
.course-description,
.profile-page__subtitle {
  color: var(--text-muted);
  line-height: 1.8;
}

.courses-feedback,
.course-feedback,
.profile-feedback {
  color: #ff6464;
  min-height: 22px;
  margin-bottom: 20px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.course-card {
  background: var(--bg-dark-soft);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  padding: 24px;
}

.course-card__title {
  font-size: 22px;
  margin-bottom: 12px;
}

.course-card__text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.course-card__meta {
  color: #a6a6a6;
  font-size: 13px;
  margin-bottom: 18px;
}

.course-header {
  margin-bottom: 26px;
}

.course-meta {
  margin-top: 16px;
  color: #9f9f9f;
  font-size: 14px;
}

/* =========================================================
   9) ÁREA ADMIN - BASE
========================================================= */
.admin-page {
  background: var(--bg-dark);
  color: var(--text-dark);
  min-height: 100vh;
}

.admin-page a {
  color: inherit;
}

.admin-page header {
  background: var(--text-dark);
  color: white;
  padding: 20px 24px;
}

.admin-page header h1 {
  margin: 0;
  font-size: 24px;
}

.admin-page main {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px;
}

.admin-page label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 14px;
}

.admin-page input,
.admin-page textarea,
.admin-page select,
.admin-page button {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  font-size: 14px;
  box-sizing: border-box;
}

.admin-page textarea {
  min-height: 100px;
  resize: vertical;
}

.admin-page button {
  background: #2563eb;
  color: white;
  border: none;
}

.admin-page button:hover {
  background: #1d4ed8;
}

.admin-page .secondary {
  background: #475569;
}

.admin-page .secondary:hover {
  background: #334155;
}

.admin-page .danger {
  background: #dc2626;
}

.admin-page .danger:hover {
  background: #b91c1c;
}

.admin-page .card {
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-light);
  padding: 20px;
  margin-bottom: 22px;
}

.admin-page .card h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.admin-page .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-page .actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.admin-page .badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}

/* =========================================================
   10) ADMIN DASHBOARD
========================================================= */

.admin-dashboard-page {
  background: black;
  color: var(--text-light);
  margin-bottom: 10px;
}

.admin-dashboard-page .site-header {
  background: black;
  border-bottom: 0px solid white;
  margin-bottom: 10px;
}

.admin-dashboard-page main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  background: black;
  margin-bottom: 10px;
}

.admin-page__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-page__title {
  font-size: 42px;
  margin-bottom: 12px;
}

.admin-page__subtitle {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.admin-card {
  background: var(--bg-dark-soft);
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  padding: 24px;
}

.admin-card__title {
  margin-bottom: 12px;
  font-size: 20px;
}

.admin-card__text {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* =========================================================
  10.1) ADMIN DASHBOARD - NOVO LAYOUT
========================================================= */

.admin-dashboard-page {
  background: black;
  color: #fff;
  min-height: 100vh;
  margin-bottom: 10px;
}

.admin-dashboard-main {
  padding: 40px 24px 80px;
}

.admin-dashboard-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.admin-dashboard-hero {
  margin-bottom: 28px;
}

.admin-dashboard-title {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 60px;
  line-height: 1.08;
  margin-bottom: 14px;
}

.admin-dashboard-subtitle {
  color: #cfcfcf;
  font-size: 18px;
  line-height: 1.7;
  max-width: 850px;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.admin-metric-card {
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-metric-label {
  font-size: 14px;
  color: #bdbdbd;
  margin-bottom: 10px;
}

.admin-metric-value {
  margin-left: 40px;
  font-size: 30px;
  line-height: 1;
  color: #a855f7;
  font-weight: 800;
}

.admin-management-section {
  margin-top: 10px;
}

.admin-management-grid {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  grid-template-columns: auto;
  /* grid-template-columns: repeat(1, 1fr); */
  gap: 18px;
}

.admin-management-card {
  display:flex;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 60px;
  transition: 0.2s ease;
  justify-content: left;
  align-items: center;
  height: 100px;
  width: 800px;
}

.admin-management-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.45);
  background: #111;
}

.admin-management-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #fff;
}

.admin-management-card p {
  color: #cfcfcf;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 1200px) {
  .admin-management-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-dashboard-title {
    font-size: 34px;
  }

  .admin-dashboard-subtitle {
    font-size: 16px;
  }

  .admin-metrics-grid,
  .admin-management-grid {
    grid-template-columns: 1fr;
  }
}



/* =========================================================
   11) ADMIN CURSOS
========================================================= */
.admin-courses-page .checkbox-row {
  display: flex;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.admin-courses-page .checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-courses-page .checkbox-item input {
  width: auto;
  margin: 0;
}

.admin-courses-page .courses-grid {
  display: grid;
  gap: 16px;
}

.admin-courses-page .course-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  color: var(--text-dark);
}

.admin-courses-page .course-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  flex-wrap: wrap;
}

.admin-courses-page .course-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 6px;
}

.admin-courses-page .course-description {
  color: #64748b;
  margin-bottom: 10px;
  white-space: pre-wrap;
}

.admin-courses-page .course-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.admin-courses-page .badge-active {
  background: var(--success-bg);
  color: var(--success-text);
}

.admin-courses-page .badge-inactive {
  background: var(--error-bg);
  color: var(--error-text);
}

.admin-courses-page .badge-published {
  background: var(--info-bg);
  color: var(--info-text);
}

.admin-courses-page .badge-draft {
  background: #e2e8f0;
  color: #334155;
}

.admin-courses-page .course-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* =========================================================
   12) ADMIN MÓDULOS
========================================================= */
.admin-modules-page .modules-grid {
  display: grid;
  gap: 16px;
}

.admin-modules-page .module-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  color: var(--text-dark);
}

.admin-modules-page .module-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  flex-wrap: wrap;
}

.admin-modules-page .module-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 6px;
}

.admin-modules-page .module-meta {
  color: var(--text-dark-soft);
  margin-bottom: 10px;
  line-height: 1.6;
}

.admin-modules-page .badge {
  background: var(--info-bg);
  color: var(--info-text);
}

.admin-modules-page .module-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* =========================================================
   13) ADMIN AULAS
========================================================= */
.admin-lessons-page .lessons-grid {
  display: grid;
  gap: 16px;
}

.admin-lessons-page .lesson-card {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.admin-lessons-page .lesson-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  flex-wrap: wrap;
}

.admin-lessons-page .lesson-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 6px;
}

.admin-lessons-page .lesson-meta {
  color: var(--text-dark-soft);
  margin-bottom: 10px;
  line-height: 1.6;
  word-break: break-word;
}

.admin-lessons-page .badge {
  background: #ede9fe;
  color: #6d28d9;
  margin-right: 8px;
}

.admin-lessons-page .lesson-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-lessons-page .links-block a {
  display: inline-block;
  margin-right: 10px;
  color: var(--info-text);
  font-weight: bold;
  font-size: 14px;
}

.admin-lessons-page .links-block a:hover {
  text-decoration: underline;
}

/* =========================================================
   14) ADMIN MATRÍCULAS
========================================================= */
.admin-enrollments-page .page-intro {
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-light);
  padding: 20px;
  margin-bottom: 22px;
}

.admin-enrollments-page .page-intro h2 {
  margin: 0 0 8px 0;
}

.admin-enrollments-page .page-intro p {
  margin: 0;
  color: #64748b;
}

.admin-enrollments-page .row {
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.admin-enrollments-page .filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-enrollments-page .table-wrapper {
  overflow-x: auto;
}

.admin-enrollments-page table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

.admin-enrollments-page th,
.admin-enrollments-page td {
  border-bottom: 1px solid #e5e7eb;
  padding: 12px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.admin-enrollments-page th {
  background: #f8fafc;
}

.admin-enrollments-page .status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}

.admin-enrollments-page .status-active {
  background: var(--success-bg);
  color: var(--success-text);
}

/* =========================================================
   15) ÁREA ALUNO - DASHBOARD
========================================================= */
.student-page {
  background: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
}

.student-page header {
  background: var(--text-dark);
  color: white;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.student-page header h1 {
  margin: 0;
  font-size: 24px;
}

.student-page main {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px;
}

.logoutButton {
  background: #dc2626;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
}

.logoutButton:hover {
  background: #b91c1c;
}

.welcome-card {
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-light);
  padding: 24px;
  margin-bottom: 24px;
}

.welcome-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 8px;
}

.welcome-subtitle {
  color: #64748b;
  font-size: 16px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.nav-card {
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-light);
  padding: 20px;
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  transition: 0.2s;
}

.nav-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  background: #f8fbff;
}

.nav-card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.nav-card-text {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

/* =========================================================
   16) LISTA DE AULAS
========================================================= */
.lessons-page {
  background: #f5f7fb;
  color: var(--text-dark);
}

.lessons-page main {
  max-width: 960px;
  margin: 30px auto;
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
}

.lessons-page .actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.lessons-page .btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  background: #2563eb;
  color: white;
}

.lessons-page .btn:hover {
  background: #1d4ed8;
}

.lessons-page .lesson-card {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
}

.lessons-page .lesson-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-dark);
}

.lessons-page .lesson-order {
  color: #64748b;
  font-size: 14px;
}

/* =========================================================
   17) PLAYER / AULA
========================================================= */
.lesson-page {
  background: var(--bg-light);
  color: var(--text-dark);
}

.lesson-page .page {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 20px;
  align-items: start;
}

.lesson-page .main-content {
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-light);
  padding: 20px;
}

.lesson-page .sidebar {
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-light);
  padding: 18px;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.lesson-page .top-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.lesson-page .btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  font-size: 14px;
}

.lesson-page .btn:hover {
  background: #1d4ed8;
}

.lesson-page .btn-secondary {
  background: #475569;
}

.lesson-page .btn-secondary:hover {
  background: #334155;
}

.lesson-page .video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
}

.lesson-page .video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.lesson-page .lesson-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 8px 0;
}

.lesson-page .lesson-meta {
  color: #64748b;
  margin-bottom: 20px;
  font-size: 14px;
}

.lesson-page .section {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.lesson-page .pdf-link {
  color: var(--info-text);
  font-weight: bold;
}

.lesson-page .pdf-link:hover {
  text-decoration: underline;
}

.lesson-page .sidebar-title {
  margin: 0 0 14px 0;
  font-size: 20px;
}

.lesson-page .lesson-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lesson-page .lesson-item {
  display: block;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px;
  color: var(--text-dark);
  background: #fff;
  transition: 0.2s;
}

.lesson-page .lesson-item:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.lesson-page .lesson-item.active {
  border-color: #2563eb;
  background: #dbeafe;
}

.lesson-page .lesson-item-order {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.lesson-page .lesson-item-title {
  font-size: 15px;
  font-weight: bold;
}

.lesson-page .empty-video {
  color: white;
  padding: 20px;
}

.lesson-page .nav-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================================
   18) RESPONSIVO
========================================================= */
@media (max-width: 1100px) {
  .home-hero__title,
  .hero h1 {
    font-size: 54px;
  }

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

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

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

@media (max-width: 1000px) {
  .lesson-page .page {
    grid-template-columns: 1fr;
  }

  .lesson-page .sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .site-header__inner {
    min-height: 72px;
    height: auto;
    padding: 16px 0;
    flex-direction: column;
    gap: 16px;
  }

  .site-nav,
  .nav-actions {
    justify-content: center;
  }

  .home-hero,
  .hero {
    padding-top: 48px;
    padding-bottom: 20px;
  }

  .home-hero__title,
  .hero h1 {
    font-size: 38px;
  }

  .home-hero__subtitle,
  .hero p {
    font-size: 18px;
  }

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

  .stat-item {
    border-right: 1px solid rgba(168, 85, 247, 0.18);
    border-bottom: 1px solid rgba(168, 85, 247, 0.18);
  }

  .stat-item:nth-child(2n) {
    border-right: none;
  }

  .stat-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .modules-grid,
  .courses-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .section-title,
  .courses-page__title,
  .course-title,
  .profile-page__title,
  .admin-page__title {
    font-size: 32px;
  }

  .form-card {
    padding: 24px;
  }

  .admin-enrollments-page .filter-row,
  .admin-enrollments-page .row,
  .admin-page .row {
    grid-template-columns: 1fr;
  }
}



/* =========================================================
   STUDENT AREA MASTER
========================================================= */

.student-page {
  background: #000;
  min-height: 100vh;
  color: #fff;
}

.student-top-header {
  background: #07122c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.student-main {
  background: #000;
  min-height: calc(100vh - 72px);
  padding: 36px 24px 80px;
}

.student-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.student-page-title {
  text-align: center;
  color: #fff;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 28px;
}

.student-card {
  background: #f3f4f6;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  padding: 24px;
  margin-bottom: 22px;
  color: #0f172a;
}

.student-card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #0f172a;
  font-size: 24px;
}

.student-card p {
  color: #334155;
  line-height: 1.7;
}

.student-message {
  margin-bottom: 18px;
}

.student-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.student-profile-item {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  padding: 14px;
}

.student-profile-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.student-profile-value {
  font-size: 15px;
  color: #0f172a;
}

.student-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.student-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 14px;
  color: #0f172a;
}

.student-form input,
.student-form textarea,
.student-form select,
.student-form button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  box-sizing: border-box;
}

.student-form .actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.student-form button {
  background: #2563eb;
  color: #fff;
  border: none;
}

.student-form button:hover {
  background: #1d4ed8;
}

.student-form .secondary {
  background: #475569;
}

.student-form .secondary:hover {
  background: #334155;
}



/* =========================================================
   STUDENT COURSE PAGE (estilo Udemy)
========================================================= */

.student-course-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.student-course-player {
  background: #111827;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.student-course-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.student-course-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.student-course-content {
  background: #f3f4f6;
  padding: 24px;
  color: #0f172a;
}

.student-course-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.student-course-description {
  color: #334155;
  line-height: 1.8;
}

.student-course-sidebar {
  background: #f8fafc;
  border-radius: 18px;
  padding: 18px;
  color: #0f172a;
  border: 1px solid #dbe3ef;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  position: sticky;
  top: 20px;
}

.student-course-sidebar h3 {
  margin: 0 0 14px 0;
  font-size: 22px;
}

.student-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  margin-top: 14px;
}

.student-section:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.student-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.student-lesson-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.student-lesson-item {
  display: block;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dbe3ef;
  color: #0f172a;
  transition: 0.2s ease;
}

.student-lesson-item:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.student-lesson-item.active {
  background: #dbeafe;
  border-color: #2563eb;
}

.student-lesson-item-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.student-lesson-item-meta {
  font-size: 13px;
  color: #64748b;
}

@media (max-width: 960px) {
  .student-course-layout {
    grid-template-columns: 1fr;
  }

  .student-course-sidebar {
    position: static;
    max-height: none;
  }

  .student-profile-grid,
  .student-form .row {
    grid-template-columns: 1fr;
  }
}





/* =========================================================
   ADMIN MANAGEMENT PAGES
========================================================= */

.admin-top-header {
  background: black;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-management-main {
  background: #000;
  min-height: calc(100vh - 72px);
  /*padding: 36px 24px 80px;*/
}

.admin-management-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.admin-management-title {
  text-align: center;
  color: #fff;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 28px;
}

.admin-management-main .card {
  background: #f3f4f6;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 22px;
}

.admin-management-main .card h2 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #0f172a;
  font-size: 24px;
}

.admin-management-main .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-management-main label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 14px;
  color: #0f172a;
}

.admin-management-main input,
.admin-management-main textarea,
.admin-management-main select,
.admin-management-main button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  box-sizing: border-box;
}

.admin-management-main textarea {
  min-height: 100px;
  resize: vertical;
}

.admin-management-main .actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.admin-management-main button {
  background: #2563eb;
  color: white;
  border: none;
  cursor: pointer;
}

.admin-management-main button:hover {
  background: #1d4ed8;
}

.admin-management-main .secondary {
  background: #475569;
}

.admin-management-main .secondary:hover {
  background: #334155;
}

.admin-management-main .danger {
  background: #dc2626;
}

.admin-management-main .danger:hover {
  background: #b91c1c;
}

.admin-management-main .message {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 8px;
}

.admin-management-main .success {
  background: #dcfce7;
  color: #166534;
}

.admin-management-main .error {
  background: #fee2e2;
  color: #991b1b;
}

/* listas empilhadas e com largura total */
.admin-list-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-list-card {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  padding: 20px;
  background: #fff;
}

.admin-list-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-list-card-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.admin-list-card-text {
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
}

.admin-list-card-meta {
  margin-top: 12px;
  color: #334155;
  font-size: 15px;
  line-height: 1.8;
}

.admin-list-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.admin-list-card-actions button {
  min-width: 120px;
}

.admin-soft-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
}

.admin-soft-badge.blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.admin-soft-badge.green {
  background: #dcfce7;
  color: #166534;
}

.admin-soft-badge.gray {
  background: #e2e8f0;
  color: #334155;
}

.admin-soft-badge.purple {
  background: #ede9fe;
  color: #6d28d9;
}

/* tabela de cadastros */
.admin-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #dbe3ef;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.admin-table thead th {
  background: #eaf1fb;
  color: #0f172a;
  font-size: 14px;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid #dbe3ef;
}

.admin-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f7;
  color: #1e293b;
  font-size: 14px;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #f8fbff;
}

.admin-table-email {
  color: #334155;
  font-weight: 600;
}

.admin-table-role {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.admin-table-role.admin {
  background: #ede9fe;
  color: #6d28d9;
}

.admin-table-role.student {
  background: #dbeafe;
  color: #1d4ed8;
}

.admin-table-status {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.admin-table-status.active {
  background: #dcfce7;
  color: #166534;
}

.admin-table-status.inactive {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 900px) {
  .admin-management-title {
    font-size: 34px;
  }

  .admin-management-main .row {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    min-height: 72px;
    height: auto;
    padding: 16px 0;
    flex-direction: column;
    gap: 16px;
  }

  .site-nav {
    justify-content: center;
  }
}



.admin-header {
  height: 76px;
  background: #000000;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
}

.admin-header-left,
.admin-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header-right {
  justify-content: flex-end;
}

.admin-header-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
}

.header-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  background: transparent;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition: 0.2s ease;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.danger-btn {
  border-color: rgba(220, 38, 38, 0.5);
  width: 50px;
}

.admin-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.page-toolbar {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
}

.page-toolbar h2 {
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.page-toolbar p {
  color: #6b7280;
}

.primary-btn,
.secondary-btn,
.action-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.primary-btn {
  background: #2563eb;
  color: #ffffff;
}

.primary-btn:hover {
  background: #1d4ed8;
}

.secondary-btn {
  background: #eef2f7;
  color: #111827;
}

.secondary-btn:hover {
  background: #e5eaf1;
}

.action-btn {
  background: #f3f4f6;
  color: #111827;
}

.action-btn:hover {
  background: #e5e7eb;
}

.action-btn.edit {
  background: #dbeafe;
  color: #1d4ed8;
}

.action-btn.edit:hover {
  background: #bfdbfe;
}

.action-btn.delete {
  background: #fee2e2;
  color: #b91c1c;
}

.action-btn.delete:hover {
  background: #fecaca;
}

.action-btn.enrollment {
  background: #ede9fe;
  color: #6d28d9;
}

.action-btn.enrollment:hover {
  background: #ddd6fe;
}

.feedback {
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.feedback.success {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.feedback.error {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.hidden {
  display: none !important;
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.admin-card-content {
  flex: 1;
}

.admin-card-content h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.admin-card-content p {
  color: #6b7280;
  margin-bottom: 6px;
}

.admin-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.empty-state {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding: 24px;
  color: #6b7280;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  padding: 24px;
}

.modal-lg {
  max-width: 860px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-header h2 {
  font-size: 1.35rem;
}

.modal-subtitle {
  color: #6b7280;
  margin-top: 4px;
}

.icon-close-btn {
  border: none;
  background: #f3f4f6;
  color: #111827;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-weight: 700;
}

.form-row input,
.form-row select {
  height: 46px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 0 14px;
  font: inherit;
  background: #ffffff;
}

.form-row input:focus,
.form-row select:focus {
  outline: 2px solid rgba(37, 99, 235, 0.15);
  border-color: #2563eb;
}

.modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.enrollment-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.enrollment-panel {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
}

.enrollment-panel h3 {
  margin-bottom: 14px;
}

.inline-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.inline-form select {
  flex: 1;
  min-width: 220px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 0 14px;
  font: inherit;
  background: #ffffff;
}

.enrollment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.enrollment-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-active {
  background: #dcfce7;
  color: #166534;
}

.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 900px) {
  .admin-header {
    grid-template-columns: 1fr;
    height: auto;
    gap: 12px;
    padding: 16px;
    text-align: center;
  }

  .admin-header-left,
  .admin-header-right {
    justify-content: center;
  }

  .page-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-card {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-card-actions {
    justify-content: flex-start;
  }

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


.progress-bar {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #7c3aed;
  transition: width 0.3s ease;
}

.lesson-item-meta.completed {
  color: #16a34a;
  font-weight: 700;
}


body {
  background-color: #000;
  margin: 0;
  font-family: Arial, sans-serif;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
}

.logo img {
  width: 40px;
}

/* BOTÃO SAIR */
.logout-btn {
  background-color: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 22px;
  font-size: 16px; /* maior */
  border-radius: 8px;
  cursor: pointer;
}

.logout-btn:hover {
  background-color: #1d4ed8;
}

/* CONTAINER CENTRAL */
.dashboard-container {
  padding-top: 50px;
  height: calc(90vh);
  display: flex;
  flex-direction: column;
  justify-content:top; /* vertical */
  align-items: center;     /* horizontal */
  text-align: center;
}

/* TÍTULO */
.dashboard-title {
  color: #fff;
  margin-bottom: 40px;
}

/* BOTÕES */
.dashboard-buttons {
  display: flex;
  flex-direction: column;
  width: 500px;
  gap: 20px;
}

/* BOTÃO PADRÃO */
.dashboard-btn {
  background-color: #2563eb;
  color: #fff;
  text-decoration: none;
  padding: 15px 60px;
  border-radius: 10px;
  font-size: 18px;
  transition: 0.3s;
}

.dashboard-btn:hover {
  background-color: #1d4ed8;
}


.student-header {
  background: #061335;
  color: #fff;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.student-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.student-header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-name {
  color: #4b82ff;
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-btn {
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}

.logout-btn {
  background: #000;
  color: #fff;
}

.course-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  padding: 26px;
  align-items: start;
}

.course-player-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.course-video-wrapper {
  background: #000;
  border: 1px solid #1c315e;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.lesson-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.course-lesson-info {
  background: #e9e9eb;
  border-radius: 0 0 18px 18px;
  padding: 24px;
}

.course-lesson-info h1 {
  margin: 0 0 14px;
  color: #061335;
  font-size: 1.1rem;
}

.course-lesson-info p {
  color: #22345b;
}

.course-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.course-sidebar {
  background: #e9e9eb;
  border-radius: 18px;
  padding: 18px;
}

.course-sidebar h2 {
  margin-top: 0;
  color: #061335;
}

.sidebar-card {
  background: #e9e9eb;
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.sidebar-loading {
  background: #f1f1f1;
  border-radius: 14px;
  padding: 18px;
  color: #6b7280;
}

.module-card {
  background: #f7f7f8;
  border-radius: 14px;
  border: 1px solid #d7dbe3;
  overflow: hidden;
}

.module-header {
  width: 100%;
  border: none;
  background: #f7f7f8;
  padding: 14px 16px;
  text-align: left;
  cursor: default;
}

.module-header strong {
  display: block;
  color: #061335;
}

.module-header span {
  color: #6b7280;
  font-size: 0.92rem;
}

.lessons-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #e5e7eb;
}

.lesson-item {
  padding: 12px 16px;
  cursor: pointer;
  background: #fff;
  border-bottom: 1px solid #eef0f4;
}

.lesson-item:hover {
  background: #f8fbff;
}

.lesson-item.active {
  background: #eef4ff;
}

.lesson-item-title {
  font-weight: 700;
  color: #061335;
}

.lesson-item-meta {
  font-size: 0.9rem;
  margin-top: 6px;
  color: #6b7280;
}

.lesson-item-meta.completed {
  color: #16a34a;
  font-weight: 700;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #d5d9df;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #7c3aed;
  transition: width 0.3s ease;
}

.feedback {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.feedback.success {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.feedback.error {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.hidden {
  display: none !important;
}

.primary-btn,
.secondary-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.primary-btn {
  background: #2563eb;
  color: #fff;
}

.secondary-btn {
  background: #fff;
  color: #061335;
}

.profile-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 40px;
}

.page-title-section h1 {
  color: #fff;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 26px;
}

.profile-card {
  background: #e9e9eb;
  border-radius: 20px;
  padding: 26px;
}

.profile-card h2 {
  color: #061335;
  margin-top: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.profile-field {
  background: #f3f4f6;
  border: 1px solid #d8dde6;
  border-radius: 14px;
  padding: 16px;
}

.profile-field label {
  display: block;
  font-weight: 700;
  color: #22345b;
  margin-bottom: 8px;
}

.profile-field p {
  margin: 0;
  color: #061335;
}

@media (max-width: 980px) {
  .course-page {
    grid-template-columns: 1fr;
  }

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

  .student-header {
    flex-direction: column;
    height: auto;
    gap: 14px;
    padding: 18px;
  }
}


.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  padding: 24px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-header h2 {
  font-size: 1.35rem;
  margin: 0;
  color: #061335;
}

.icon-close-btn {
  border: none;
  background: #f3f4f6;
  color: #111827;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-weight: 700;
  color: #22345b;
}

.form-row input {
  height: 46px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 0 14px;
  font: inherit;
  background: #ffffff;
}

.form-row input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.15);
  border-color: #2563eb;
}

.modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}


html,
body {
  height: 100%;
  margin: 0;
}

body.public-page.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000;
}

body.public-page.home-page .site-header {
  flex-shrink: 0;
}

body.public-page.home-page .home-hero-split {
  flex: 1;
  display: flex;
  min-height: 0;
}

body.public-page.home-page .home-hero-split__container {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(320px, 620px) 1fr;
  align-items: stretch;
  min-height: 0;
}

body.public-page.home-page .home-hero-split__image {
  height: 80%;
  min-height: 0;
}

body.public-page.home-page .home-hero-split__image img {
  width: 100%;
  object-fit: cover;
  display: block;
}

body.public-page.home-page .home-hero-split__content-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 0;
}

body.public-page.home-page .home-hero-split__content-box {
  max-width: 500px;
}


html,
body {
  height: 100%;
  margin: 0;
}

body.public-page.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000;
}

body.public-page.home-page .site-header {
  flex-shrink: 0;
}

body.public-page.home-page .home-hero-split {
  flex: 1;
  min-height: 0;
}

body.public-page.home-page .home-hero-split__container {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 620px) minmax(320px, 760px);
  gap: 48px;
  align-items: stretch;
  padding: 24px 32px 32px;
  box-sizing: border-box;
}

body.public-page.home-page .home-hero-split__image {
  height: 100%;
  min-height: 0;
  display: flex;
}

body.public-page.home-page .home-hero-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 24px;
}

body.public-page.home-page .home-hero-split__right-column {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  align-content: stretch;
}

body.public-page.home-page .home-hero-split__content-box {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 32px;
  color: #fff;
  box-sizing: border-box;
  overflow: auto;
}

body.public-page.home-page .home-hero-split__content-box h1,
body.public-page.home-page .home-hero-split__content-box h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #fff;
  line-height: 1.15;
}

body.public-page.home-page .home-hero-split__content-box p,
body.public-page.home-page .home-hero-split__content-box li {
  color: #f3f4f6;
  line-height: 1.6;
  font-size: 1.05rem;
}

body.public-page.home-page .home-hero-split__content-box ul {
  margin: 16px 0;
  padding-left: 22px;
}

@media (max-width: 1100px) {
  body.public-page.home-page .home-hero-split__container {
    grid-template-columns: 1fr;
    height: auto;
  }

  body.public-page.home-page .home-hero-split__image {
    height: 420px;
  }

  body.public-page.home-page .home-hero-split__right-column {
    height: auto;
    grid-template-rows: auto auto;
  }

  body.public-page.home-page .home-hero-split__content-box {
    overflow: visible;
  }
}


.login-links {
  margin-top: 12px;
  text-align: center;
}

.login-links a {
  color: #9d4edd;
  text-decoration: none;
  font-weight: 600;
}

.login-links a:hover {
  text-decoration: underline;
}