* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f6f8;
    color: #1f2937;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   TOPO
   ========================= */

.topo {
    height: 70px;
    min-height: 70px;
    flex: 0 0 70px;
    box-sizing: border-box;

    background: white;
    border-bottom: 1px solid #e5e7eb;

    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 32px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
}

.sair {
    font-size: 14px;
    color: #6b7280;
}

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

.layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 220px;
    background: white;
    border-right: 1px solid #e5e7eb;
    padding: 30px 20px;
}

.sidebar a {
    display: block;
    padding: 12px 14px;
    margin-bottom: 8px;

    border-radius: 10px;
    font-weight: 500;
}

.sidebar a:hover {
    background: #f1f3f5;
}

.conteudo {
    flex: 1;
    padding: 40px;
}

/* =========================
   ESTUDO
   ========================= */

.estudo-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.estudo-header h1 {
    margin-bottom: 6px;
}

.contador {
    color: #6b7280;
    font-size: 14px;
}

/* =========================
   PROGRESSO
   ========================= */

.progresso {
    width: 100%;
    height: 8px;

    background: #e5e7eb;
    border-radius: 20px;

    overflow: hidden;
    margin: 20px 0 35px;
}

.progresso-preenchido {
    height: 100%;
    background: #222;
    border-radius: 20px;
}

/* =========================
   FLASHCARD
   ========================= */

.flashcard {
    background: white;

    min-height: 360px;

    border-radius: 20px;

    padding: 45px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08);

    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: center;
}

.rotulo {
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.5px;

    color: #9ca3af;

    margin-bottom: 20px;
}

.texto-card {
    font-size: 26px;
    line-height: 1.5;
}

.divisor {
    border: 0;
    border-top: 1px solid #e5e7eb;

    margin: 35px 0;
}

/* =========================
   BOTÕES
   ========================= */

.botao-principal {
    margin-top: 40px;

    border: 0;
    border-radius: 12px;

    padding: 14px 24px;

    font-size: 16px;
    font-weight: 600;

    background: #222;
    color: white;

    cursor: pointer;
}

.botao-principal:hover {
    opacity: 0.88;
}

/* =========================
   AVALIAÇÕES
   ========================= */

.avaliacoes {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;

    margin-top: 30px;
}

.opcao {
    text-align: center;
}

.intervalo {
    color: #6b7280;

    font-size: 12px;

    margin-bottom: 7px;
}

.opcao button {
    width: 100%;

    padding: 13px 8px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    background: white;

    font-weight: 600;
    cursor: pointer;
}

.opcao button:hover {
    background: #f3f4f6;
}

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

@media (max-width: 750px) {

    .sidebar {
        display: none;
    }

    .conteudo {
        padding: 20px;
    }

    .flashcard {
        padding: 25px;
        min-height: 320px;
    }

    .texto-card {
        font-size: 21px;
    }

    .avaliacoes {
        grid-template-columns:
            repeat(2, 1fr);
    }
}
/* =========================================
   USUÁRIO NO RODAPÉ DA SIDEBAR
   ========================================= */

.sidebar {
    display: flex;
    flex-direction: column;

    height: calc(100vh - 70px);

    position: sticky;
    top: 70px;
}

.usuario-menu {
    margin-top: auto;
    margin-left: 16px;
    margin-right: 16px;
    padding: 14px 12px;
    border-top: 1px solid #e5e7eb;

    color: #1f2937;
    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;
}

.usuario-menu + a {
    margin: 0 16px 16px;
    padding: 8px 12px;
    font-size: 14px;
}