/* =========================
   ESTILO GERAL
========================= */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #eaf4ff, #f8fbff);
    color: #012a4a;
    margin: 0;
    padding: 30px 20px;
    min-height: 100vh;
}

h2,
h3 {
    text-align: center;
    margin: 8px 0;
    color: #012a4a;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 20px;
    color: #014f86;
}

.count-info {
    text-align: center;
    font-weight: bold;
    color: #014f86;
    margin: 15px 0;
    font-size: 16px;
}


/* =========================
   TABELA
========================= */

table {
    border-collapse: separate;
    border-spacing: 0;
    width: 90%;
    max-width: 1000px;
    margin: 25px auto;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 42, 74, 0.15);
}

/* Células */
th,
td {
    padding: 14px 16px;
    text-align: center;
    border: none;
    border-bottom: 1px solid #dbe9f5;
}

/* Cabeçalho */
th {
    background: linear-gradient(135deg, #014f86, #0077b6);
    color: white;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Linhas */
td {
    background-color: white;
    color: #123b56;
    transition: 0.2s ease;
}

/* Linhas alternadas */
tr:nth-child(even) td {
    background-color: #eef7ff;
}

/* Hover */
tr:hover td {
    background-color: #d7edff;
    color: #012a4a;
    transform: scale(1.01);
}

/* Remove a borda da última linha */
tr:last-child td {
    border-bottom: none;
}


/* =========================
   CONTAINER
========================= */

.container {
    width: 90%;
    max-width: 700px;
    margin: 50px auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 42, 74, 0.15);
    border: 1px solid #e0edf7;
}


/* =========================
   CAIXAS
========================= */

.box {
    width: 200px;
    height: 200px;

    color: white;
    font-size: 20px;
    font-weight: bold;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 18px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Efeito ao passar o mouse */
.box:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}


/* =========================
   CORES DAS CAIXAS
========================= */

.box:nth-child(1) {
    background: linear-gradient(135deg, #43a047, #66bb6a);
}

.box:nth-child(2) {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
}

.box:nth-child(3) {
    background: linear-gradient(135deg, #f4511e, #ff7043);
}


/* =========================
   RESPONSIVIDADE
========================= */

@media (max-width: 700px) {

    body {
        padding: 15px;
    }

    table {
        width: 100%;
        font-size: 14px;
    }

    th,
    td {
        padding: 10px 6px;
    }

    .container {
        width: 100%;
        padding: 20px;
        margin: 25px auto;
    }

    .box {
        width: 150px;
        height: 150px;
        font-size: 17px;
    }
}