:root {
    --primary: #2563eb;
    --bg-body: #f1f5f9;
    --text-main: #1e293b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

/* 1. ESTRUTURA DO BODY */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* 2. MENU NO TOPO */
.menu {
    width: 100%;
    background: #1e293b;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.menu a button {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

/* 3. ÁREA DE CONTEÚDO CENTRALIZADA */
.conteudo {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

/* 4. CONTAINER DAS BOXES */
.container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 95%;
    max-width: 850px;
    justify-content: center;
    align-items: stretch;
    margin: auto;
}

/* 5. BOXES */
.card, .dados {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    flex: 1; 
    min-width: 280px;
    height: fit-content;
}

/* 🔥 IMPORTANTE: permite posicionamento do botão */
.stats {
    position: relative;
}

/* 🗑 BOTÃO LIMPAR PROGRESSO */
.btn-clear {
    position: absolute;
    top: 10px;
    right: 10px;

    background: #ef4444;
    color: white;
    border: none;

    width: 35px;
    height: 35px;

    border-radius: 50%;
    cursor: pointer;

    font-size: 23px;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s;
}

.btn-clear:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Tipografia */
.question {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
}

button {
    display: block;
    width: 100%;
    margin: 6px 0;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    background: #f8fafc;
    font-size: 13px;
    transition: all 0.2s;
}

button:hover {
    background: #f1f5f9;
    border-color: var(--primary);
}

.selected {
    background: var(--primary) !important;
    color: white;
}

/* 6. BOTÕES DE AÇÃO */
#btn-verificar {
    background-color: #22c55e;
    color: white;
    font-weight: bold;
    border: none;
    margin-top: 15px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 3px 0 #16a34a;
}

#btn-verificar:hover {
    background-color: #16a34a;
    transform: translateY(2px);
    box-shadow: 0 1px 0 #16a34a;
}

#btn-proxima-quiz {
    background-color: #f59e0b;
    color: white;
    font-weight: bold;
    border: none;
    margin-top: 8px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 3px 0 #d97706;
}

#btn-proxima-quiz:hover {
    background-color: #d97706;
    transform: translateY(2px);
    box-shadow: 0 1px 0 #d97706;
}

/* 7. PROGRESSO */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 12px 0;
}

#progress {
    height: 100%;
    background: #22c55e;
    width: 0%;
    transition: width 0.3s ease;
}

/* 8. RESPONSIVO */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .conteudo {
        align-items: flex-start;
        padding-top: 20px;
    }
    .card, .dados {
        width: 100%;
        min-width: unset;
    }
}

.label-contabil {
    font-size: 10px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: bold;
    padding-bottom: 5px;
    border: none !important;
}

thead th {
    background: transparent !important;
}