/* =================== CONFIGURAÇÕES GERAIS =================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: #3498db;
}

/* =================== CONTÊINERES =================== */
.container, .card {
    max-width: 400px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    margin: auto;
}

/* =================== FORMULÁRIOS =================== */
form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

textarea {
    resize: none;
}

.form-group {
    margin-bottom: 1rem;
}

/* =================== NIVEL DE ACESSO =================== */
.nivel-acesso {
    display: flex;
    gap: 1rem; /* Espaçamento entre os itens */
    align-items: center; /* Centraliza verticalmente */
    margin-top: 0.5rem;
}

.nivel-acesso label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
}

input[type="radio"] {
    margin: 0;
}

/* =================== TABELAS =================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    text-align: left;
    padding: 10px;
    border: 1px solid #ccc;
}

table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

table td button {
    margin-right: 5px;
}

table td form {
    display: inline;
}

/* =================== BOTÕES =================== */
button, .button {
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    text-align: center;
    text-decoration: none;
}

button:hover, .button:hover {
    background-color: #34495e;
}

.button-action {
    margin-bottom: 20px;
    background-color: #3498db;
    font-size: 14px;
}

.button-action:hover {
    background-color: #2980b9;
}

/* =================== MENU SUPERIOR =================== */
.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    padding: 10px 20px;
    color: white;
}

.menu .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.menu .user-info {
    font-size: 14px;
    color: #f1c40f;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu ul li {
    margin: 0 15px;
}

.menu ul li a:hover {
    color: #3498db;
}

/* =================== CONTEÚDO PRINCIPAL =================== */
.main-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 10px auto 20px;
    gap: 20px;
    max-width: 1200px;
}

.column-left, .column-right {
    
    flex: 1;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* =================== MULTI-SELECT =================== */
.multi-select-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.list-container, .transfer-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.list-container select {
    width: 200px;
    height: 150px;
    padding: 0.5rem;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.transfer-buttons-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Espaçamento entre os botões */
}

.transfer-button {
    width: 35px; /* Largura ajustada */
    height: 35px; /* Altura ajustada */
    font-size: 18px; /* Tamanho da fonte dos ícones */
    cursor: pointer;
    border: 1px solid #ccc; /* Borda leve */
    border-radius: 50%; /* Deixa os botões redondos */
    background-color: #3498db; /* Cor de fundo */
    color: white; /* Cor do texto/ícone */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.transfer-button:hover {
    background-color: #2980b9; /* Cor de hover */
    transform: scale(1.1); /* Leve aumento no hover */
}


/* =================== MODAL =================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fundo semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    width: 600px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    position: relative;

    margin: auto;
    top: 10%; /* Centraliza verticalmente */
    align-items: center;

}
.modal-content h2 {
    font-size: 20px;
    color: #2c3e50; /* Cor do título */
}

.close {
    position: absolute; /* Posiciona relativo ao modal */
    top: 10px;
    right: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Animação de hover */
}

.modal-close:hover {
    background-color: #c9302c;
}

.log-item {
    padding: 10px; /* Espaçamento interno */
    background-color: #f9f9f9; /* Cor de fundo */
    border: 1px solid #ddd; /* Borda leve */
    border-radius: 5px; /* Bordas arredondadas */
    margin-bottom: 10px; /* Espaçamento entre logs */
    text-align: left; /* Alinhamento do texto */
}

.log-item p {
    margin: 5px 0; /* Margem entre parágrafos */
    font-size: 14px;
    line-height: 1.6;
}

/* Estilização para botões lado a lado */
.modal-actions {
    display: flex; /* Torna os itens flexíveis */
    justify-content: center; /* Centraliza os botões horizontalmente */
    align-items: center; /* Centraliza os botões verticalmente */
    gap: 20px; /* Espaçamento entre os botões */
}

.modal-actions .button,
.modal-actions .modal-close {
    flex: 1; /* Tamanho igual para ambos */
    text-align: center; /* Centraliza o texto dentro dos botões */
    padding: 10px 20px; /* Espaçamento interno */
    border-radius: 5px; /* Bordas arredondadas */
    font-size: 14px;
    cursor: pointer;
}

/* Botão padrão */
.modal-actions .button {
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border: none;
    transition: background-color 0.3s ease;
}

.modal-actions .button:hover {
    background-color: #000000;
}

/* Botão de fechar */
.modal-actions .modal-close {
    background-color: #d9534f;
    color: white;
}

.modal-actions .modal-close:hover {
    background-color: #c9302c;
}



/* =================== ALERTAS =================== */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

.alert-sucesso {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-erro {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =================== RODAPÉ =================== */
.footer {
    text-align: center;
    padding: 10px;
    background-color: #2c3e50;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
}
/* =================== RELATÓRIO =================== */


.relatorio-container {
    width: 100%;
    margin: 20px auto;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.relatorio-titulo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.relatorio-painel {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
}

.relatorio-painel p {
    margin: 5px 0;
    font-size: 16px;
    color: #333;
}

.relatorio-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.relatorio-filtros label {
    font-weight: bold;
    font-size: 14px;
}

.relatorio-filtros select,
.relatorio-filtros button {
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.relatorio-filtros button {
    background-color: #2c3e50;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.relatorio-filtros button:hover {
    background-color: #34495e;
}

.relatorio-tabela {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.relatorio-tabela th,
.relatorio-tabela td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.relatorio-tabela th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.relatorio-tabela tr:nth-child(even) {
    background-color: #f9f9f9;
}

.relatorio-tabela tr:hover {
    background-color: #f1f1f1;
}

.relatorio-tabela a {
    color: #3498db;
    text-decoration: none;
}

.relatorio-tabela a:hover {
    text-decoration: underline;
}
.relatorio-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Ajusta a altura dos dois blocos para serem iguais */
    gap: 20px;
}

.relatorio-painel {
    flex: 2; /* 60% do espaço total */
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza o conteúdo verticalmente */
}

.relatorio-filtros {
    flex: 3; /* 60% do espaço total */
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center; /* Centraliza o conteúdo verticalmente */
}


/* =================== SETA E ORDEN =================== */

.ordenavel {
    text-decoration: none;
    color: #007bff;
    font-weight: normal;
}

.ordenavel:hover {
    text-decoration: underline;
    color: #0056b3;
}

.btn-filtrar {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.btn-filtrar:hover {
    background-color: #0056b3;
}

.btn-acao {
    color: #007bff;
    text-decoration: none;
}

.btn-acao:hover {
    color: #0056b3;
    text-decoration: underline;
}


/* =================== Grafico =================== */
 
.container_grafico {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}       

.title_grafico {
    text-align: center;
    margin-bottom: 20px;
    color: rgb(0, 0, 0);
}

.grid_grafico {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colunas iguais */
    gap: 20px;
}

.card_grafico:first-child {
    grid-column: span 3; /* O primeiro gráfico ocupa toda a linha */
    height: 240px; /* Mesma altura dos outros gráficos */
    display: flex;
    align-items: center; /* Centraliza verticalmente o conteúdo */
    justify-content: center; /* Centraliza horizontalmente o conteúdo */
}

.card_grafico {
    background: #374151;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #4b5563;
    height: 240px; /* Altura fixa para os gráficos inferiores */
    display: flex;
    align-items: center; /* Centraliza o conteúdo */
    justify-content: center;
}

.card_grafico canvas {
    max-width: 100%; /* Garante que o gráfico se ajuste horizontalmente */
    max-height: 100%; /* Garante que o gráfico se ajuste verticalmente */
    width: auto; /* Preserva proporção do gráfico */
    height: auto; /* Preserva proporção do gráfico */
}


/* =================== LOCALIZAR =================== */
.localizar-container {
    width: 60%;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    
}

/* Container da lista de sugestões */
.suggestions-box {
    position: absolute;
    background: white;
    width: 100%;
    left: 0;
    border-radius: 4px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: hidden;
    padding: 0; /* Remove espaçamento extra */
    list-style: none; /* Remove os marcadores (pontos) */
    margin-top: 2px; /* Reduza esse valor para diminuir a distância */
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.2s;
    list-style: none; /* Garante que os pontos desapareçam */
}

.suggestion-item:last-child {
    border-bottom: none; /* Remove a última borda para um visual mais limpo */
}

.suggestion-item:hover {
    background-color: #f1f1f1;
}

.suggestion-item.selected {
    background-color: #2c3e50;
    color: white;
}


input#search {
    width: 100%;
    box-sizing: border-box; /* Evita que padding aumente a largura */
}

/* Quando não há resultados */
.no-results {
    padding: 10px;
    color: #888;
    text-align: center;
}

/* =================== RESPONSIVIDADE =================== */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .column-left, .column-right {
        flex: none;
        width: 100%;
    }
}
