/* ---------------- FORMULÁRIO ---------------- */
form#form-contato {
    max-width: 600px;
    margin: auto;
    font-family: Arial, sans-serif;
}

form#form-contato label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

form#form-contato input,
form#form-contato select,
form#form-contato textarea,
form#form-contato button {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    box-sizing: border-box;
}

#contador {
    text-align: right;
    font-size: 12px;
    color: #666;
}

form#form-contato button {
    border: none;
    margin-top: 20px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
}

form#form-contato button:hover {
    background-color: #45a049;
}

/* ---------------- TABELA DE CONTATOS ---------------- */
body {
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    margin: 20px;
    padding: 0;
    color: #333;
}

h1 {
    text-align: center;
    color: #333;
}

table#tabela-contatos {
    border-collapse: collapse;
    width: 100%;
    max-width: 1000px;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    table-layout: auto;
}

table#tabela-contatos th,
table#tabela-contatos td {
    border: 1px solid #ccc;
    padding: 10px 15px;
    text-align: left;
    color: #333;
    vertical-align: top;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Cabeçalho */
table#tabela-contatos th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
}

/* Linhas alternadas */
table#tabela-contatos tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover */
table#tabela-contatos tr:hover {
    background-color: #d1e7dd;
}

/* ---------- COLUNAS ESPECÍFICAS ---------- */

/* Nome */
table#tabela-contatos td:nth-child(1),
table#tabela-contatos th:nth-child(1) {
    width: 120px;
}

/* WhatsApp */
table#tabela-contatos td:nth-child(2),
table#tabela-contatos th:nth-child(2) {
    width: 150px;
}

/* DDI */
table#tabela-contatos td:nth-child(3),
table#tabela-contatos th:nth-child(3) {
    width: 50px;
}

/* País */
table#tabela-contatos td:nth-child(4),
table#tabela-contatos th:nth-child(4) {
    width: 100px;
}

/* E-mail */
table#tabela-contatos td:nth-child(5),
table#tabela-contatos th:nth-child(5) {
    width: 200px;
}

/* Descrição */
table#tabela-contatos td:nth-child(6),
table#tabela-contatos th:nth-child(6) {
    width: auto;
    min-width: 450px;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
}

/* Data */
table#tabela-contatos td:nth-child(7),
table#tabela-contatos th:nth-child(7) {
    width: 100px;
}

/* Hora */
table#tabela-contatos td:nth-child(8),
table#tabela-contatos th:nth-child(8) {
    width: 80px;
}

/* ---------------- BOTÃO ---------------- */
.botao-container {
    text-align: center;
    margin-top: 20px;
}

.botao-container button {
    background-color: #333333;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
}

/* ---------------- RESPONSIVIDADE ---------------- */
@media screen and (max-width: 600px) {
    form#form-contato input,
    form#form-contato textarea,
    form#form-contato button {
        width: 100%;
        margin-bottom: 15px;
    }

    table#tabela-contatos {
        min-width: 600px;
    }
}