/* Estilos gerais */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1c2333;
}

.container {
    width: 80%;
    margin: 0 auto; /* Centraliza o container na horizontal */
    padding: 20px;
}

h2 {
    color: #ffffff;
    text-align: center; /* Centraliza o texto */
}

/* Estilos para formulários */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 40%; /* Define a largura do formulário */
    margin: 0 auto; /* Centraliza o formulário */
    flex-direction: column;
}

label {
    font-weight: bold;
}

/* Ajuste dos campos de entrada */
input[type="text"],
input[type="password"],
input[type="date"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px; /* Adiciona espaçamento entre os campos */
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 16px;
    box-sizing: border-box;
}

input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    border: none;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Estilos para links */
a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Estilos para lista de pacientes */
.paciente {
    background-color: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.paciente p {
    margin: 0;
}

/* Estilos para mensagens de erro */
.error-message {
    color: #dc3545;
    font-weight: bold;
}

/* Estilos para a tabela lateral */
.content {
    display: flex;
    justify-content: center; /* Centraliza o conteúdo na horizontal */
    align-items: flex-start;
}

.pacientes {
    margin-right: 20px;
}

.sidebar {
    width: 30%;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.sidebar table {
    width: 100%;
    border-collapse: collapse;
}

.sidebar table td {
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

.sidebar table td:first-child {
    text-align: right;
    font-weight: bold;
    padding-right: 10px;
}

/* Estilos responsivos */
@media only screen and (max-width: 768px) {
    .container {
        width: 90%;
    }

    form {
        width: 100%;
    }

    .sidebar {
        width: 100%;
    }

    .content {
        flex-direction: column;
        align-items: center;
    }

    .pacientes {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* Estilos para botões */
button {
    padding: 10px 20px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

/* Estilos responsivos para botões */
@media only screen and (max-width: 768px) {
    button {
        width: 100%;
    }
}

/* Estilos para mensagem "Nenhum paciente encontrado." */
.no-results {
    color: #fff; /* Define a cor do texto como branca */
}
