@import url("https://use.typekit.net/nrl7nhw.css");
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;600;800&family=Poppins:wght@400;600;700&display=swap');

:root {
    /* Cores de Paleta */
    --first-color: #1F3A93;
    --segunda-color: #8E44AD;
    /* Cor principal de destaque (roxo) */
    --terceira-cor: #3498D8;
    --quarta-cor: #BDC3C7;
    /* Cor cinza claro (placeholder, bordas) */
    --quinta-cor: #333333;
    /* Cinza escuro */

    /* Cores Comuns Refatoradas */
    --cor-texto-padrao: #222222;
    --cor-fundo-card: #ffffff;
    --cor-link-btn: #fff;
    --cor-sucesso: #28a745;

    /* Variáveis de Tamanho/Espaçamento */
    --max-width-form: 350px;
    --padding-padrao: 20px;
    --margin-padrao: 10px;
    --border-radius-padrao: 10px;
    --altura-input: 50px;
    --altura-btn: 55px;
}

/* GLOBAL RESET/SETUP */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    /* Remover align-content: center do * que causa problemas */
    font-family: 'Sofast', sans-serif;
    /* Fallback adicionado */
}

body {
    width: 100%;
    min-height: 100vh;
    /* Garante que o body ocupe a altura total */
    background-color: var(--segunda-color);
    overflow-x: hidden;
}

/* Classes de Layout Centralizado para Páginas Principais */
.login-body,
.forget-pass,
.menu-aluno,
.cursos-aluno,
.notas-aluno,
.perfil-aluno,
.settings-aluno,
.projetos,
.mensagens-aluno,
.options,
.results {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Garante centralização vertical na maioria das páginas */
    width: 100%;
    flex-direction: column;
    padding-bottom: 80px;
    /* Espaço para o footer fixo */
}

.menu-body {
    /* Manter para uso específico, se necessário */
    min-height: 100vh;
}

/* HEADER/LOGO */
header {
    display: flex;
    justify-content: center;
    background-color: var(--cor-fundo-card);
    width: 100%;
    padding: 10px 0;
    position: fixed;
    /* Fixa o header no topo */
    top: 0;
    z-index: 10;
}

.logo {
    width: 238.07px;
    height: 73.15px;
    object-fit: contain;
}

/* Botão de Retorno (Back Button) */
.backBtn {
    position: absolute;
    top: 80px;
    /* Abaixo do header */
    left: 20px;
    text-decoration: none;
    color: var(--cor-link-btn);
    font-size: 20px;
    z-index: 5;
}

.back {
    /* Corrigir posição absoluta problemática */
    margin-top: -20px;
    align-self: flex-start;
    /* Alinha o botão à esquerda dentro do container flex */
    margin-left: 20px;
}

/* FOOTER (Barra de Navegação Inferior) */
footer {
    width: 100%;
    background: var(--cor-fundo-card);
    height: 80px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    z-index: 10;
}

.settingsFooter,
.contact-footer {
    /* Classes que forçavam o footer para baixo, agora não são mais necessárias com min-height: 100vh + padding-bottom */
    margin-top: 0;
}

.footerMenu {
    display: flex;
    align-items: center;
    flex-direction: column;
    font-family: 'Sofast', sans-serif;
    font-size: 16px;
    /* Ajustado para melhor leitura no footer */
    color: var(--cor-texto-padrao);
    text-decoration: none;
}

/* PÁGINAS DE LOGIN E ESQUECI SENHA */
.container,
.forget {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    /* Ajustado para ser responsivo */
    max-width: 380px;
    height: auto;
    /* Altura automática baseada no conteúdo */
    padding: var(--padding-padrao);
    border-radius: 20px;
    background: var(--cor-fundo-card);
}

.container h1,
.forget h1 {
    margin-top: 20px;
    margin-bottom: 30px;
    font-size: 28px;
    color: var(--segunda-color);
}

.container>label {
    color: var(--cor-texto-padrao);
    align-self: flex-start;
    /* Alinha o label à esquerda */
    margin-left: 0;
    margin-bottom: 5px;
}

.container>input,
.forget>form>input {
    margin-top: 0;
    margin-bottom: 20px;
    width: 100%;
    height: var(--altura-input);
    font-size: 18px;
    padding: 10px;
    border: 1px solid var(--cor-texto-padrao);
    border-radius: var(--border-radius-padrao);
}

.forget>form>input::placeholder {
    color: var(--quarta-cor);
    font-size: 18px;
}

.submit-btn {
    width: 100%;
    height: var(--altura-btn);
    background: var(--segunda-color);
    text-align: center;
    font-size: 18px;
    color: var(--cor-link-btn);
    border: none;
    border-radius: var(--border-radius-padrao);
    cursor: pointer;
}

/* Correção para o link dentro do botão - links devem estar fora do botão ou ter regras específicas */
.submit-btn a {
    text-decoration: none;
    color: var(--cor-link-btn);
    display: block;
    /* Ocupa todo o espaço do botão */
    line-height: var(--altura-btn);
    /* Centraliza o texto verticalmente */
}

.container>a,
.forget>a {
    margin-top: 20px;
    text-decoration: none;
    color: var(--segunda-color);
    font-size: 18px;
}

/* PÁGINA DE MENU */
.menu-aluno h1 {
    color: var(--cor-link-btn);
    font-size: 28px;
    text-align: center;
    margin-top: 40px;
}

.menu-aluno h2 {
    color: var(--cor-link-btn);
    font-size: 16px;
    text-align: center;
}

.acesso>h2 {
    text-decoration: underline;
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--cor-link-btn);
}

.menuBtn {
    display: flex;
    align-items: center;
    background: var(--cor-fundo-card);
    width: 90%;
    max-width: 300px;
    height: 50px;
    border: none;
    border-radius: var(--border-radius-padrao);
    padding: 10px;
    margin-top: 12px;
}

.menuBtn a {
    font-size: 20px;
    color: var(--cor-texto-padrao);
    text-decoration: none;
}


/* CURSOS, NOTAS, PROJETOS, SETTINGS */
.cursos-aluno h2,
.settings-aluno>h2,
.perfil-aluno>h2,
.notificacoes-aluno>h2,
.notas-aluno>h2 {
    color: var(--cor-link-btn);
    font-size: 20px;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    width: 90%;
}

.curso {
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 340px;
    border-radius: var(--border-radius-padrao);
    height: 120px;
    background: var(--cor-fundo-card);
    margin-top: 10px;
    padding: 10px;
    position: relative;
    /* Ajusta contexto para elementos internos */
}

.img-space {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-padrao);
    background: var(--quarta-cor);
    flex-shrink: 0;
    /* Impede que a imagem encolha */
    margin-right: 10px;

}

.img-space img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-padrao);
    object-fit: cover;
}

/* Estilos de Texto dentro de .curso */
.curso-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    overflow: hidden;
}

.curso h2 {
    font-size: 18px;
    color: var(--segunda-color);
    margin: 0;
    line-height: 1.2;
}

.curso h3 {
    font-size: 16px;
    color: var(--segunda-color);
    margin-top: 5px;
    line-height: 1.2;
}

.curso h2:nth-of-type(2),
.curso h2:nth-of-type(3) {
    color: var(--cor-texto-padrao);
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.2;
}


/* PÁGINA DE NOTAS (Detalhe) */
.nota-curso h1 {
    font-size: 20px;
    color: var(--segunda-color);
    margin-top: 10px;
    text-align: center;
}

.nota-curso h2:nth-child(1) {
    margin-top: 0;
}

.nota-curso>h2,
.nota-curso>h3 {
    color: var(--cor-texto-padrao);
    text-align: left;
    margin: 10px 0;
    font-size: 16px;
    width: 100%;
}

.notaCaixa {
    text-decoration: none;
    color: var(--quinta-cor);
    width: 100%;
    display: block;
    padding: 10px;
}

.nota {
    width: 90%;
    max-width: 350px;
    height: auto;
    border-radius: var(--border-radius-padrao);
    background: var(--cor-fundo-card);
    margin-top: 20px;
    padding: 10px;
    position: relative;
    display: block;
    /* Garantir que o link ocupe o espaço */
}

.nota h2:nth-child(1) {
    font-size: 18px;
    color: var(--segunda-color);
    margin-top: 0;
}

.nota h3 {
    font-size: 16px;
    color: var(--cor-texto-padrao);
    margin-top: 5px;
}

.nota h2:nth-child(3),
.nota h2:nth-child(4) {
    color: var(--cor-texto-padrao);
    font-size: 14px;
    margin-top: 5px;
    width: 100%;
    line-height: 1.2;
}

.caixas-notas {
    padding-bottom: 20px;
    /* Reduzido o padding problemático */
}

.caixa1 {
    margin-top: 20px;
    background: var(--cor-fundo-card);
    border-radius: var(--border-radius-padrao);
    height: auto;
    width: 90%;
    max-width: 350px;
    padding: 10px;
}

.caixa1 h1 {
    color: var(--segunda-color);
    text-align: center;
    padding-top: 5px;
    font-size: 1.5em;
}

.caixa1 h2 {
    color: var(--quinta-cor);
    text-align: center;
    padding-top: 10px;
    font-size: 1em;
}

.caixa1 p {
    color: var(--quinta-cor);
    font-size: 1em;
    padding-top: 10px;
    padding-left: 5px;
    font-weight: 600;
}

.caixa1 h3 {
    color: var(--quinta-cor);
    font-size: 1em;
}

/* PÁGINA DE CONFIGURAÇÕES */
.settingsBtn {
    display: flex;
    align-items: center;
    background: var(--cor-fundo-card);
    width: 90%;
    max-width: 300px;
    height: 60px;
    border: none;
    border-radius: var(--border-radius-padrao);
    padding: 5px;
    margin-top: 12px;
    text-align: left;
}

.settingsBtn a {
    font-size: 20px;
    color: var(--cor-texto-padrao);
    text-decoration: none;
    display: block;
}

/* PÁGINA DE PROJETOS */
.projetos {
    min-height: 100vh;
    padding-top: 100px;
    /* Ajuste para compensar o header fixo */
    margin-top: 0;
    justify-content: flex-start;
    /* Alinha o conteúdo ao topo após o padding */
}

.projeto {
    width: 90%;
    max-width: 350px;
    height: auto;
    background: var(--cor-fundo-card);
    margin: 20px auto;
    border-radius: var(--border-radius-padrao);
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.projeto a {
    text-decoration: none;
    align-self: flex-end;
    /* Alinha o link de ver mais para a direita */
    font-size: 20px;
    color: var(--segunda-color);
    margin-top: 10px;
}

.projeto h2:nth-child(1) {
    color: var(--segunda-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.projeto h3 {
    color: var(--cor-texto-padrao);
    margin-top: 5px;
    font-size: 16px;
}

/* PÁGINA DE CONTATO */
.contactar {
    min-height: 100vh;
    padding-top: 100px;
    /* Ajuste para compensar o header fixo */
    padding-bottom: 80px;
    margin-top: 0;
    justify-content: flex-start;
}

.contact {
    width: 90%;
    max-width: 360px;
    height: auto;
    background: var(--cor-fundo-card);
    border-radius: var(--border-radius-padrao);
    margin-top: 20px;
    padding: 15px;
}

.contact h2 {
    color: var(--cor-texto-padrao);
    font-size: 14px;
    margin-top: 10px;
    text-align: left;
    margin-left: 0;
}

.contact h2:nth-child(1) {
    color: var(--segunda-color);
    font-size: 20px;
    margin-bottom: 10px;
}

.assunto,
.message {
    width: 90%;
    max-width: 360px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
}

.assunto label,
.message label {
    color: var(--cor-link-btn);
    font-size: 18px;
    margin-bottom: 10px;
}

.assunto input,
.message input {
    width: 100%;
    height: 54px;
    background: var(--cor-fundo-card);
    border: none;
    border-radius: var(--border-radius-padrao);
    padding: 10px;
}

.assunto input::placeholder,
.message input::placeholder {
    font-size: 18px;
    color: var(--quarta-cor);
}

.submit-contact {
    width: 90%;
    max-width: 280px;
    height: 40px;
    background: var(--cor-fundo-card);
    border-radius: var(--border-radius-padrao);
    color: var(--segunda-color);
    border: none;
    font-size: 16px;
    margin: 20px auto 0 auto;
    cursor: pointer;
}

/* PÁGINA DE PERFIL */
.perfil-aluno {
    padding-top: 100px;
    justify-content: flex-start;
}

.perfil {
    max-width: 350px;
    width: 90%;
    height: auto;
    margin: 0 auto;
    position: relative;
    padding-top: 50px;
    /* Espaço para a imagem que fica acima */
}

.img {
    z-index: 1000;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.info {
    margin-top: 20px;
    margin-left: 0;
    /* Centralizado */
    width: 100%;
}

.info h3 {
    font-size: 18px;
    margin-top: 5px;
    margin-bottom: 5px;
    color: var(--cor-link-btn);
}

.info p {
    color: var(--marrom-claro);
    /* Usando uma cor mais clara para o valor */
    font-size: 15px;
}

.editPf {
    margin: 40px auto 20px auto;
    height: 40px;
    width: 220px;
    background: var(--cor-fundo-card);
    border: none;
    border-radius: var(--border-radius-padrao);
}

.editPf a {
    font-size: 16px;
    color: var(--segunda-color);
    text-decoration: none;
    display: block;
    line-height: 40px;
}

/* PÁGINA DE NOTIFICAÇÕES */
.notificacoes-aluno {
    padding-top: 100px;
    justify-content: flex-start;
}

.notifics {
    height: auto;
    min-height: 60vh;
    padding-bottom: 20px;
    margin-top: 0;
    overflow-y: auto;
}

.notific {
    height: auto;
    min-height: 160px;
    width: 90%;
    max-width: 350px;
    background: var(--cor-fundo-card);
    border: none;
    margin-bottom: 20px;
    border-radius: var(--border-radius-padrao);
    padding: 10px;
    position: relative;
}

.notific h2 {
    font-size: 16px;
    margin-top: 0;
    color: var(--segunda-color);
}

.notific h3 {
    margin-top: 10px;
    font-size: 14px;
    color: var(--cor-texto-padrao);
}

.notific p {
    margin-top: 10px;
    color: var(--quarta-cor);
    font-size: 12px;
}

.notific-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    margin: 0;
}

.notific-actions a {
    text-decoration: none;
    color: var(--segunda-color);
    margin-left: 10px;
}

/* PÁGINA DE CADASTRO */
.cadastro {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    padding-bottom: 80px;
    padding-top: 100px;
    justify-content: flex-start;
}

.cadastro>h1 {
    text-align: center;
    margin-top: 10px;
    color: var(--cor-link-btn);
    font-size: 20px;
}

.cadastro-img {
    width: 80px;
    height: 80px;
    z-index: 1000;
    position: relative;
    /* Ajustado para seguir o fluxo do documento */
    margin-top: 20px;
    /* Espaçamento após o header */
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--quarta-cor);
}

.cadastro-form {
    margin-top: 20px;
    width: 90%;
    max-width: 380px;
}

.cadastro-form input {
    margin-bottom: 20px;
    width: 100%;
    height: var(--altura-input);
    font-size: 18px;
    padding: 10px;
    border: 1px solid var(--cor-texto-padrao);
    border-radius: var(--border-radius-padrao);
}

.cadastro>label {
    color: var(--cor-texto-padrao);
    align-self: flex-start;
    margin-left: 5%;
    margin-bottom: 5px;
}

.penBtn {
    z-index: 1;
    position: absolute;
    right: -10px;
    bottom: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--cor-fundo-card);
    display: flex;
    justify-content: center;
    align-items: center;
}

.penBtn svg {
    color: var(--first-color);
    width: 16px;
    height: 16px;
}

/* MENSAGENS DE ERRO E SUCESSO */
.success-msg {
    color: var(--cor-sucesso);
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

#instalar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--cor-fundo-card);
    color: var(--cor-texto-padrao);
    border: 1px solid var(--quarta-cor);
    border-radius: var(--border-radius-padrao);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 10px;
    max-width: 320px;
    width: 100%;
    z-index: 1000;
    display: none;
    font-family: sans-serif;
}

#instalar p {
    margin: 0 0 var(--margin-padrao) 0;
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Botões */
#btnInstalar,
#btnFechar {
    height: var(--altura-btn);
    padding: 0 20px;
    border: none;
    border-radius: var(--border-radius-padrao);
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95rem;
    position: relative;
    top: 0;
    left: 0%;
    transition: background-color 0.2s ease;
    color: var(--cor-link-btn);
}

#btnInstalar {
    background-color: var(--segunda-color);
    /* roxo destaque */
    margin-right: var(--margin-padrao);
}

#btnInstalar:hover {
    background-color: var(--terceira-cor);
    /* azul claro ao hover */
}

#btnFechar {
    background-color: var(--quarta-cor);
    /* cinza claro */
    color: var(--quinta-cor);
    /* texto cinza escuro */
}

#btnFechar:hover {
    background-color: var(--quinta-cor);
    /* cinza escuro */
    color: var(--cor-link-btn);
}