:root{
    --cor-fundo: #121212;
    --cor-secundaria: #1e1e1e;
    --cor-detalhe: #2d2d2d;
    --cor-hover: #333333;
    --cor-primaria: #ff4d4f;
    /* vermelho destaque */
    --cor-secundaria-destaque: #3a6eff;
    /* azul de contraste */
    --texto-primario: #f5f5f5;
    --texto-secundario: #aaaaaa;
    --borda: #2b2b2b;
    --input-fundo: #1c1c1c;
    --input-borda: #3a3a3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    list-style: none;
}
.infoPerfil{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 12pt;
    font-weight: 500;
}
.infoPerfil img{
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: 50%;
}

header {
    position: sticky;
    top: 0;
    background-color: var(--cor-secundaria);
    color: var(--texto-primario);
    padding: 0px 20px;
    text-align: center;
    border-bottom: 1px solid var(--borda);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 10dvh;
    font-size: 11pt;
    z-index: 1000;
}

.menu ul li span, #nomeUser{
    font-size: 11pt;
    color: var(--texto-primario);
    font-weight: 500;
}

footer{
    position: relative;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    align-items: center;
    gap: 40px;
    padding: 20px;
    height: 10dvh;
    border-top: 1px solid var(--borda);
}

.titulo p, #spanTitulo::after{
    content: "studa";
    font-size: 1.2rem;
    font-weight: 500;
    align-items: center;
    user-select: none;
    cursor: pointer;
    color: var(--texto-primario);
}

span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cor-secundaria-destaque);
}

.menu ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
}

.menu ul a:hover {
    color: var(--cor-secundaria-destaque);
    background-color: var(--cor-hover);
    border-radius: 5px;
}

a {
    text-decoration: none;
    color: var(--texto-primario);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
}
body {
    background-color: var(--cor-fundo);
    color: var(--texto-primario);
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100dvh; /* ocupa a tela, mas cresce se tiver mais conteúdo */
}

main {
    text-align: center;
    background-color: var(--cor-fundo);
    padding: 20px;
    width: 100%;
    height: 100dvh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
main h1 {
    padding: 40px 0;
}

.funcoesIniciais, .resumo {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 60%;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.resumo{
    margin-top: 20px;
}

.funcoesIniciais .tarefasPendentes,
.funcoesIniciais .funcAdicionais,
.funcoesIniciais .atalhos {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 10px;
    padding: 20px;
    width: 40%;
    height: 100%;
    /* background-color: var(--cor-secundaria-destaque); */
    background: radial-gradient(rgb(111, 0, 255), rgba(0, 0, 255, 0.349));
    border-radius: 10px;
    /* box-shadow: 0 4px 8px var(--cor-detalhe); */
    border: 1px solid var(--cor-secundaria-destaque);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--texto-primario);
}

.taskDone, 
.simuladosDone,
.desafiosDone{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    width: 40%;
    height: 80%;
    border-radius: 10px;
    border: 1px solid var(--cor-secundaria-destaque);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--texto-primario);
}

.modalOpcoesProvas{
    position: absolute;
    background-color: rgb(44, 0, 102);
    border: 1px solid var(--texto-primario);
    box-shadow: 0px 0px 10px;
    border-radius: 10px;
    top: 33%;
    width: 20rem;
    height: 20rem;
}
.modalOpcoesProvas ul{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 20px;
    width: 100%;
}

#tituloAba{
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--texto-primario);
}

#fraseSumir{
    font-size: 12pt;
    margin-top: 20px;
}
#fraseSumir a:hover{
    color: var(--cor-primaria);
}

.itens{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.itens input {
    cursor: pointer;
    transform: scale(1.1);
}

.itens input:hover{
    transform: scale(1.5);
}

.frase-motivacional {
    /* background-color: var(--cor-secundaria); */
    background: radial-gradient(rgb(111, 0, 255), blue);
    border: 1px solid var(--cor-secundaria-destaque);
    width: 100%;
    height: 40%;
    padding: 20px;
    align-items: center;
    font-size: 25pt;
    display: flex;
    justify-content: center;
    text-align: center;
    font-style: italic;
    border-radius: 10px;
    margin-bottom: 50px;
}

.tarefa {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 10px;
    padding: 10px 20px;
    height: 50px;
    /* background-color: var(--input-fundo); */
    border: 1px solid var(--texto-primario);
    border-radius: 10px;
}
.funcionalidades ul {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.funcionalidades ul a, .funcionalidades button{
    width: 100%;
    height: 50px;
    font-size: 13pt;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--texto-primario);
    color: var(--texto-primario);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    background-color: transparent;
}
.funcionalidades ul a:hover, .funcionalidades button:hover{
    background: radial-gradient(circle, rgb(55, 0, 128) 40%, var(--cor-fundo) 100%);
    transform: scale(0.98);
}
.itensAtalho {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: hidden;
    gap: 0px;
    font-size: 15pt;
    font-weight: 400;
    background-color: transparent;
    cursor: default;
}
.itensAtalho ul li {
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: row;
    user-select: none;
}
.itensAtalho ul li:hover{
    border-left: 2px solid var(--cor-primaria);
}
.funcAdicionais .itens li:hover {
    background-color: var(--cor-hover);
}
.menu-link.active {
    color: var(--cor-secundaria-destaque);
    font-weight: bold;
    background-color: var(--cor-hover);
}
.item-historico {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin: 5px 0;
    background-color: #2d2d2d;
    border-radius: 5px;
}
.porcentagem {
    color: #4CAF50; /* Verde para acertos */
}
.erro {
    color: #ff4d4f; /* Vermelho para erros */
}
.tempo {
    color: #3a6eff; /* Azul para tempo */
}



::-webkit-scrollbar {
    width: 8px;
    background-color: transparent;
    /* border-top-right-radius: 10px;
    border-bottom-right-radius: 10px; */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    /* background-color: rgb(161, 65, 224); */
    background: linear-gradient(blue, rgb(75, 1, 97));
    /* border-top-right-radius: 10px;
    border-bottom-right-radius: 10px; */
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
    border-radius: 1vw;
}

@media (max-width: 800px) {
    body {
        height: 130dvh;
    }
    #spanTitulo {
        display: none;
    }

    .titulo p {
        font-size: 20pt;
    }

    header {
        height: auto;
        padding: 10px;
    }

    .frase-motivacional {
        font-size: 15pt;
        padding: 15px;
    }

    footer {
        position: fixed;
        background-color: var(--cor-fundo);
        bottom: 0;
        width: 100%;
        height: 10dvh;
        padding: 20px 10px;
        text-align: center;
        gap: 10px;
        z-index: 1000;
    }

}

@media (max-width: 600px) {
    .funcoesIniciais, 
    .resumo {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .funcoesIniciais .tarefasPendentes,
    .funcoesIniciais .funcAdicionais,
    .funcoesIniciais .atalhos,
    .taskDone, 
    .simuladosDone,
    .desafiosDone {
        width: 90%;
        height: auto;
    }

    header {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    header .titulo{
        display: none;
    }

    .infoPerfil {
        width: 100%;
        display: flex;
        align-items: center;
        flex-direction: row;
    }

    footer {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        max-width: 600px; 
        box-sizing: border-box;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .titulo p {
        font-size: 18pt;
    }

    .frase-motivacional {
        font-size: 14pt;
        padding: 10px;
    }

    .funcoesIniciais, 
    .resumo {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .funcoesIniciais .tarefasPendentes,
    .funcoesIniciais .funcAdicionais,
    .funcoesIniciais .atalhos,
    .taskDone, 
    .simuladosDone,
    .desafiosDone {
        width: 95%;
        height: auto;
    }
}