@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

body {
  font-family: "Roboto", sans-serif;
  background-color: rgb(10, 10, 10);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.container {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 100%;
  max-width: 400px;
  z-index: 10;
}

h1 {
  color: #fff;
  margin-bottom: 10px;
}

p {
  color: #ddd;
  margin-bottom: 25px;
}

input {
  width: calc(100% - 22px);
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #333;
  border-radius: 6px;
  font-size: 16px;
  background-color: #222;
  color: #fff;
}

button {
  background-color: rgb(55, 119, 62);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: rgb(40, 85, 45);
}

#qrContainer {
  margin-top: 25px;
  padding: 15px;
  border: 1px dashed #555;
  border-radius: 8px;
  min-height: 256px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#qrcode-display canvas {
  margin: auto;
}

.download-options {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.download-options button {
  background-color: #555;
}

.download-options button:hover {
  background-color: #333;
}

/* --- Estilos do Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-content {
  background-color: #2c2c2c;
  color: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
  margin-top: 0;
}

#qrcode-preview {
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  margin: 20px auto;
  width: fit-content;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close-btn:hover {
  color: #fff;
}

.hidden {
  display: none;
  opacity: 0;
}

.modal-download-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}
