:root{
    --vermelhoLicardio: rgb(189, 10, 15);
    --headerBgColor: rgb(189, 10, 15);
    --headerFontColor: white;
    --headerHeight: 14vh;
    --bodyHeight: 86vh;
}


/* CSS do Específico do Site */
.header{
    height: var(--headerHeight); 
    padding: 1vh 10vw; 
    background: var(--headerBgColor); 
    color: var(--headerFontColor);
    position: sticky;
    top: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.menuButton{
    color: var(--headerFontColor);
    border-color: var(--headerFontColor);
}


.menuLogo{
    height: 12vh;
}

.AppContainer {
    display: flex;
    flex-direction: row;
    height: var(--bodyHeight);
    width: 100vw;
    overflow: hidden;
}

.MenuLateral{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-width: 0 1px 0 0;
    border-style: solid;
    border-color: var(--borderColor);
    font-size: var(--fontSizeText);
    height: var(--bodyHeight);
    background: white;
    width: max(30vw, 30vh);
    overflow-y: auto;
    scrollbar-width: thin;
    transition: margin-left 0.4s ease-in-out, transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.MenuLateral.fechado {
    margin-left: min(-30vw, -30vh);
    opacity: 0;
    pointer-events: none;
}

.MenuLateralArea{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: var(--bgColor);
    height: 8vh;
    padding: 1vh 3vw;
    border-width: 0 0 1px 0;
    border-style: solid;
    border-color: var(--borderColor);
    cursor: pointer;
    flex-shrink: 0;
}

.MenuLateralArea:hover{
    background: var(--bgColorHover);
}

.MenuArea {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch; 
    flex-shrink: 0;
    background: #FFF;
}

.MenuAreaAula{
    display: flex;
    justify-content: flex-start;
    gap: 1.5vw;
    align-items: center;
    height: 8vh;
    padding: 1vh 3vw;
    border-width: 0 0 1px 0;
    border-style: solid;
    border-color: var(--borderColor);
    cursor: pointer;
}

.Conteudo {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 3vh 4vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4vh;
}

.Conteudo section{
    width: 100%;
    max-width: 70vw;
}

.VideoContainer {
    display: none;
    position: relative;
    padding-top: 56.25%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.VideoContainer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.TextoAula h2 {
    font-family: var(--fontStyleTitle);
    font-size: var(--fontSizeSubtitle);
    color: var(--textColor);
    margin-bottom: 2vh;
}

.TextoAula p {
    font-size: var(--fontSizeText);
    line-height: 1.6;
    color: var(--textColor);
}

.LinksComplementares {
    padding-top: 4vh;
    border-top: 1px dashed var(--borderColor);
}

.LinksComplementares h3 {
    margin-bottom: 1.5vh;
}

.LinksComplementares ul {
    list-style: none;
    padding: 0;
}

.LinksComplementares li {
    display: flex;
    margin-bottom: 1vh;
    width: 100%;
    background: var(--bgColor);
    padding: 1vh 3vw;
    border-radius: 8px;
    border: 1px solid var(--borderColor);
}

.LinksComplementares li:hover {
    background: var(--bgColorHover);
}

.LinksComplementares a {
    font-size: var(--fontSizeText);
    transition: color 0.2s;
    flex: 1;
}

.MateriaisComplementares{
    padding-top: 4vh;
    border-top: 1px dashed var(--borderColor);
}

.MateriaisComplementares h3 {
    font-size: var(--fontSizeCmd);
    margin-bottom: 2vh;
    color: var(--textColor);
}

.GridMateriais {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 5px 15px 5px;
    width: 100%;
    scrollbar-width: thin;
}

.CardMaterial {
    display: flex;
    align-items: center;
    background-color: var(--bgColor);
    border: 1px solid var(--borderColor);
    border-radius: 8px;
    padding: 15px;
    gap: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    width: max(18vw, 25vh);
    flex-shrink: 0;
}

.CardMaterial:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.CardIcone i{
    font-size: 5.9vh;
}

.CardInfo h4 {
    font-size: 1.8vh;
    margin: 0 0 1vh 0;
    color: var(--textColor);
    word-break: break-word;
}

.BotaoDownload {
    display: inline-block;
    font-size: 1.5vh;
    font-weight: bold;
    color: white;
    background-color: #495057;
    padding: 0.8vh 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.BotaoDownload:hover {
    background-color: #212529;
    color: white;
}

.GridMateriais::-webkit-scrollbar {
    height: 8px;
}

.GridMateriais::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.GridMateriais::-webkit-scrollbar-thumb {
    background: var(--bgColor);
    border-radius: 10px;
}

.GridMateriais::-webkit-scrollbar-thumb:hover {
    background: var(--bgColorHover);
}

@media screen and (max-width: 768px) {
    .MenuLateral {
        position: fixed;
        top: var(--headerHeight);
        left: 0;
        width: 80vw;
        height: var(--bodyHeight);
        z-index: 1050;
        margin-left: 0 !important; 
        opacity: 1 !important;
        transform: translateX(-100%);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .MenuLateral.fechado {
        transform: translateX(0);
        pointer-events: auto !important;
    }
    
    .Conteudo {
        width: 100vw;
        height: 100%; 
        overflow-y: auto; 
    }

    .Conteudo section{
        width: 100%;
        max-width: 80vw;
    }

    .CardMaterial {
        width: 45vw; 
    }
}

@media screen and (max-width: 550px) {
    .Conteudo section{
        width: 100%;
        max-width: 92vw;
    }

    .CardMaterial {
        width: 55vw; 
    }
}




/* CSS das Questões */

/* CSS das Questões */

.Questao {
    padding: 4vh 0;
    border-top: 1px dashed var(--borderColor);
}

.Questao h1 {
    margin-bottom: 1.5vh;
}

.Questao.Fechado {
    display: none;
}

.TituloQuestao {
    width: 100%;
    text-align: center;
}

.BoxQuestao {
    display: flex;
    width: 100%;
    padding: 3vh 2vw;
    background: var(--bgColor);
    border-radius: 20px;
    border: 1px solid var(--borderColor);
    align-items: flex-start;
}

/* Container da Foto da Questão */
.FotoQuestao {
    width: min(42vh, 26vw);
    aspect-ratio: 1 / 1;          
    height: auto;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.3s ease;
    background-size: cover;    
    background-position: center;
    background-repeat: no-repeat;
    margin-right: 2vw;
    flex-shrink: 0;              
}

.FotoQuestao:hover {
    filter: brightness(0.9);
    transform: scale(1.01);
}

.FotoQuestao.SemImagem {
    display: none !important;
}

.PerguntaQuestao {
    flex: 1;
    width: 100%;
}

.EnunciadoQuestao {
    margin: 0 0 2vh 0;
}

.EnunciadoQuestao p {
    font-size: var(--fontSizeCmd);
    margin: 0;
}

.alternativa {
    border: 1px solid var(--borderColor);
    background: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    margin: 0 0 1.5vh;
    padding: .7vh .5vw;
}

.alternativa input {
    margin: 0 10px;
}

.alternativa label {
    margin: 0 10px 0 .5vw;
    font-size: var(--fontSizeText);
    text-align: justify;
    width: 100%;
}

.ComentarioQuestao {
    background: yellow;
    font-size: var(--fontSizeText);
    padding: 1vh 2vw;
    margin: 0 0 1.5vh;
    border-radius: 10px;
    text-align: center;
}

#BotaoEnvio, #BotaoAvanco {
    margin-left: 1vh;
}

#ComandoQuestao {
    display: none;
}


@media (max-width: 1100px) {
    .BoxQuestao {
        width: 100%;
        padding: 2.5vh 3vw;
        flex-direction: column;
        align-items: center; 
    }

    .FotoQuestao {
        width: 100%;
        max-width: 360px;
        aspect-ratio: 1 / 1;
        height: auto;
        margin: 0 0 2.5vh 0; 
    }

    .PerguntaQuestao {
        width: 100%;
        padding: 0;
    }

    .EnunciadoQuestao {
        text-align: left;
        margin: 0 0 2vh;
    }

    .alternativa {
        padding: 1vh 1vw;
    }

    .ComentarioQuestao {
        padding: 1vh 3vw;
    }
}

@media (max-width: 550px) {
    .BoxQuestao {
        width: 100%;
        padding: 2vh 3vw;
    }

    .FotoQuestao {
        width: 100%;
        max-width: 280px;
        aspect-ratio: 1 / 1;
        height: auto;
        margin: 0 0 2vh 0;
    }

    .PerguntaQuestao {
        padding: 0;
    }

    .EnunciadoQuestao {
        text-align: left;
    }
}

.CreditosAVA {
    width: 100%;
    text-align: center;
    padding: 1vh 0 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08); /* Linha divisória bem suave */
}

.CreditosAVA p {
    font-size: 1.4vh; /* Letra pequena e discreta */
    color: #888888;   /* Tom cinza suave para ser sútil */
    margin: 0;
    font-family: var(--fontStyleSubtitle, sans-serif);
    letter-spacing: 0.5px;
}

.CreditosAVA a {
    color: #555555;   /* Ligeiro destaque no seu nome */
    font-weight: 600;
}



/* ==========================================
   LOGIN E PROGRESSO DAS AULAS (ver AVA/auth.js)
   ========================================== */

/* Conta (entrar / sair) no topo do menu lateral */
.AreaConta {
    width: 100%;
    padding: 2vh 3vw;
    background: var(--bgColor);
    border-bottom: 1px solid var(--borderColor);
    flex-shrink: 0;
}

.AreaConta[hidden],
.UsuarioConta[hidden],
.BotaoConta[hidden],
.ProgressoResumo[hidden] {
    display: none;
}

.UsuarioConta {
    display: flex;
    align-items: center;
    gap: 1.5vw;
}

.IconeUsuario {
    font-size: 4vh;
    color: var(--vermelhoLicardio);
    line-height: 1;
}

.DadosUsuario {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.RotuloUsuario {
    font-size: 0.8em;
    color: #5f6b66;
}

.NomeUsuario {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.BotaoConta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8vw;
    padding: 1vh 1.5vw;
    border-radius: 6px;
    font-family: var(--fontStyleSubtitle);
    font-size: var(--fontSizeText);
    cursor: pointer;
    white-space: nowrap;
}

.BotaoEntrar {
    width: 100%;
    background: var(--vermelhoLicardio);
    color: #fff;
    border: 1px solid var(--vermelhoLicardio);
}

.BotaoEntrar:hover {
    filter: brightness(0.9);
}

.BotaoSair {
    background: transparent;
    color: var(--vermelhoLicardio);
    border: 1px solid var(--vermelhoLicardio);
}

.BotaoSair:hover {
    background: rgba(189, 10, 15, 0.08);
}

/* Checkbox ao lado de cada aula */
.CheckAula {
    flex-shrink: 0;
    width: 2.6vh;
    height: 2.6vh;
    min-width: 18px;
    min-height: 18px;
    accent-color: var(--vermelhoLicardio);
    cursor: pointer;
}

.MenuLateral:not(.comProgresso) .CheckAula {
    display: none;
}

/* Sem login o checkbox aparece "apagado" e o clique convida a entrar */
.MenuLateral:not(.comLogin) .CheckAula {
    opacity: 0.45;
}

.TituloMenuAula {
    flex: 1;
}

.MenuAreaAula.concluida .TituloMenuAula {
    color: #5f6b66;
}

/* Contador de aulas concluídas, no topo do menu */
.ProgressoResumo {
    width: 100%;
    padding: 1.5vh 3vw;
    background: #fff;
    border-bottom: 1px solid var(--borderColor);
    font-size: var(--fontSizeText);
    flex-shrink: 0;
}

.ProgressoBarra {
    margin-top: 0.8vh;
    height: 0.9vh;
    min-height: 6px;
    background: var(--bgColorHover);
    border-radius: 999px;
    overflow: hidden;
}

.ProgressoPreenchimento {
    height: 100%;
    width: 0;
    background: var(--vermelhoLicardio);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Aviso rápido (erros de login/gravação) */
.AvisoAVA {
    position: fixed;
    left: 50%;
    bottom: 3vh;
    transform: translate(-50%, 2vh);
    max-width: 90vw;
    padding: 1.4vh 3vw;
    background: #212529;
    color: #fff;
    border-radius: 8px;
    font-size: var(--fontSizeText);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 2000;
}

.AvisoAVA.visivel {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media screen and (max-width: 768px) {
    .CheckAula {
        width: 22px;
        height: 22px;
    }

    .BotaoConta {
        padding: 1vh 3vw;
        gap: 2vw;
    }

    .UsuarioConta {
        gap: 3vw;
    }

    .IconeUsuario {
        font-size: 4.5vh;
    }
}

/* ==========================================
   CADASTRO COMPLEMENTAR (modal aberto no primeiro login)
   ========================================== */

.linkAzul,
.linkAzul:active {
    color: #1a56db;
    text-decoration: none;
}

.linkAzul:hover {
    color: #1a56db;
    text-decoration: underline;
}

.Modal .modalConteudo {
    display: flex;
    flex-direction: column;
    gap: 2vh;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    width: 90vw;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.4rem;
}

.modalCabecalho {
    text-align: center;
}

.modalCabecalho h1 {
    font-size: var(--fontSizeSubtitle);
    font-family: var(--fontStyleTitle);
    font-weight: 400;
    margin: 0 0 1vh;
}

.modalIntro {
    margin: 0;
    font-size: var(--fontSizeText);
    color: #5f6b66;
}

.formCadastro select {
    margin-bottom: 1.5vh;
}

#cadastroCampoCurso {
    display: flex;
    flex-direction: column;
}

#cadastroCampoCurso[hidden] {
    display: none;
}

.linhaCheckboxCadastro {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 1.5vh;
    font-size: var(--fontSizeText);
}

.linhaCheckboxCadastro input[type=checkbox] {
    margin-top: 4px;
    flex-shrink: 0;
    accent-color: var(--vermelhoLicardio);
}

.cadastroErro {
    display: none;
    margin: 0 0 1.5vh;
    color: #c0392b;
    font-size: var(--fontSizeText);
}

.cadastroErro.visivel {
    display: block;
}

.botoesCadastro {
    display: flex;
    justify-content: flex-end;
    gap: 1.5vw;
}

.botoesCadastro input[type=submit] {
    background: var(--vermelhoLicardio);
    border-color: var(--vermelhoLicardio);
    color: #fff;
    cursor: pointer;
}

.botoesCadastro input[type=submit]:disabled {
    opacity: 0.6;
    cursor: wait;
}

.botoesCadastro .botaoSecundario {
    background: transparent;
    cursor: pointer;
}

@media screen and (max-width: 550px) {
    .botoesCadastro {
        flex-direction: column-reverse;
        gap: 1vh;
    }

    .botoesCadastro input {
        width: 100%;
        padding: 1.2vh 3vw;
    }
}
