body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background: #e0f7fa;
  color: #333;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0;
}

/* Upload Section */
.upload-section {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  position: relative;
  margin-bottom: 20px;
}

.upload-section h1 {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 700;
}

/* File Input Container - Isolado apenas no botão de upload */
.file-input-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.btn-upload {
  position: relative;
  display: inline-block;
  overflow: hidden;
  background: #005fd2;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-upload:hover {
  background: #e9a226;
  transform: scale(1.05);
}

.btn-upload input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  display: block;
}

/* Canvas Container */
.canvas-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 20px auto;
  background: #b2dfdb;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.canvas-container canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none; /* Impede a tela de rolar enquanto arrasta no mobile */
}

/* Slider Container */
.slider-container {
  margin: 20px 0;
}

.slider-container label {
  font-size: 16px;
  display: block;
  margin-bottom: 10px;
}

.slider-container input[type="range"] {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  appearance: none;
  -webkit-appearance: none;
  height: 8px;
  background: #ddd;
  border-radius: 15px;
  outline: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #005fd2;
  border-radius: 50%;
  cursor: pointer;
}

.slider-container input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #005fd2;
  border-radius: 50%;
  cursor: pointer;
}

.slider-container span {
  font-size: 16px;
  font-weight: bold;
  display: block;
  margin-top: 5px;
}

/* Button Group */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.btn {
  background: #005fd2;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.2s ease;
  outline: none;
  width: 100%;
  max-width: 300px;
}

.btn:hover {
  background: #e9a226;
  transform: scale(1.05);
}

.btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

/* Download Options */
.download-options {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.download-options label {
  font-size: 16px;
}

.download-options select {
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  border: 3px solid #ccc;
  font-size: 16px;
  background: #ffffff;
  color: #005fd2;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.download-options select:hover {
  border-color: #005fd2;
}

/* Template Selector Styles */
.template-selector {
  margin-bottom: 20px;
}

.template-selector label {
  font-size: 16px;
  display: block;
  margin-bottom: 10px;
}

.destaque {
  font-size: 16px;
  font-weight: bold;
  padding: 10px;
}

.template-selector select {
  padding: 10px;
  border-radius: 8px;
  border: 3px solid #ccc;
  font-size: 16px;
  font-weight: bold;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  background: #ffffff;
  color: #005fd2;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.template-selector select:hover {
  border-color: #005fd2;
}

/* Media Queries */
@media (max-width: 480px) {
  .btn {
    font-size: 16px;
    padding: 10px 16px;
    width: 90%;
  }

  .slider-container input[type="range"] {
    width: 90%;
  }
}