/* Error Message */
#error-message {
  color: red;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
}

/* Gradient Title */
#page-title {
  background: linear-gradient(to right, #ab47bc, #6c63ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin: 1rem 0;
}

/* Container for form & results: responsive using flex-wrap */
#form-and-results-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  padding: 1rem;
}

/* Left Panel (Upload) */
#left-panel {
  flex: 1;
  min-width: 320px; /* helps on narrow screens */
}

#upload-form {
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}

/* Drag & Drop area */
.drop-area {
  border: 2px dashed #ccc;
  border-radius: 6px;
  padding: 2rem;
  cursor: pointer;
  transition: border-color 0.3s;
  margin-bottom: 1rem;
}

.drop-area p {
  font-size: 1rem;
  color: #666;
  margin: 0.5rem 0;
}

.drop-area.highlight {
  border-color: #6c63ff;
}

.uploaded-filename {
  font-style: italic;
  color: #333;
  margin-top: 1rem;
}

/* Preview Icon/Image */
.preview-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto 0 auto;
}

/* Style options (radios) */
#style-options {
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

#style-options label {
  font-weight: bold;
  cursor: pointer;
}

/* Buttons (Generate, Download) */
.btn {
  background: linear-gradient(45deg, #ab47bc, #6c63ff);
  border: none;
  padding: 10px 20px;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Right Panel (Result) */
#right-panel {
  flex: 1;
  min-width: 320px;
}

.result-section {
  border: 2px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}

.result-image {
  max-width: 100%;
  display: block;
  margin: 1rem auto;
}

/* Large Download button */
.download-btn {
  display: inline-block;
  margin-top: 1rem;
  font-size: 1.2rem;
  padding: 15px 30px;
}