/* Estilo do modal */
#loadingModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  display: none;
  /* Escondido por padrão */
}

#loadingModal .modal-content {
  width: 250px; /* Define uma largura fixa */
 /*height: 250px;  Define uma altura fixa */
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-size: 18px;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Estilo do conteúdo carregado */
#dataContainer {
  margin: 20px;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
}


.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.message {
  font-size: 20px;
  font-weight: bold;
  color: #4b5563;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  text-align: center;
}

.bars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 10px;
}

.bar {
  width: 8px;
  height: 20px;
  background-color: #3b82f6;
  border-radius: 4px;
  animation: bounce 1s infinite ease-in-out;
}

.bar:nth-child(2) {
  animation-delay: 0.2s;
}

.bar:nth-child(3) {
  animation-delay: 0.4s;
}

.bar:nth-child(4) {
  animation-delay: 0.6s;
}

.bar:nth-child(5) {
  animation-delay: 0.8s;
}

@keyframes bounce {

  0%,
  100% {
    height: 20px;
  }

  50% {
    height: 50px;
  }
}



/* Opacidade reduzida enquanto carrega */
.card.loading {
  opacity: 0.5; /* Torna o card semitransparente */
  pointer-events: none; /* Impede interações */
}

/* Overlay do Spinner */
.card .spinner-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6); /* Fundo semitransparente */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  display: none; /* Oculto por padrão */
}

/* Estilização do Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.2);
  border-top-color:#3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}


/* Exibe o spinner quando carregando */
.card.loading .spinner-container {
  display: flex;
}


.card-mini .spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.card-mini.loaded {
  opacity: 1; /* Remove a opacidade quando os dados carregam */
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7); /* Fundo opaco */
  z-index: 2;
}