/* Estilos gerais */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 12px;
}

/* Estilos para o container principal */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Estilos para o conteÃºdo dividido em duas colunas */
.conteudo-dividido {
    display: flex;
    gap: 20px; /* EspaÃ§o entre as colunas */
    margin-top: 20px;
}

/* Estilos para a coluna da esquerda */
.coluna-esquerda {
    flex: 2; /* Ocupa 1 parte do espaÃ§o disponÃ­vel */
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.coluna-esquerda p{
    text-align: justify;
}

/* Estilos para a coluna da direita */
.coluna-direita {
    flex: 1; /* Ocupa 1 parte do espaÃ§o disponÃ­vel */
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Estilos para a coluna da direita */
.coluna-direita-sigilo {
    flex: 2; /* Ocupa 1 parte do espaÃ§o disponÃ­vel */
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Estilos para o formulÃ¡rio de login */
.coluna-direita form {
    display: flex;
    flex-direction: column;
}

.coluna-direita label {
    margin-bottom: 5px;
    font-weight: bold;
}

.coluna-direita input {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.coluna-direita button {
    padding: 10px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.coluna-direita button:hover {
    background-color: #28a745;
}

/* Estilos para os links */
.coluna-esquerda nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.coluna-esquerda nav ul li {
    margin-bottom: 10px;
}

.coluna-esquerda nav ul li a {
    text-decoration: none;
    color: #2e7d32;
    font-weight: bold;
    padding: 10px;
    border: 2px solid #2e7d32;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    display: block;
}

.coluna-esquerda nav ul li a:hover {
    background-color: #2e7d32;
    color: white;
}

@media (max-width: 768px) {
    .conteudo-dividido {
        flex-direction: column; /* Empilha as colunas verticalmente */
    }

    .coluna-esquerda, .coluna-direita {
        width: 100%; /* Faz as colunas ocuparem 100% da largura */
    }
}

/* Header */
header {
    background-color: #2e7d32;
    color: white;
    padding: 10px 0;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

header nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

header nav ul li a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: auto;
}

footer p {
    margin: 0;
}

/* Tabela de Demandas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f8f9fa;
}

textarea {
    width: 95%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

/* Estilos para os campos de formulÃ¡rio */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 20px auto;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

form select {
    width: 100%;
    padding: 10px;
    margin: 5px 0px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    box-sizing: border-box;
}

form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    box-sizing: border-box;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form select:focus {
    border-color: #2e7d32;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

form button {
    width: 100%;
    padding: 10px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #28a745;
}

/* Estilos para o menu de navegaÃ§Ã£o */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: #2e7d32;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #2e7d32;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #2e7d32;
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #28a745;
}

/* Estilos para a tabela */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f8f9fa;
}

/* Estilos para o botÃ£o */
.btn {
    display: inline-block;
    padding: 5px 10px;
    background-color: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #28a745;
}

/* Estilos para o dropdown de status */
form select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
}

/* Estilos para o formulÃ¡rio de status */
form {
    /*margin: 20px 0;*/
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

button {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #218838;
}

/* Estilos para a tabela */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f8f9fa;
}

/* Estilos para o botÃ£o */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #28a745;
}

/* Estilos para o botÃ£o de resposta */
.btn {
    display: inline-block;
    padding: 5px 10px;
    background-color: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #28a745;
}

/* Estilos para a linha do tempo */
.linha-do-tempo {
    margin: 20px 0;
    padding-left: 20px;
    border-left: 3px solid #2e7d32;
}

.resposta {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.resposta::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 15px;
    width: 12px;
    height: 12px;
    background-color: #2e7d32;
    border-radius: 50%;
    border: 2px solid white;
}

.resposta .admin {
    background-color: #e3f2fd; /* Cor de fundo para respostas do ADMIN */
    border-left: 4px solid #2e7d32; /* Borda Ã  esquerda para destacar */
}

.resposta .usuario {
    background-color: #f5f5f5; /* Cor de fundo para respostas do USUÃRIO */
    border-left: 4px solid #28a745; /* Borda Ã  esquerda para destacar */
}

.resposta p {
    margin: 5px 0;
}

.resposta strong {
    color: #333;
}

.resposta em {
    font-size: 0.9em;
    color: #666;
    display: block;
    margin-top: 5px;
}

.sucesso {
    color: green;
    background-color: #e8f5e9;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.erro {
    color: red;
    background-color: #ffebee;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

/* Estilos para o Ã­cone de informaÃ§Ã£o */
.fa-info-circle {
    margin-right: 10px;
    color: #2e7d32;
    cursor: pointer;
    font-size: 1.2em;
}

.fa-info-circle:hover {
    color: #28a745;
}

/* Estilos para os campos do formulÃ¡rio */
form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input, form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    box-sizing: border-box;
}

form button {
    width: 100%;
    padding: 10px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #28a745;
}

/* Estilos para o botÃ£o de estatÃ­sticas */
nav ul li a {
    text-decoration: none;
    color: #2e7d32;
    font-weight: bold;
    padding: 10px;
    border: 2px solid #2e7d32;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    display: block;
}

nav ul li a:hover {
    background-color: #2e7d32;
    color: white;
}

/* Estilos para as tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f8f9fa;
}

/* Estilos para o botÃ£o de voltar */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #28a745;
}

/* Estilos para os status */
.status-em-atendimento {
    color: #2e7d32; /* Azul para EM ATENDIMENTO */
}

.status-atendidos {
    color: #28a745; /* Verde para ATENDIDOS */
}

.status-indeferidos {
    color: #dc3545; /* Vermelho para INDEFERIDOS */
}

/* Estilos para a pÃ¡gina de consultas */
.erro {
    color: red;
    background-color: #ffebee;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

/* Estilos para o formulÃ¡rio de consulta */
form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

form button {
    width: 100%;
    padding: 10px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #28a745;
}

/* Estilos para a mensagem de sucesso */
.mensagem-sucesso {
    background-color: #e8f5e9; /* Fundo verde claro */
    color: #2e7d32; /* Texto verde escuro */
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid #c8e6c9; /* Borda verde */
}

.mensagem-sucesso strong {
    font-size: 1.2em;
    color: #1b5e20; /* Texto verde mais escuro */
}

/* Estilos para o botÃ£o de voltar */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #28a745;
}

/* Estilos para a div do topo */
/* Estilos para a div do topo */
.topo {
    width: 100%;
    background: linear-gradient(135deg, #2e7d32, #28a745); /* Gradiente azul */
    color: white;
    padding: 20px 0px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.conteudo-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.texto-topo {
    text-align: left;
}

.texto-topo h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.texto-topo p {
    font-size: 1.2em;
    margin-bottom: 0;
}

.icones {
    display: flex;
    gap: 20px;
}

.icones i {
    font-size: 2.5em;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s, transform 0.3s;
}

.icones i:hover {
    color: white;
    transform: scale(1.2);
}

/* Estilos para o container de grÃ¡fico e tabela */
.grafico-tabela {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
}

.grafico {
    flex: 1;
    max-width: 50%;
}

.tabela {
    flex: 1;
    max-width: 50%;
}

/* Estilos para as tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f8f9fa;
}

/* Estilos para a mensagem de erro */
.mensagem-erro {
    background-color: #ffebee; /* Fundo vermelho claro */
    color: #dc3545; /* Texto vermelho */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #dc3545; /* Borda vermelha */
}

/* Estilo bÃ¡sico para o container */
.upload-container {
    text-align: center;
    margin-top: 50px;
}

/* Esconde o input de arquivo padrÃ£o */
#file-upload {
    display: none;
}

/* Estilo para o botÃ£o personalizado */
.custom-upload {
    /*display: inline-block;*/
    padding: 10px 20px;
    background-color: #c3c3c3;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}

/* Efeito hover no botÃ£o */
.custom-upload:hover {
    background-color: #28a745;
}

/* Estilo para quando um arquivo Ã© selecionado */
.custom-upload::after {
    content: "Nenhum arquivo selecionado";
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

/* Altera o texto quando um arquivo Ã© selecionado */
#file-upload:valid + .custom-upload::after {
    content: "Arquivo selecionado";
    color: green;
}