/* Overlay exclusivo */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none; /* Escondido por padrão */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Exibir o modal ao aplicar a classe 'custom-show' */
.custom-modal-overlay.custom-show {
  display: flex;
}

/* Estilo do modal */
.custom-modal-box {
  background-color: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: custom-fadeIn 0.3s ease;
}

/* Cabeçalho do modal */
.custom-modal-header {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Corpo do modal */
.custom-modal-body {
  margin-bottom: 20px;
}

/* Rodapé do modal */
.custom-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Botões no rodapé */
.custom-modal-footer button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
}

.custom-btn-primary {
  background-color: #007bff;
  color: #fff;
}

.custom-btn-secondary {
  background-color: #6c757d;
  color: #fff;
}

/* Animação de entrada */
@keyframes custom-fadeIn {
  from {
      opacity: 0;
      transform: scale(0.95);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}




/* Estilo geral do modal */
.loading-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.loading-modal-box {
  background: white;
  border-radius: 8px;
  padding: 20px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.loading-modal-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

.loading-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* Estilo do spinner */
.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

/* Exibição do modal */
.loading-show {
  opacity: 1;
  visibility: visible;
}
