/* index.css */

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: center;
  background-color: #f9f9f9;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  width: 200px;
  border-top: 1px solid #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content .cadastro-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Adicione essas regras CSS */
.dropdown-content .cadastro-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  opacity: 1;

  display: block;
  transition: opacity 0.3s;
}

.dropdown-content .cadastro-list li {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.dropdown-content .cadastro-list li:last-child {
  border-bottom: none;
}

.dropdown-content .cadastro-list a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 10px;
  transition: background-color 0.3s;
}

.dropdown-content .cadastro-list a:hover {
  background-color: #f0f0f0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

#menuToggle {
  display: none;
}

.main-nav {
  background-color: #333;
}

.main-nav ul {
  display: flex;
  justify-content: space-around;
  /* Distribui o espaço igualmente entre os itens */
  align-items: center;
  list-style-type: none;
  /* Remove os marcadores de lista */
  padding: 0;
  margin: 0;
}

.main-nav ul li {
  flex: 1;
  /* Garante que cada item ocupe um espaço igual */
  text-align: center;
  /* Centraliza o texto dentro dos itens */
  margin: 0;
  /* Remove margens adicionais */
}

.main-nav .nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 5px;
  display: block;
}

.main-nav .nav-link:hover {
  background-color: #555;
}

.main-nav ul li a {
  display: block;
  padding: 6px 15px;
  text-decoration: none;
  color: #ecf0f1;
  font-weight: bold;
}

/* Estilos para telas pequenas (até 767px) */
@media only screen and (max-width: 767px) {
  #menuToggle {
    display: inline-block;
    background-color: #3498db;
    color: #ecf0f1;
    border: none;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    font-size: 24px;
  }

  .main-nav ul {
    display: none;
    /* Esconde o menu inicialmente */
    flex-direction: column;
    padding: 0;
  }

  .main-nav.show ul {
    display: flex;
    /* Mostra o menu quando a classe 'show' está presente */
  }

  .main-nav li {
    display: block;
    margin: 10px 0;
  }

  .main-nav .nav-link {
    padding: 6px 0;
    text-align: center;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    width: 200px;
    border-top: 1px solid #ddd;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .menu-button {
    display: block;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 10px;
    cursor: pointer;
    text-align: center;
  }
}

/* Estilos para telas médias (768px a 1023px) */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  main {
    padding: 1.5em;
  }

  form {
    width: 60%;
  }

  .main-nav ul {
    justify-content: center;
  }
}

/* Estilos para telas grandes (a partir de 1024px) */
@media only screen and (min-width: 1024px) {
  form {
    width: 40%;
  }

  .main-nav ul {
    justify-content: flex-end;
  }

  #menuToggle {
    display: none;
    /* Esconde o botão de menu em telas grandes */
  }
}

#historicoTransacoesChart {
  width: 100%;        /* Para ocupar toda a largura da tela */
  height: 300px;      /* Defina a altura que desejar */
  max-height: 400px;  /* Opcional: limite a altura máxima */
}

#volumeFinanceiroChart {
  width: 100%;        /* Para ocupar toda a largura da tela */
  height: 300px;      /* Defina a altura que desejar */
  max-height: 400px;  /* Opcional: limite a altura máxima */
}



.mensagem {
  font-size: 16px;
  text-align: justify;
  margin: 0 10px;
  padding-bottom: 20px;
}

#transactions,
h2 {
  margin-bottom: 2em;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  margin: auto;
}

label {
  margin-bottom: 0.5em;
  font-weight: bold;
}

select,
input {
  padding: 8px;
  margin-bottom: 1em;
}

button {
  padding: 8px;
  background-color: #2ecc71;
  color: #fff;
  border: none;
  cursor: pointer;
  margin-bottom: 10px;
}

button:hover {
  background-color: #27ae60;
}

.table-responsive {
  margin: auto;
  width: 100%;
  max-width: 850px;
  overflow: auto;
  justify-content: space-between;
}

.btnfilter {
  text-align: center;
  justify-content: space-between;
  min-width: 90px;
}

#searchInput {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 16px;
}

.button-status-active {
  background-color: green;
  color: white;
}

.button-status-inactive {
  background-color: red;
  color: white;
}

#logoutButton {
  background-color: #2ecc71;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0.5em;
  position: absolute;
  top: 0;
  right: 0;
  min-width: 50px;
}

#logoutButton:hover {
  background-color: #27ae60;
}

#ideaTable td {
  border-bottom: 1px solid #000000;
}

td.descricao {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tooltip {
  position: relative;
  display: inline-block;
  width: 100%;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  width: 200px;
  border-top: 1px solid #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content .cadastro-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.dropdown-content .cadastro-list li {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.dropdown-content .cadastro-list li:last-child {
  border-bottom: none;
}

.dropdown-content .cadastro-list a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 10px;
  transition: background-color 0.3s;
}

.dropdown-content .cadastro-list a:hover {
  background-color: #f0f0f0;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#comentariosList {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

#user-container {
  display: flex;
  align-items: center;
}

#user-info-container {
  margin-right: 10px;
}

#logoutButton {
  background-color: #2ecc71;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0.5em;
  position: absolute;
  top: 0;
  right: 0;
  min-width: 50px;
}

#logoutButton:hover {
  background-color: #27ae60;
}



/*----------------graficos--------------------*/

/* Define o tamanho do canvas */
#grafico {
  width: 300px;
  /* Largura do gráfico */
  height: 200px;
  /* Altura do gráfico */
}