* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #0f172a;
    color: white;
    line-height: 1.6;
}

header {
    background-color: #1e293b;
    padding: 20px;
    position: sticky;
    top: 0;
}

header h1 {
    margin-bottom: 10px;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

nav a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #ffffff;
}

section {
    padding: 60px 20px;
    border-bottom: 1px solid #334155;

    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 120px;
}

section h2 {
    margin-bottom: 15px;
    color: #38bdf8;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #1e293b;
}

html {
    scroll-behavior: smooth;
}

section p {
    max-width: 900px;
    line-height: 1.8;
    font-size: 18px;
}

section:hover {
    background-color: #0b1733;
    transition: 0.3s;
}

@media (max-width: 768px) {

    header h1 {
        font-size: 32px;
    }

    nav ul {
        flex-direction: row;
        gap: 20px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    nav {
        overflow-x: auto;
    }

    nav a {
        font-size: 16px;
    }

    section {
        padding: 40px 15px;
    }

    section p {
        font-size: 16px;
    }
}

.botao {
    background-color: #38bdf8;
    color: #0f172a;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}

.botao-tema {
    background-color: #38bdf8;
    color: #0f172a;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    transition: 0.3s;
}

.botao-tema:hover {
    background-color: #ffffff;
}

.botao-container {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    }

.botao:hover {
    background-color: #ffffff;
}

.cards-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background-color: #1e293b;
    padding: 20px;
    border-radius: 12px;
    flex: 1;
    min-width: 250px;
    transition: 0.3s;
    border: 1px solid #334155;
   }

   .cards-centralizados {
    justify-content: center;
}

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

.card:hover {
    transform: translateY(-5px);
    background-color: #273549;
}

.card h3 {
    color: #38bdf8;
    margin-bottom: 15px;
}

#home {
    min-height: auto;
}

#home h2 {
    font-size: 48px;
    max-width: 700px;
    line-height: 1.2;
}

#home p {
    max-width: 700px;
    margin: 20px 0;
}

section {
    scroll-margin-top: 120px;
}

@media (max-width: 768px) {
    section {
        scroll-margin-top: 120px;
    }
}

.filtros {
    display: flex;
    gap: 10px;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.filtros button {
    background-color: #38bdf8;
    color: #0f172a;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.filtros button:hover {
    background-color: #ffffff;
}

.filtro-btn.ativo {
    background-color: #ffffff;
    color: #0f172a;
}

.light-mode {
    background-color: #f4f7fb;
    color: #0f172a;
}

.light-mode header {
    background-color: #dbeafe;
}

.light-mode section {
    border-color: #cbd5e1;
}

.light-mode .card {
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.light-mode h1,
.light-mode h2,
.light-mode h3 {
    color: #2563eb;
}

.light-mode p,
.light-mode li {
    color: #1e293b;
}

.light-mode nav a {
    color: #2563eb;
}

.light-mode .botao,
.light-mode .botao-tema,
.light-mode .filtro-btn {
    background-color: #2563eb;
    color: white;
}

.light-mode .botao:hover,
.light-mode .botao-tema:hover,
.light-mode .filtro-btn:hover {
    background-color: #1d4ed8;
}

.light-mode section:hover {
    background-color: #f4f7fb;
}

.light-mode #home:hover {
    background-color: #f4f7fb;
}

.light-mode .card:hover {
    background-color: #ffffff;
}

.card a:visited,
.card-link:visited,
.card-link p:visited {
    color: #38bdf8;
}

body:not(.light-mode) .card a:hover,
body:not(.light-mode) .card-link:hover,
body:not(.light-mode) .card-link:hover p {
    color: #ffffff;
}

body:not(.light-mode) .botao {
    background-color: #38bdf8;
    color: #0f172a;
}

body:not(.light-mode) .botao:hover {
    background-color: #ffffff;
    color: #0f172a;
}

/* Centralizar botões do Dashboard QA */
.dashboard-botoes {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* --- Estilos para a Barra de Progresso Animada --- */

/* Container da barra de progresso: uma "trilha" de fundo */
.progress-bar-container {
  width: 100%;
  background-color: #e0e0e0;    /* Cor do fundo da trilha */
  border-radius: 25px;          /* Bordas arredondadas */
  margin: 20px 0;               /* Espaçamento vertical */
  overflow: hidden;             /* Garante que a barra interna não vaze */
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2); /* Sombra interna sutil */
}

/* A barra de progresso que vai crescer */
.progress-bar-fill {
  width: 0%;                    /* Começa em 0% de largura */
  height: 25px;                 /* Altura da barra */
  background: linear-gradient(to right, #dbeafe, #1d4ed8);   /* 🌟 Degradê de azul claro para escuro 🌟 */
  border-radius: 25px;          /* Mantém as bordas arredondadas */
  transition: width 0.5s ease-out; /* 🔥 A MÁGICA ACONTECE AQUI 🔥 */
                                 /* A propriedade 'width' terá uma transição suave */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  box-sizing: border-box;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* --- Centralização do Assistente QA --- */

#qa-flow {
  text-align: center;
}

#qa-flow button,
#qa-flow .botao {
  display: inline-block;
  margin: 8px;
}

/* Centralização forçada para pergunta e contador */
#pergunta-qa,
#progresso-qa {
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}