/* Reset e base mobile-first */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

/* Header fixo */
.header {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    margin-top: 30px;
}

.logo-main {
    width: 150px;
    height: auto;
}

.logo-secondary {
    width: 90px;
    /* 60% menor */
    height: auto;
    margin-left: 10px;
}

.filter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centraliza horizontalmente */
    justify-content: center;
    /* Centraliza verticalmente */
    text-align: center;
    /* Centraliza o texto do label */
    margin-bottom: 30px;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

select {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    min-height: 44px;
}

/* Dashboard */
.dashboard {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.dashboard h3 {
    margin-bottom: 10px;
    color: #0f4b91;
}

.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat {
    background: linear-gradient(135deg, #0f4b91, #0d2370);
    color: #fff;
    border-radius: 5px;
    padding: 10px;
    margin: 5px;
    flex: 1 1 100px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    font-size: 24px;
}

.pdf-btn {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(135deg, #0f4b91, #0d2370);
    cursor: pointer;
    min-height: 44px;
}

.pdf-btn:hover {
    background: linear-gradient(135deg, #1a5bb8, #14308f);
}

/* Contatos - Cards empilhados em mobile */
.contacts-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px 15px 60px 15px;
    /* Espaço extra na parte inferior para o botão fixo */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.2s;
}

.contact-card:hover {
    transform: scale(1.02);
}

h2 {
    font-size: 18px;
    margin-bottom: 5px;
    word-wrap: break-word;
}

p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* Botão WhatsApp fixo na parte inferior */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 30px);
    /* Ajusta para margem interna do card */
    padding: 12px;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    min-height: 44px;
    background: linear-gradient(135deg, #0f4b91, #0d2370);
    gap: 8px;
    /* Espaço entre ícone e texto */
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    transition: transform 0.2s, background 0.2s;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    /* Aumenta ligeiramente no hover */
    background: linear-gradient(135deg, #1a5bb8, #14308f);
    /* Gradiente mais claro no hover */
}

/* Ícone do WhatsApp */
.whatsapp-icon {
    width: 24px;
    /* Tamanho fixo para o ícone */
    height: 24px;
    stroke: #fff;
    /* Cor do ícone */
    stroke-width: 2;
    /* Espessura da linha */
    flex-shrink: 0;
    /* Evita que o ícone seja distorcido */
}

/* Check enviado */
.sent-check {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
    /* Só aparece quando marcado */
    width: 32px;
    /* área do container */
    height: 32px;
    border-radius: 50%;
    background-color: #28a745;
    /* fundo branco para destacar do card */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.sent-check svg {
    width: 20px;
    /* reduz o tamanho do ícone */
    height: 20px;
    stroke: #ffffff;
    /* mantém o verde original */
    margin-left: 5px;
    margin-top: 5px;
}

/* Responsividade para desktop */
@media (min-width: 768px) {
    .contacts-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-card {
        width: 300px;
    }

    .filter-container {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 20px;
    }

    select {
        width: auto;
    }

    .stats {
        justify-content: center;
    }

    .stat {
        flex: 0 1 200px;
    }
}