body { font-family: sans-serif; padding: 20px; max-width: 600px; margin: auto; }
input { margin-bottom: 10px; padding: 8px; width: 100%; display: block; }
button { padding: 10px; background: #007bff; color: white; border: none; cursor: pointer; }
#lista { margin-top: 20px; border-top: 1px solid #ccc; padding-top: 10px; }

/* Paleta de Cores Inspirada na Imagem */
:root {
    --bg-color: #f5f3e7;
    --card-bg: #ece9d8;
    --primary-green: #a3c5a1;
    --text-main: #4a4a4a;
    --text-sub: #888;
}

/* Botão Estilizado */
.btn-adicionar {
    background-color: var(--primary-green);
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 20px;
}

body {
    background-color: var(--bg-color);
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: var(--text-main);
    padding: 20px;
}

/* Container de Cards */
.lista-pacientes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

/* Estilo do Card de Paciente */
.paciente-card {
    background: #ece9d8;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(0,0,0,0.05);
    /* ADICIONE ESTA LINHA ABAIXO */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.paciente-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Barra de status offline */
#status-offline {
    display: none; /* Mantém escondido até o JS ativar */
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%); /* O segredo para centralizar horizontalmente */
    background-color: #ff9800; /* Laranja */
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
    z-index: 9999; /* Garante que fique acima de tudo */
    text-align: center;
    min-width: 250px;
}
/* Indicador de registros pendentes no botão */
.badge-pendente {
background: #f44336;
color: white;
border-radius: 50%;
padding: 2px 6px;
font-size: 10px;
margin-left: 5px;
display: none; /* Só aparece quando há itens na fila */
}


.avatar {
    width: 50px;
    height: 50px;
    background-color: #bdc3c7; /* Cinza do avatar */
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>');
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
}

.info h4 { margin: 0; color: #333; font-size: 1.1em; }
.info p { margin: 5px 0 0; color: #7f8c8d; font-size: 0.85em; }

/* Modal Styles */
.modal { display: none; position: fixed; z-index: 10001; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; }
.modal-content { background: white; padding: 25px; border-radius: 12px; width: 90%; max-width: 400px; }

.form-row input, .form-row select {
    flex: 1; /* Faz os campos dividirem o espaço igualmente */
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

/* Destaque para o botão cadastrar (Verde da imagem) */
.btn-cadastrar {
    background-color: #a3c5a1;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
}
.detalhes-container {
    max-width: 500px;
    background: #f9f8f0; /* Tom bege sutil */
}

.detalhes-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.avatar-grande {
    width: 80px;
    height: 80px;
    background: #bdc3c7; /* Cinza padrão */
    border-radius: 50%;
}

.acoes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dois botões por linha */
    gap: 15px;
}

.acoes-grid button {
    padding: 15px;
    border: 1px solid #a3c5a1;
    background: white;
    color: #4a4a4a;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.acoes-grid button:hover {
    background: #a3c5a1; /* Verde da marca ao passar o mouse */
    color: white;
}