/* ==================== */
/*   VARIÁVEIS GERAIS   */
/* ==================== */
:root {
    --primary: #007bff;
    --primary-dark: #0056b3;

    --success: #27ae60;
    --success-dark: #1e8449;

    --warning: #f1c40f;
    --warning-dark: #d4ac0d;

    --danger: #e74c3c;
    --danger-dark: #c0392b;

    --bg: #f0f2f5;
    --text: #2d3436;
    --card-bg: #ffffff;

    --radius: 16px;
    --shadow: 0 4px 14px rgba(0,0,0,0.10);
}

/* ==================== */
/*      ESTRUTURA        */
/* ==================== */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    margin: 0;
    padding: 35px;
}

.box {
    width: 100%;
    max-width: 820px;       /* AUMENTA PARA TELAS MAIORES */
    background: var(--card-bg);
    padding: 35px;
    border-radius: var(--radius);
    margin: auto;
    box-shadow: var(--shadow);
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==================== */
/*        TÍTULOS        */
/* ==================== */
h2, h3 {
    color: var(--text);
    margin-bottom: 20px;
    text-align: center;
    font-size: 26px;
}

/* ==================== */
/*       INPUTS          */
/* ==================== */
label {
    font-weight: bold;
    color: #636e72;
    margin-left: 3px;
    font-size: 18px;
}

input, select {
    width: 100%;
    padding: 14px;
    margin: 8px 0 18px 0;
    border: 2px solid #dfe6e9;
    border-radius: var(--radius);
    transition: 0.2s;
    font-size: 18px;
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(0,123,255,0.4);
}

/* ==================== */
/*        BOTÕES         */
/* ==================== */
button, .btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    border: none;
    color: white;
    font-size: 18px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: 0.25s;
    text-decoration: none;
    text-align: center;
    display: block;
    margin-top: 12px;
}

button:hover, .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==================== */
/*   GRID DO PROGRESSO   */
/* ==================== */
.blocos-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.bloco {
    padding: 18px 10px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    color: white;
    box-shadow: var(--shadow);
    transition: 0.25s;
    user-select: none;
}

/* CORES */
.bloco.ok {
    background: var(--success);
    border: 2px solid var(--success-dark);
}
.bloco.parcial {
    background: var(--warning);
    color: #4a4a4a;
    border: 2px solid var(--warning-dark);
}
.bloco.divergente {
    background: var(--danger);
    border: 2px solid var(--danger-dark);
}

/* HOVER */
.bloco:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* ==================== */
/*  CAIXA FINALIZADA    */
/* ==================== */
.finalizada {
    background: var(--success);
    padding: 24px;
    border-radius: var(--radius);
    color: white;
    text-align: center;
    box-shadow: var(--shadow);
    font-size: 20px;
}

/* ==================== */
/*    VOLTAR LINK       */
/* ==================== */
.voltar {
    color: var(--primary);
    text-decoration: none;
    font-size: 18px;
    display: inline-block;
    margin-top: 15px;
}

.voltar:hover {
    text-decoration: underline;
}

/* BOTÃO SAIR */
.btn-sair {
    display: inline-block;
    background: #b2bec3;
    color: #2d3436;
    padding: 12px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: bold;
    float: right;
    margin-bottom: 18px;
    transition: 0.2s;
    font-size: 16px;
}

.btn-sair:hover {
    background: #636e72;
    color: white;
}

/* ==================== */
/*   RESPONSIVIDADE     */
/* ==================== */
@media (max-width: 1024px) {   /* Tablets */
    .box {
        padding: 25px;
        max-width: 90%;
    }

    button, .btn {
        padding: 14px;
        font-size: 17px;
    }

    label, input, select {
        font-size: 17px;
    }
}

@media (max-width: 600px) {    /* Celulares grandes */
    body { padding: 20px; }
    
    h2 { font-size: 22px; }
    
    .box {
        padding: 20px;
    }

    .blocos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    button, .btn {
        padding: 12px;
        font-size: 16px;
    }
}
