/* Reset & Base Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #333;
  padding: 30px;
}

.tool-container {
  max-width: 800px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-align: center;
}

h1 {
  font-size: 28px;
  margin-bottom: 5px;
}

p {
  color: #666;
  margin-bottom: 30px;
  font-size: 15px;
}

/* Upload Area */
.upload-area {
  border: 2px dashed #ccc;
  padding: 30px;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.3s ease;
  margin-bottom: 25px;
}

.upload-area:hover {
  border-color: #007bff;
  background: #eef6ff;
}

.upload-area label {
  color: #007bff;
  font-weight: bold;
  cursor: pointer;
}

input[type="file"] {
  display: none;
}

/* Options Section */
.options {
  text-align: left;
  background: #f1f5f9;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-bottom: 15px;
}

.form-row label {
  font-weight: 600;
  min-width: 100px;
}

input[type="text"],
input[type="number"],
select,
input[type="color"],
input[type="range"] {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  min-width: 120px;
}

input[type="range"] {
  width: 100px;
}

button {
  padding: 10px 18px;
  background: #007bff;
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: #0056b3;
}

button.hidden {
  display: none;
}

/* Preview */
.preview {
  text-align: center;
  margin-top: 20px;
}

canvas {
  border: 1px solid #ccc;
  border-radius: 8px;
  max-width: 100%;
  margin-top: 10px;
}

/* Utility */
.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  input[type="range"] {
    width: 100%;
  }
}
