.paypal-box{
    text-align:center;
    margin-top:20px;
}

.btn-paypal{
    display:inline-block;
    margin-top:10px;
    padding:12px 24px;
    background:#003087;
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    font-weight:600;
    transition:0.2s ease;
}

.btn-paypal:hover{
    background:#001f5c;
}



:root {
  --primary: #2563EB;
  --primary-dark: #1E40AF;
  --bg-gradient: linear-gradient(135deg, #1E3A8A, #2563EB);
  --card: #FFFFFF;
  --text: #111827;
  --gray: #6B7280;
  --border: #E5E7EB;
  --danger: #DC2626;
  --radius: 16px;
  --shadow: 0 15px 40px rgba(0,0,0,0.18);
}

* {
  margin: 0;
  padding: 0;

  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
}

.login-box {
  background: var(--card);
  padding: 50px 40px;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 35px;
  font-size: 26px;
  font-weight: 600;
  color: var(--primary-dark);
}

.form-group {
  margin-bottom: 22px;
}

.form-group input {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 16px;
  transition: 0.2s;
}

.form-group input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.btn-login {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  border: none;
  background: var(--primary);
  color: white;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-login:hover {
  background: var(--primary-dark);
}

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

.link {
  display: block;
  margin-top: 20px;
  text-align: center;
  color: var(--primary);
  text-decoration: none;
  font-size: 15px;
}

.msg-error {
  margin-top: 20px;
  padding: 14px;
  border-radius: var(--radius);
  background: #FEE2E2;
  color: var(--danger);
  font-size: 15px;
  display: none;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* RESPONSIVO CELULAR */
@media (max-width: 600px) {

  body {
    padding: 15px;
    align-items: flex-start;
  }

  .login-box {
    margin-top: 40px;
    max-width: 100%;
    padding: 35px 25px;
  }

  .login-box h2 {
    font-size: 22px;
  }

  .form-group input {
    padding: 18px;
    font-size: 17px;
  }

  .btn-login {
    padding: 18px;
    font-size: 17px;
  }

  .msg-error {
    font-size: 16px;
  }
}

/* ===== LAYOUT GLOBAL ===== */

.app {
  display: flex;
  min-height: 100vh;   /* em vez de height fixo */
  background: #F3F4F6;
}

.sidebar {
  width: 240px;
  background: #1E293B;
  color: white;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  height: 100vh;          /* ocupa tela toda */
  position: fixed;        /* 🔥 fixa */
  left: 0;
  top: 0;
}

.sidebar h2 {
  margin-bottom: 30px;
  font-size: 18px;
}

.sidebar a {
  color: #CBD5E1;
  text-decoration: none;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: 0.2s;
  display: block;
}

.sidebar a:hover {
  background: #2563EB;
  color: white;
}

.sidebar a.active {
  background: #2563EB;
  color: white;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.main {
  flex: 1;
  margin-left: 240px;     /* espaço da sidebar */
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.topbar {
  background: white;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.user-info {
  font-size: 14px;
}

.btn-logout {
  background: #DC2626;
  border: none;
  padding: 8px 14px;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

.btn-logout:hover {
  opacity: 0.9;
}

.page-content {
  padding: 25px;
  overflow-y: auto;       /* scroll aqui */
  flex: 1;
}

/* ===== RESPONSIVO ===== */

@media (max-width: 768px) {

  .sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    height: 100%;
    z-index: 1000;
    transition: 0.3s;
  }

  .sidebar.open {
    left: 0;
  }

  .menu-toggle {
    font-size: 22px;
    cursor: pointer;
  }

}

/* ===== LOGIN PAGE ===== */

.login-page {
  background: var(--bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ===== WRAPPER RESPONSIVO DE TABELA ===== */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}


/* ===== TABELA RESPONSIVA ===== */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.tabela {
  min-width: 900px;
}

/* ===== SIDEBAR MOBILE MELHORADA ===== */

.overlay {
  display: none;
}

@media (max-width: 768px) {

  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    height: 100%;
    width: 240px;
    transition: left 0.3s ease;
    z-index: 2000;
  }

  .sidebar.open {
    left: 0;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
  }

  .overlay.open {
    display: block;
  }

}

/* ===== TABELA DASHBOARD MODERNA ===== */

.tabela {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

/* CABEÇALHO */
.tabela thead {
  background: #F1F5F9;
}

.tabela th {
  padding: 16px 18px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #475569;
  text-align: left;
}

/* CORPO */
.tabela td {
  padding: 14px 18px;
  font-size: 14px;
  color: #1F2937;
  border-top: 1px solid #E5E7EB;
  vertical-align: middle;
}

/* HOVER SUAVE */
.tabela tbody tr {
  transition: background 0.2s ease;
}

.tabela tbody tr:hover td {
  background: #d6dde3;
}

/* CENTRALIZAÇÃO */
.tabela th.text-center,
.tabela td.text-center {
  text-align: center;
}

/* AÇÕES */
.acoes {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.btn-acao {
  background: #E2E8F0;
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-acao:hover {
  background: #CBD5E1;
}

/* ===== FORMULÁRIO MONTAGEM QUIZ ===== */

.form-card {
  max-width: 900px;
}

.form-card {
    padding: 28px 32px;
}

.form-group {
    margin-bottom: 22px;
}

input,
select {
    padding: 8px 12px;
    font-size: 14px;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  font-size: 14px;
}

.info-text {
  font-size: 12px;
  color: #555;
  margin-top: 5px;
}

/* ===== TURMAS EM HORIZONTAL ===== */

.turmas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.turmas-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #F3F4F6;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.turmas-grid input {
  cursor: pointer;
}

/* ===== BOTÃO PADRÃO DO SISTEMA ===== */

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
}


/* ===== TURMAS ESTILO TAG ===== */

.turmas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.turmas-grid label {
  position: relative;
  cursor: pointer;
}

/* Esconde o checkbox real */
.turmas-grid input[type="checkbox"] {
  display: none;
}

/* Visual da tag */
.turmas-grid label span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 20px;
  background: #E5E7EB;
  color: #111827;
  font-size: 14px;
  transition: all 0.2s ease;
}

/* Quando selecionado */
.turmas-grid input[type="checkbox"]:checked + span {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}

/* ===== PREVIEW ===== */

.preview-questao {
  margin-bottom: 18px;
  padding: 15px;
  background: #F9FAFB;
  border-radius: 10px;
}

.preview-info p {
  margin-bottom: 6px;
}

.publicado-box {
  background: #ECFDF5;
  padding: 15px;
  border-radius: 10px;
}

.input-link {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
}

/* ===== PUBLICAÇÃO ===== */

.publicado-box {
  background: #ECFDF5;
  padding: 20px;
  border-radius: 12px;
}

.link-box {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.link-box input {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
}

.link-box button {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
}

.link-box button:hover {
  background: var(--primary-dark);
}

/* ===== INSTRUÇÃO IMPRESSÃO ===== */

.instrucao-impressao {
  margin-top: 18px;
  padding: 12px;
  background: #F0F9FF;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  font-size: 14px;
  color: #1E293B;
}

/* ===== TOGGLE SWITCH ===== */

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .3s;
}

.switch input:checked + .slider {
  background-color: var(--primary);
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
}

/* ===== CENTRALIZAÇÃO COLUNAS ===== */

.text-center {
  text-align: center;
}

.tabela th.text-center {
  text-align: center;
}

/* ===== HOVER LINHA TABELA ===== */

.tabela tbody tr {
  transition: background 0.2s ease;
}



/* ===== CENTRALIZAR AÇÕES ===== */

.acoes {
  display: flex;
  justify-content: center;
  gap: 6px;
}


/* ===== TURMAS PAGE ===== */

.turma-form {
  display: flex;
  gap: 10px;
}

.turma-form input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
}

.turma-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #F9FAFB;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: background 0.2s ease;
}

.turma-item:hover {
  background: #EEF2F7;
}

.btn-danger {
  background: #DC2626;
  border: none;
  padding: 6px 12px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.btn-danger:hover {
  opacity: 0.9;
}

/* ===== PÁGINA ALUNO ===== */

.aluno-page {
  margin: 0;
  background: #F3F4F6;
  font-family: Arial, sans-serif;
}

.aluno-header {
  background: var(--bg-gradient);
  color: white;
  padding: 18px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.aluno-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.aluno-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  text-align: center;
  max-width: 420px;
  width: 100%;
}

.loader-grande {
  border: 5px solid #E5E7EB;
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  margin: 0 auto 20px auto;
  animation: spin 1s linear infinite;
}

.erro-icone {
  font-size: 40px;
  margin-bottom: 15px;
}


/* ===== QUIZ PAGE ===== */

.quiz-page {
  margin: 0;
  background: #F3F4F6;
}

.quiz-header {
  background: var(--bg-gradient);
  color: white;
  padding: 15px 20px;
}

.quiz-titulo {
  font-size: 18px;
  font-weight: bold;
}

.quiz-info {
  font-size: 14px;
  opacity: 0.9;
}

.quiz-container {
  max-width: 750px;
  margin: 30px auto;
  padding: 0 15px;
}

.barra-progresso {
  height: 8px;
  background: #E5E7EB;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.barra-preenchimento {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s ease;
}

.questao-card img {
  max-width: 100%;
  height: auto;
  margin: 15px 0;
  border-radius: 8px;
}

.alt-item {
  display: block;
  padding: 10px;
  background: #F9FAFB;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}

.alt-item:hover {
  background: #E5E7EB;
}

.quiz-rodape {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.final-card {
  max-width: 500px;
  margin: 100px auto;
  padding: 40px;
  background: white;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width:600px){

.quiz-header{
flex-direction:column;
align-items:flex-start;
gap:8px;
}

.quiz-logo-direita{
align-self:flex-end;
width:26px;
}

.quiz-titulo{
font-size:18px;
line-height:1.2;
}

.quiz-info{
font-size:13px;
}

}

/* ===== IDENTIFICAÇÃO ALUNO ===== */

.ident-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient);
  padding: 20px;
}

.ident-card {
  background: white;
  padding: 60px 50px;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.ident-titulo {
  font-size: 28px;
  margin-bottom: 10px;
}

.ident-sub {
  color: #6B7280;
  margin-bottom: 35px;
}

.ident-campo {
  margin-bottom: 20px;
}

.ident-campo input,
.ident-campo select {
  width: 100%;
  padding: 16px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
}

.ident-campo input:focus,
.ident-campo select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn-iniciar {
  width: 100%;
  padding: 16px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-iniciar:hover {
  background: var(--primary-dark);
}

.enunciado {
  margin-bottom: 25px;
}

.questao-numero {
  font-size: 14px;
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 10px;
}

.questao-texto {
  font-size: 18px;
  line-height: 1.6;
}

/* ===== RODAPÉ QUIZ ===== */

.quiz-rodape {
  margin-top: 30px;
  text-align: center;
}

.contador-questao {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 15px;
}

.btn-avancar {
  padding: 14px 40px;
  background: var(--primary);
  border: none;
  color: white;
  font-size: 15px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-avancar:hover {
  background: var(--primary-dark);
}

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

.termo-box {
  background: #F9FAFB;
  padding: 15px;
  border-radius: 10px;
  font-size: 13px;
  color: #374151;
  margin-bottom: 20px;
}

.checkbox-termo {
  display: block;
  margin-top: 10px;
  font-size: 14px;
    }

    /* ===== ERRO INPUT ===== */
.input-erro {
border: 2px solid #DC2626 !important;
background: #FEF2F2;
}

/* ===== SUCESSO ===== */
.msg-sucesso {
background: #DCFCE7;
color: #166534;
padding: 14px;
border-radius: var(--radius);
margin-top: 20px;
text-align: center;
}

/* ===== TERMO ===== */
.termo-box {
background: #F9FAFB;
padding: 15px;
border-radius: 12px;
font-size: 13px;
color: #374151;
margin-bottom: 20px;
}

.checkbox-termo {
display:block;
margin-top:10px;
font-size:14px;
}

/* ===== BOTÃO LOADING ===== */
.btn-loading {
position: relative;
pointer-events: none;
opacity: 0.8;
}

.btn-loading::after {
content:"";
width:18px;
height:18px;
border:3px solid white;
border-top:3px solid transparent;
border-radius:50%;
position:absolute;
right:20px;
top:50%;
transform:translateY(-50%);
animation: spin 0.8s linear infinite;
  }

/* ===== OVERLAY ENVIO QUIZ ===== */

.overlay-envio {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.overlay-box {
  background: white;
  padding: 40px 50px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-width: 420px;
  width: 90%;
}

.overlay-spinner {
  width: 45px;
  height: 45px;
  border: 5px solid #E5E7EB;
  border-top: 5px solid var(--primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

.overlay-box h3 {
  margin-bottom: 10px;
  color: #111827;
}

.overlay-box p {
  font-size: 14px;
  color: #6B7280;
}

/* ===== MARCA AVALIA+ ===== */

/* ===== LOGO AVALIA+ ===== */

.logo-area {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.logo-plus {
  color: var(--primary);
  font-weight: 900;
}

.logo-sub {
  font-size: 11px;
  color: #94A3B8;
  margin: 4px 0 0 0;
  line-height: 1.2;
}


/* ============================= */
/* ===== PÁGINA SOBRE ========= */
/* ============================= */

.sobre-container {
  max-width: 900px;
  margin: 0 auto;
}

.sobre-titulo {
  font-size: 28px;
  margin-bottom: 30px;
  color: #1E3A8A;
}

.sobre-card {
  background: white;
  padding: 28px;
  border-radius: 16px;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.sobre-card h3 {
  margin-bottom: 15px;
  color: #1E3A8A;
  font-size: 18px;
}

.sobre-card p {
  color: #374151;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Destaque azul lateral */
.destaque {
  border-left: 4px solid #2563EB;
}

/* ============================= */
/* ===== BOTÃO DOAÇÃO ========= */
/* ============================= */

.btn-doar {
  margin-top: 20px;
  padding: 12px 22px;
  background: #2563EB;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-doar:hover {
  background: #1E40AF;
  transform: translateY(-2px);
}

/* ============================= */
/* ===== ÁREA PIX ========= */
/* ============================= */

.area-doacao {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.area-doacao.mostrar {
  max-height: 500px;
  margin-top: 20px;
}

.pix-box {
  text-align: center;
  background: #F3F4F6;
  padding: 20px;
  border-radius: 12px;
  margin-top: 15px;
}

.pix-img {
  max-width: 200px;
  width: 100%;
  margin-bottom: 10px;
}

/* ============================= */
/* ===== CONTATO ========= */
/* ============================= */

.versao {
  margin-top: 15px;
  font-size: 12px;
  color: #9CA3AF;
}

/* ============================= */
/* ===== RESPONSIVO ========= */
/* ============================= */

@media (max-width: 768px) {

  .sobre-titulo {
    font-size: 22px;
  }

  .sobre-card {
    padding: 20px;
  }

  .pix-img {
    max-width: 160px;
  }

}

html, body {
  overflow-x: hidden;
}

@media (max-width: 768px) {

  .main {
    margin-left: 0;   /* remove espaço da sidebar */
    width: 100%;
  }

}

/* ============================= */
/* MULTI-SELEÇÃO ASSUNTO/DESCRITOR */
/* ============================= */

.turmas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.turmas-grid label {
    cursor: pointer;
    user-select: none;
}

.turmas-grid input[type="checkbox"] {
    display: none;
}

.turmas-grid span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background: #e4e7ec;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* Estado marcado */
.turmas-grid input[type="checkbox"]:checked + span {
    background: #3b82f6;
    color: #fff;
    font-weight: 500;
}

/* Hover */
.turmas-grid span:hover {
    background: #d0d5dd;
}

/* Texto informativo */
.info-text {
    margin-top: 6px;
    font-size: 13px;
    color: #475467;
}

.multi-select {
    position: relative;
}

.multi-header {
    padding: 8px 12px;
    background: #f2f4f7;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    cursor: pointer;
}

.multi-list {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    margin-top: 4px;
    padding: 8px;
    z-index: 100;
}

.multi-select.open .multi-list {
    display: block;
}

.multi-list label {
    display: block;
    margin-bottom: 6px;
    cursor: pointer;
}

.multi-list input {
    margin-right: 6px;
}

.modo-geracao {
    display: flex;
    gap: 20px;
    margin-top: 6px;
}

.modo-geracao label {
    font-size: 14px;
    cursor: pointer;
}

.filtro-info-box {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 14px;
}

.multi-item {
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
    margin-bottom: 4px;
    font-size: 14px;
}

.multi-item:hover {
    background: #f2f4f7;
}

.multi-item.selected {
    background: #2563eb;
    color: #fff;
    font-weight: 500;
}

.descritor-codigo {
    font-weight: 600;
    margin-right: 8px;
}

.descritor-texto {
    font-size: 13px;
    color: inherit;
}


/* ================= BASE TIPOGRAFIA ================= */

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1d2939;
}

h2 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 24px;
}

label {
    font-weight: 500;
    font-size: 13px;
    color: #344054;
    margin-bottom: 6px;
    display: block;
}

.info-text {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 13px;
    color: #475467;
}

.descritor-codigo {
    font-weight: 600;
    color: #2563eb;
    margin-right: 6px;
}

.descritor-texto {
    font-size: 13px;
    color: #475467;
}

/* ================= ANIMAÇÕES ================= */

#etapaModo,
#etapaFiltro,
#etapaFinal {
    transition: all 0.3s ease;
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CONSOLIDAÇÃO PROFESSOR ===== */

.consolidacao {
    display: none;
    margin-top: 14px;
}

.consolidacao .info-bloco {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #eef4ff;          /* azul bem suave */
    border: 1px solid #d0dfff;    /* borda leve azul */
}

.consolidacao .info-titulo {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #1d4ed8;               /* azul institucional */
}

.consolidacao .info-item {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 13px;
}

.consolidacao .descritor-codigo {
    font-weight: 600;
    color: #2563eb;
}

.consolidacao .descritor-texto {
    color: #334155;
}
.erro-validacao {
    margin-top: 6px;
    font-size: 13px;
    color: #b42318;
    font-weight: 500;
}

.correta-preview {
    background: #ecfdf3;
    border-left: 4px solid #12b76a;
    font-weight: 600;
}
/*Mostra Alternativa correta no Preview*/
.alt-preview {
    padding: 6px 10px;
    margin-bottom: 6px;
    border-radius: 6px;
}

.alt-correta {
    background: #ecfdf3;
    border-left: 4px solid #12b76a;
    font-weight: 600;
}

/*Cabeçalho dos PDFs*/
.cabecalho img{
    height:70px;
    margin-bottom:10px;
}

/* MODAL PARA QR CODE */
#modalQR {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.modal-box {
    position: relative;
    width: 320px;
    background: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

#qrcode {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.modal-box input {
    width: 100%;
    margin: 10px 0;
    padding: 6px;
}

/* ===== LOGIN HEADER COM LOGO ===== */

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.login-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-dark);
}

.login-header h2 span {
  font-weight: 700;
}

.login-header.horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}


.login-header.horizontal {
  display: flex;
  align-items: center;     /* centraliza verticalmente */
  justify-content: center;
  gap: 12px;
}

.login-logo {
  width: 46px;
  height: 46px;
  display: block;          /* remove alinhamento baseline */
}

.login-header.horizontal h2 {
  margin: 0;               /* remove margem padrão */
  line-height: 1;          /* evita deslocamento vertical */
  display: flex;
  align-items: center;
}

/* ===== IDENT HEADER ===== */

.ident-header {
  text-align: center;
  margin-bottom: 10px;
}

.ident-logo {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
}

.ident-titulo {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-dark);  /* azul institucional */
}

/* ===== LOGO DIREITA HEADER QUIZ ===== */

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;   /* já garante ~20px da lateral */
}

.quiz-logo-direita {
  width: 40px;
  height: 40px;
}

/* ===== HEADER ALUNO ===== */

.aluno-header {
  background: var(--bg-gradient);
  color: white;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aluno-header-left {
  font-weight: 700;
  font-size: 18px;
}

.aluno-logo-direita {
  width: 38px;
  height: 38px;
}

/* ===== TOAST FEEDBACK ===== */

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #111827;
  color: white;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}


.ident-linha{
  display:flex;
  gap:12px;
}

.ident-campo.metade{
  flex:1;
}

/*RESPONSIVO TELA IDENTIFICAÇÃO ALUNO*/
@media (max-width: 600px){
.ident-linha{
    flex-direction: column;
  }

  .ident-campo input,
  .ident-campo select{
    font-size: 14px;       /* reduz fonte */
    padding: 10px;         /* reduz padding */
  }

}
/*AJUSTA MSG ERRO PAGINA ENTRADA DO ALUNO*/
.alerta-erro {
  background-color: #fdecea;
  color: #b42318;
  border: 1px solid #f5c2c7;
}


/*=====*/
.aplicacao-card.desabilitada{
opacity:0.5;
cursor:not-allowed;
}

/*Loader no Dashboard*/
.loader-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(255,255,255,0.8);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}
.loader{
border:6px solid #e5e7eb;
border-top:6px solid #2563eb;
border-radius:50%;
width:50px;
height:50px;
animation:spin 1s linear infinite;
}

@keyframes spin{
0%{transform:rotate(0deg)}
100%{transform:rotate(360deg)}
}

.status-dot{
display:inline-block;
width:12px;
height:12px;
border-radius:50%;
margin-right:8px;
vertical-align:middle;
}

/* LED verde ativo */
.status-ativa{
background:#22c55e;
box-shadow:0 0 6px #22c55e, 0 0 12px #22c55e;
animation:ledPulse 1.6s infinite;
}

/* LED cinza desligado */
.status-encerrada{
background:#9ca3af;
}

@keyframes ledPulse{
0%{box-shadow:0 0 4px #22c55e;}
50%{box-shadow:0 0 12px #22c55e;}
100%{box-shadow:0 0 4px #22c55e;}
}

.status-dot{
position:relative;
}

.status-dot[data-tooltip]:hover::after{
content:attr(data-tooltip);
position:absolute;
bottom:22px;
left:50%;
transform:translateX(-50%);
background:#111827;
color:white;
padding:6px 10px;
font-size:12px;
border-radius:6px;
white-space:nowrap;
z-index:9999;
pointer-events:none;
}

.aplicacao-card{
overflow:visible;
}

.status-dot[data-tooltip]:hover::before{
content:"";
position:absolute;
bottom:16px;
left:50%;
transform:translateX(-50%);
border:6px solid transparent;
border-top-color:#111827;
}
