/* =====================
   Reset + Fontes
===================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100dvh;
    background: linear-gradient(180deg, #f7f4ef, #eef4f7);
    color: #2b2b2b;
    padding: 40px 20px;
}

/* =====================
   Título
===================== */
h1 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #1f3a44;
}

/* =====================
    Imagem
===================== */
img {
    display: block;
    margin: 12px auto 32px auto;

    width: 170px;
    height: 170px;
    object-fit: cover;

    border-radius: 50%;
    border: 3px solid #9fc9d9;

}

/* =====================
   Busca
===================== */
input[type="text"] {
    display: block;
    margin: 0 auto 16px auto;
    width: 100%;
    max-width: 420px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #d8d2c7;
    background: #fffdfa;
    font-size: 1rem;
}

input[type="text"]:focus {
    outline: none;
    border-color: #9fc9d9;
}

/* =====================
   Botão
===================== */
button {
    display: block;
    margin: 0 auto 36px auto;
    padding: 12px 30px;
    border-radius: 12px;
    border: none;
    background: #9fc9d9;
    color: #1f3a44;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background: #8bbccc;
}

/* =====================
   Tabela (Desktop)
===================== */
table {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fffdfa;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.tabela-escondida {
    display: none;
}

.tabela-visivel {
    display: table;
}

thead {
    background: #dcecf2;
}

th {
    padding: 14px 12px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f3a44;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

td {
    padding: 14px 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid #ece6dc;
}

tbody tr:hover {
    background: #f1f7fa;
}

/* =====================
   Mensagem
===================== */
.mensagem {
    text-align: center;
    margin: 24px auto;
    font-size: 0.95rem;
    color: #8a8a8a;
    display: none;
}

/* =====================
   MOBILE → Cards
===================== */
@media (max-width: 768px) {

    table,
    thead,
    tbody,
    th,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    table {
        background: transparent;
        box-shadow: none;
    }

    tbody tr {
        background: #fffdfa;
        margin-bottom: 16px;
        border-radius: 16px;
        padding: 14px 16px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    }

    td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid #eee6db;
        font-size: 0.95rem;
    }

    td:last-child {
        border-bottom: none;
    }

    td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #1f3a44;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .tabela-visivel {
        display: block;
    }
}
