/* permissions-overlay.css */
.permissions-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 1); /* Fundo completamente opaco */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Overlay acima de tudo */
}

.overlay-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  width: 400px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.overlay-content h2 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #333;
}

.overlay-content p {
  font-size: 1em;
  margin-bottom: 20px;
  color: #555;
}

.accept-button {
  background: #007bff;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}

.accept-button:hover {
  background: #0056b3;
}

.loading-message {
  margin-top: 20px;
}

.progress-container {
  width: 100%;
  background: #f0f0f0;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 20px;
  background: #007bff;
  animation: progress 15s linear forwards;
}

@keyframes progress {
  0% { width: 0; }
  100% { width: 100%; }
}

.error-message {
  font-size: 0.9em;
  color: #d32f2f;
  margin-top: 10px;
}

.hidden {
  display: none;
}

/* Responsividade */
@media (max-width: 600px) {
  .overlay-content {
    width: 90%;
    padding: 15px;
  }

  .overlay-content h2 {
    font-size: 1.2em;
  }

  .overlay-content p {
    font-size: 0.9em;
  }

  .accept-button {
    padding: 8px 16px;
    font-size: 0.9em;
  }

  .progress-container {
    height: 15px;
  }
}