/* ===== Reset and base styles ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f2f5;
  color: #333;
  padding: 1rem;
  line-height: 1.4;
}

.container {
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

/* ===== Headings ===== */
h1 {
  text-align: center;
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
}

/* ===== File input ===== */
.file-input-wrapper input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  cursor: pointer;
}

/* ===== Sliders ===== */
.slider-group {
  margin-top: 1.5rem;
}

.slider-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

.slider-group input[type="range"] {
  width: 100%;
  margin-bottom: 0.2rem;
  accent-color: #4cd137; /* Modern green for slider thumb */
}

.slider-group small {
  color: #666;
  font-size: 0.85rem;
}

/* ===== Buttons ===== */
.button-group {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

button {
  flex: 1 1 30%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #4cd137, #44bd32);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  background: linear-gradient(135deg, #44bd32, #3c9d2c);
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

/* ===== Feedback ===== */
#feedback {
  margin-top: 1rem;
  font-style: italic;
  color: #555;
  text-align: center;
}

/* ===== SVG Preview ===== */
#svgPreview {
  margin-top: 2rem;
  width: 100%;
  min-height: 300px;
  border: 2px dashed #ccc;
  border-radius: 10px;
  background: #fafafa;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
  padding: 1rem;
}

/* Make SVG scale nicely */
#svgPreview svg {
  max-width: 100%;
  height: auto;
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 500px) {
  h1 { font-size: 1.5rem; }
  button { font-size: 0.9rem; padding: 0.6rem; }
  .slider-group small { font-size: 0.8rem; }
}
