body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #ffe8ec, #fff3e6);
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.container {
  background: white;
  padding: 30px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  max-width: 450px;
  width: 100%;
}

h1 {
  text-align: center;
  color: #e91e63;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input, select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
}

button {
  background: #e91e63;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

button:hover {
  background: #c2185b;
}

.preview-img {
  display: block;
  width: 100%;
  border-radius: 10px;
  margin-top: 15px;
}

.btns {
  text-align: center;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  margin: 8px;
  padding: 10px 16px;
  background: #e91e63;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
}

.btn:hover {
  background: #c2185b;
}
body {
  font-family: "Segoe UI", sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 20px;
}

h1 {
  margin-top: 0;
}

#toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

#canvas-container {
  display: flex;
  justify-content: center;
}

#canvas-wrapper {
  position: relative;
  width: 360px;
  height: 640px;
  border: 1px solid #ccc;
  background: #eee;
  overflow: hidden;
}

#bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.draggable {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  border: 1px dashed #999;
  padding: 3px 6px;
  cursor: move;
  user-select: none;
  min-width: 60px;
  text-align: center;
}

.draggable.selected {
  border-color: #e91e63;
  background: rgba(255, 240, 240, 0.8);
}

#output-section {
  margin-top: 20px;
}

#codeOutput {
  background: #111;
  color: #0f0;
  padding: 10px;
  border-radius: 5px;
  white-space: pre-wrap;
  max-width: 700px;
  overflow-x: auto;
}

#coords {
  margin-top: 10px;
  font-family: monospace;
  color: #555;
}

