body {
  font-family: Arial, sans-serif;
  background-color: #f4f7f6;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Alinha no topo */
  min-height: 100vh;
  margin: 20px;
  color: #333;
}

.container {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 700px;
  box-sizing: border-box;
}

h1,
h2 {
  color: #0056b3;
  text-align: center;
  margin-bottom: 20px;
}

.card {
  background-color: #e9f2f9;
  border: 1px solid #d0e4f7;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px; /* Espaçamento entre os itens do grupo */
}

.input-group label {
  font-weight: bold;
  min-width: 120px; /* Garante que labels tenham um tamanho mínimo */
}

.input-group input[type="email"] {
  flex-grow: 1; /* Permite que o input preencha o espaço restante */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

button.primary {
  background-color: #007bff;
  color: white;
}

button.primary:hover {
  background-color: #0056b3;
}

button.secondary {
  background-color: #6c757d;
  color: white;
}

button.secondary:hover {
  background-color: #5a6268;
}

button.danger {
  background-color: #dc3545;
  color: white;
}

button.danger:hover {
  background-color: #c82333;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 15px; /* Espaçamento entre os botões */
  margin-top: 20px;
}

.hidden {
  display: none !important;
}

#permissionsList {
  background-color: #f8f8f8;
  border: 1px solid #eee;
  max-height: 250px; /* Limita a altura para scroll */
  overflow-y: auto;
  padding: 10px;
  border-radius: 4px;
  margin-top: 15px;
}

#permissionsList p {
  margin: 5px 0;
  padding: 3px 0;
  border-bottom: 1px dotted #e0e0e0;
}

#permissionsList p:last-child {
  border-bottom: none;
}

/* Modal Styling */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 450px;
  text-align: center;
  position: relative; /* Para posicionar o spinner */
}

.modal-content h3 {
  color: #0056b3;
  margin-bottom: 15px;
}

.modal-content p {
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Spinner for Loading */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #007bff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
