/* --- Variáveis e Estilos Globais --- */
:root {
  --primary-color: #007bff;
  --secondary-color: #f8f9fa;
  --dark-color: #343a40;
  --light-color: #ffffff;
  --text-color: #495057;
  --border-color: #dee2e6;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--secondary-color);
}


/* --- INÍCIO DO CÓDIGO DO PLANO DE FUNDO --- */
body::before {
    content: "";
    position: fixed; /* Fixo, não rola com a página */
    top: 0; 
    left: 0;
    width: 100vw; /* 100% da largura da tela */
    height: 100vh; /* 100% da altura da tela */
    
    /* Caminho para sua imagem a partir da pasta 'css' */
    background-image: url('../img/bg.png'); 
    
    background-size: cover; /* Garante que a imagem cubra todo o espaço */
    background-position: center center; /* Centraliza a imagem */
    
    opacity: 0.05; /* <<< CONTROLE A TRANSPARÊNCIA AQUI (0.05 = 5%) */
    
    z-index: -1; /* Coloca a camada de fundo atrás de todo o conteúdo */
}
/* --- FIM DO CÓDIGO DO PLANO DE FUNDO --- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Cabeçalho --- */
header {
  background: var(--light-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding-left: 0; 

  position: sticky;
  top: 0;
  z-index: 1000;
  
  
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 0px;
  height: 60px;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

header nav a {
  margin-left: 1rem;
  color: var(--secondary-color);
  
}

/* --- Logo Header--- */
body, header, .logo_header {
  margin: 0;
  padding: 0;
}

.logo_header img {
  max-height:170px;   /* controla a altura sem esticar o header */
       /* mantém a proporção */
  display: block;
  margin: 0;   /* remove margem */
 
}   

/* --- Botões --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  transition: all 0.3s ease;
  white-space: nowrap; /* <-- ADICIONE ESTA LINHA */
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-color);
  border: 1px solid var(--primary-color);
}
.btn-primary:hover {
  background-color: #0056b3;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}
.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.btn-large {
  font-size: 1.1rem;
  padding: 1rem 2rem;
}

.btn-back {
    /* Aparência e espaçamento */
    display: inline-block; /* Permite aplicar padding e margem */
    padding: 10px 20px;
    background-color: #007bff; /* Azul padrão Bootstrap */
    color: #ffffff; /* Texto branco */
    border-radius: 5px; /* Cantos arredondados */
    text-decoration: none; /* Remove o sublinhado do link */
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Sombra suave para dar profundidade */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    /* Transição suave para o efeito hover */
    transition: all 0.3s ease;
}

/* Efeito ao passar o mouse por cima (hover) */
.btn-back:hover {
    background-color: #0056b3; /* Um tom de azul mais escuro */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px); /* Efeito de "levantar" o botão */
}

/* --- Seções --- */
section {
  padding: 80px 0;
  text-align: center;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

/* Seção Hero */
#hero {
  background: var(--light-color);
  padding: 100px 0;
}
#hero h1 {
  font-size: 3rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
}
#hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* Seção Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}
.feature-card {
  background: var(--light-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.feature-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Seção Pricing */
.pricing-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  align-items: center;
}
/* SUBSTITUA O ESTILO ANTIGO DO .plan-card POR ESTE */
.plan-card {
  background: var(--light-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  width: 300px;
  transition: all 0.3s ease;
  /* Adicionando flexbox para alinhar o conteúdo interno */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Garante que o espaço seja distribuído */
}

/* Deixe o restante do CSS como está, apenas substitua o bloco acima */
.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.plan-card.popular {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
  position: relative;
}
.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--light-color);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
}
.plan-card h3 {
  font-size: 1.8rem;
  color: var(--dark-color);
}
.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1rem 0;
}
.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-color);
}
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  text-align: left;
}
.plan-card ul li {
  margin-bottom: 1rem;
}
/*.plan-card .btn {
  width: 100%;
}*/

/* --- Rodapé --- */
footer {
  background: var(--dark-color);
  color: var(--light-color);
  text-align: center;
  padding: 2rem 0;
}
.footer-links a {
  color: var(--light-color);
  text-decoration: none;
  margin: 0 1rem;
}
.footer-links a:hover {
  text-decoration: underline;
}
footer p {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* --- Responsividade para Celulares --- */
/* --- AJUSTES DE RESPONSIVIDADE PARA O DASHBOARD --- */

/* --- Estilos para Páginas de Formulário (Registro/Login) --- */
.form-section {
  padding: 60px 0;
  background-color: var(--light-color);
}

.form-container {
  max-width: 500px;
  margin: 0 auto;
  background: var(--light-color);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.form-container h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.form-container p {
  margin-bottom: 2rem;
  color: var(--text-color);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: var(--dark-color);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box; /* Garante que o padding não aumente a largura total */
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

/* --- Estilos do Painel Admin --- */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    padding-left: 0;
    background-color: var(--dark-color);
    color: white;
    position: relative;
    z-index: 1000;
    position: sticky; /* <-- CORRIGIDO */
    top: 0;           /* <-- ADICIONADO */
    height: 60px; 
}
.admin-header .logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light-color);
}
.admin-header nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
.admin-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.user-info span {
  margin-right: 1rem;
}

.dashboard-container {
  padding: 40px 0;
}

.upgrade-notice {
  background-color: #fff3cd;
  color: #664d03;
  border: 1px solid #ffecb5;
  padding: 1rem;
  border-radius: 5px;
  margin: 2rem 0;
  text-align: center;
}
.upgrade-notice a {
  color: #664d03;
  font-weight: 700;
}

.actions-bar {
  margin-bottom: 2rem;
}

.trainings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--light-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden; /* Garante que o border-radius seja aplicado nas bordas da tabela */
}
.trainings-table th,
.trainings-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.trainings-table th {
  background-color: var(--secondary-color);
}
.trainings-table tr:last-child td {
  border-bottom: none;
}
.trainings-table td a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
}
.trainings-table td a:hover {
  text-decoration: underline;
}

/* --- Estilos do Slideshow --- */
.hidden {
  display: none !important;
}

#slideshow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#slide-image {
  max-width: 95%;
  max-height: 85%;
  object-fit: contain; /* Garante que a imagem caiba na tela sem distorcer */
  border-radius: 5px;
}

.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 2.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
}
.slide-nav:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.slide-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slide-nav.prev {
  left: 20px;
}
.slide-nav.next {
  right: 20px;
}

#slide-counter {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 1rem;
}

#close-slideshow {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 15px;
  border-radius: 5px;
}

/* --- Estilos Adicionais do Painel Admin --- */
.actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.actions-bar h1 {
  margin: 0;
}

.dashboard-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.training-card {
  background: var(--light-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.training-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--dark-color);
}

.training-card .card-meta {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: -10px;
  margin-bottom: 1.5rem;
}

.training-card .card-stats {
  text-align: center;
  margin-bottom: 1.5rem;
}

.training-card .card-stats span {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.training-card .card-stats p {
  margin: 0;
  font-weight: 700;
  color: var(--text-color);
}

.training-card .card-actions {
  margin-top: auto; /* Empurra as ações para o final do card */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-card {
  display: block;
  width: 100%;
  padding: 0.75rem;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  transition: all 0.2s ease;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  box-sizing: border-box;
}

.btn-card:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
  border-color: var(--primary-color);
}

/* --- Estilos da Página Gerenciar Slides --- */

.success-message {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

.slides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.slide-card {
  background: var(--light-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.slide-thumbnail {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.slide-filename {
  font-size: 0.8rem;
  word-break: break-all;
  margin-bottom: 1rem;
}

.btn-delete {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-weight: bold;
}
.btn-delete:hover {
  background-color: #c82333;
}

/* --- Estilos do Criador de Quiz --- */
.quiz-builder-form {
  margin-top: 2rem;
}

.question-block {
  background-color: var(--light-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
}

.question-block h4 {
  margin-top: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.options-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.option-item input[type="radio"] {
  /* Aumenta o tamanho do radio button para ser mais fácil de clicar */
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0; /* Impede que o radio button encolha */
}

.option-item input[type="text"] {
  flex-grow: 1; /* Faz o campo de texto ocupar todo o espaço restante */
}

/* --- Estilos da Página de Resultados --- */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--light-color);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.stat-card span {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.stat-card p {
  margin: 0;
  font-weight: 700;
  color: var(--text-color);
}

/* --- Estilo do Botão de Excluir --- */
.btn-card-delete {
  display: block;
  width: 100%;
  padding: 0.75rem;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  transition: all 0.2s ease;
  background-color: #dc3545; /* Vermelho perigo */
  color: white;
  border: 1px solid #dc3545;
  box-sizing: border-box;
  cursor: pointer;
  font-family: "Roboto", sans-serif; /* Garante a mesma fonte */
  font-size: 1rem; /* Garante o mesmo tamanho de fonte */
}
.btn-card-delete:hover {
  background-color: #c82333;
  border-color: #c82333;
}

.btn-delete-pergunta {
  background-color: transparent;
  color: #dc3545;
  border: 1px solid #dc3545;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.8rem;
}
.btn-delete-pergunta:hover {
  background-color: #dc3545;
  color: white;
}

/* --- Estilos do Indicador de Processamento --- */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
}

.loading-spinner {
  border: 8px solid #f3f3f3; /* Cinza claro */
  border-top: 8px solid var(--primary-color); /* Azul */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

#loading-overlay p {
  color: white;
  font-size: 1.2rem;
  margin: 5px 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* --- Estilos Adicionais do Painel Admin --- */

/* Adicione este novo estilo para os links de navegação */
/* Seletor atualizado para pegar os links na NAV e na DIV do usuário */
.admin-header nav a:not(.btn),
.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    position: static;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
    width: auto;
}

/* Botões (Minha Conta / Sair) */
.admin-header nav a.btn,
.admin-header .user-info a {
    padding: 8px 16px;
    border: 1px solid #007bff;
    border-radius: 6px;
    background: transparent;
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}
.admin-header nav a.btn:hover,
.admin-header .user-info a:hover {
    background: #007bff;
    color: white;
}
.admin-header nav a:not(.btn):hover,
.admin-header .user-info a:not(.btn):hover {
  background-color: rgba(
    255,
    255,
    255,
    0.1
  ); /* Um leve destaque ao passar o mouse */
}

/* --- Estilos para Botões na Tabela --- */
.btn-table-action {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  background-color: var(--secondary-color);
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-table-action:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}
/* --- Ajustes na Página de Relatórios --- */
.report-tool-card {
  text-align: center; /* Centraliza o texto (label) e elementos inline */
}

.report-tool-card .form-group {
  display: inline-block; /* Permite que o container da select se comporte melhor */
  width: 100%;
  max-width: 400px; /* Limita a largura em telas grandes */
  margin-bottom: 1rem;
}

.report-tool-card label {
  margin-bottom: 0.5rem;
  display: block; /* Garante que a label fique acima do select */
}
/* --- Ajuste nos botões do Actions Bar --- */
.actions-bar-buttons {
  display: flex;
  gap: 1rem; /* Cria um espaço entre os botões */
}
/* --- Estilos para Páginas Legais --- */
.legal-content {
  background-color: var(--light-color);
  padding: 60px 0;
}

.legal-content .container {
  max-width: 800px; /* Limita a largura do texto para melhor leitura */
}

.legal-content h1 {
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 1rem;
}

.legal-content h2 {
  font-size: 1.8rem;
  color: var(--dark-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content p,
.legal-content li {
  line-height: 1.8;
  color: var(--text-color);
}
/* --- Estilos dos Gráficos do Dashboard --- */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 2fr; /* Deixa o gráfico de pizza menor */
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.chart-card {
  background: var(--light-color);
  padding: 1.5rem;
  padding-bottom: 2rem; /* Aumenta o espaço na parte de baixo */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  height: 380px; /* Aumentamos um pouco a altura total para compensar */
  display: flex; /* Adicionado para melhor controle */
  flex-direction: column; /* Organiza o título e o canvas verticalmente */
}

.chart-card canvas {
  position: relative;
  height: 100%;
  width: 100%;
}

.chart-card h3 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-color);
}

/* Deixa os gráficos responsivos em telas menores */
@media (max-width: 992px) {
  .charts-grid {
    grid-template-columns: 1fr; /* Vira uma coluna única */
  }
}

/* --- Estilos do Cabeçalho Público do Treinamento --- */
.public-header {
  background: #fff;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}
.public-header .container {
  text-align: center;
}
.training-logo {
  max-height: 60px;
  width: auto;
}
/* --- Estilos do Modal de Compartilhamento --- */
.hidden {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #aaa;
}
.modal-content textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}
/* --- Estilos Adicionais para o Modal --- */
.link-container {
  display: flex;
  gap: 0.5rem;
}

.link-container input {
  flex-grow: 1; /* Faz o input ocupar o máximo de espaço */
  background-color: #f8f9fa; /* Um fundo cinza claro para indicar que não é editável */
}

.link-container button {
  flex-shrink: 0; /* Impede que o botão encolha */
}

/* Um divisor para as seções do modal */
.modal-content hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1.5rem 0;
}
.status-ok {
  color: #198754;
} /* Verde */
.status-alerta {
  color: #ffc107;
  font-weight: bold;
} /* Amarelo */
.status-vencido {
  color: #dc3545;
  font-weight: bold;
  text-decoration: line-through;
} /* Vermelho */
.folder-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--dark-color);
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
}
.folder-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.folder-link-card {
  text-decoration: none;
}
.folder-link-card h3 {
  word-break: break-all;
}
/* --- Estilos para o Modal "Mover" --- */
#move-modal .form-group {
  text-align: left;
  margin-bottom: 1.5rem;
}

#move-modal label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

#move-modal select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
}
.training-card {
  position: relative; /* Necessário para o posicionamento do badge */
}
.status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  color: white;
}
.status-badge.status-ativo {
  background-color: #198754; /* Verde */
}
.status-badge.status-inativo {
  background-color: #6c757d; /* Cinza */
}
/* Estilo para a pré-visualização do logo na página "Minha Conta" */
.logo-preview {
    width: 120px;  /* Largura fixa para o círculo */
    height: 120px; /* Altura fixa (igual à largura para formar um círculo) */
    border-radius: 50%; /* A mágica do círculo acontece aqui */
    object-fit: contain; /* Garante que a imagem caiba dentro do círculo */
    border: 3px solid var(--border-color);
    padding: 0; /* Removemos o padding para a imagem preencher a borda */
    margin: 1rem auto; /* Centraliza a imagem e adiciona margem */
    display: block;
    background-color: #f8f9fa;
}

/* =================================================================== */
/* ==== SEÇÃO DE RESPONSIVIDADE PARA DISPOSITIVOS MÓVEIS (GERAL) ==== */
/* =================================================================== */
@media (max-width: 768px) {

    /* --- GERAL --- */
    section h2, .legal-content h1 { font-size: 2rem; }

    /* --- PÁGINA INICIAL (VITRINE) --- */
    #hero h1 { font-size: 2.2rem; }
    .features-grid, .pricing-container { grid-template-columns: 1fr; flex-direction: column; }
    .plan-card.popular { transform: scale(1); }
    
    /* --- PÁGINAS DO PARTICIPANTE (iniciar_treinamento, etc.) --- */
    .form-container { padding: 1.5rem; }
    .form-container h1 { font-size: 1.8rem; }
    .form-container h2 { font-size: 1.5rem; }
    .btn-large { padding: 0.8rem 1.5rem; font-size: 1rem; }
    .pergunta h3 { font-size: 1.1rem; line-height: 1.4; }

    /* --- PAINEL DE CONTROLE (DASHBOARD & OUTROS) --- */

    /* Cabeçalho do Painel */

@media (max-width: 768px) {
    .admin-header nav a:not(.btn),
    .admin-header .user-info {
        display: none; /* ficam escondidos até abrir o menu */
        flex-direction: column;
        align-items: center;
        gap: 15px;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: var(--dark-color);
        width: 100%;
        padding: 2rem 0;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* quando o hambúrguer abre */
    .admin-header nav.active a:not(.btn),
    .admin-header nav.active .user-info {
        display: flex;
    }
}
    
    /* NOVA REGRA: Garante que todos os itens (links e botões) no user-info se comportem igualmente */
    .admin-header .user-info > * {
        box-sizing: border-box; /* Garante que padding e borda não aumentem a largura */
        width: 100%;
        margin-left: 0;
        text-align: center;
    }

    /* Barra de Ações (Título e Botões Principais) */
    .actions-bar { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .actions-bar-buttons { width: 100%; flex-direction: column; align-items: stretch; gap: 0.5rem; }
    .actions-bar-buttons a.btn { text-align: center; }

    /* Formulário de Criar Nova Pasta */
    .training-card form[action="criar_sessao.php"] { flex-direction: column; align-items: stretch; }
    
    /* Cards de Pastas e Treinamentos */
    .dashboard-cards-container { grid-template-columns: 1fr; }

    /* NOVA REGRA: Cria um container com scroll para tabelas em telas pequenas */
    .table-responsive-container {
        overflow-x: auto; /* HABILITA A ROLAGEM HORIZONTAL */
        width: 100%;
        border: 1px solid var(--border-color);
        border-radius: 8px;
    }
    /* Ajusta a tabela para funcionar dentro do novo container */
    .table-responsive-container .trainings-table {
        box-shadow: none;
        border: none;
        width: 100%;
        min-width: 600px; /* Força uma largura mínima para a tabela, ativando o scroll */
    }
}

/* Deixa o logo no cabeçalho do treinamento redondo */
.training-logo {
    width: 80px; /* Tamanho um pouco menor */
    height: 80px;
    border-radius: 50%;
    object-fit: contain; /* Garante que a imagem caiba dentro do círculo */
    border: 2px solid var(--border-color);
}

.menu-toggle {
  display: none; /* Esconde no desktop */
}

/* --- ESTILOS DO MENU HAMBÚRGUER RESPONSIVO --- */

/* BOTÃO HAMBÚRGUER */
.menu-toggle {
  width: 30px;
  height: 24px;
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* animação X */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex; /* mostra só no mobile */
  }

  .admin-header nav {
    display: none; /* esconde menu por padrão */
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: var(--dark-color);
    width: 100%;
    padding: 2rem 0;
  }

  .admin-header nav.active {
    display: flex; /* abre menu */
  }
  
}

/* Apenas em telas menores */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;  /* Centraliza o X certinho */
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
  }

  .menu-toggle span {
    display: block;
    height: 3px;
    width: 25px;
    background: #fff;
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
    position: absolute;
  }

  .menu-toggle span:nth-child(1) {
    top: 6px;
  }
  .menu-toggle span:nth-child(2) {
    top: 13px;
  }
  .menu-toggle span:nth-child(3) {
    top: 20px;
  }

  /* Quando ativo vira o X */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 13px;
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 13px;
  }
}

/* --- Estilos do Player de Vídeo --- */
.training-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap; /* Garante que os botões se quebrem em telas pequenas */
}
.video-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporção 16:9 para o vídeo */
    height: 0;
    margin-bottom: 1rem;
    background-color: #000;
}
.video-player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-playlist-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Estilos para Exclusão de Pastas --- */
.folder-card {
    position: relative;
    padding-top: 2.5rem; /* Dá espaço para o botão de excluir */
}
.folder-card .folder-link {
    text-decoration: none;
    color: inherit;
}
.delete-folder-form {
    position: absolute;
    top: 10px;
    right: 10px;
}
.delete-folder-form button {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #dc3545;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}
.delete-folder-form button:hover {
    background-color: #dc3545;
    color: white;
}

/* --- Estilos da Nova Landing Page --- */
#hero small {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

#como-funciona {
    background-color: var(--secondary-color);
}

.section-subtitle {
    max-width: 600px;
    margin: -1rem auto 3rem auto;
    font-size: 1.1rem;
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tutorial-card {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.tutorial-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
}

.tutorial-card h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

#features-detailed {
    background: var(--light-color);
}

.features-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.feature-detailed-card {
    padding: 1.5rem;
}

.feature-detailed-card h4 {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

#cta-final {
    background-color: var(--dark-color);
    color: var(--light-color);
}

#cta-final h2 {
    color: var(--light-color);
}

.radio-group {
  margin-top: 0.5rem;
}

.radio-group label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  accent-color: #007bff; /* muda a cor do círculo (em navegadores modernos) */
  width: 18px;
  height: 18px;
  cursor: pointer;
}

