:root {
  --primary-color: #4361ee;
  --secondary-color: #3f37c9;
  --accent-color: #4895ef;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-color: #6c757d;
  --success-color: #4cc9f0;
  --warning-color: #f72585;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f5f7fa;
  color: var(--dark-color);
  line-height: 1.6;
  padding: 20px;
  min-height: 100vh;
}

h1, h2, h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 30px;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--success-color));
  border-radius: 2px;
}

h3 {
  font-size: 1.3rem;
  margin-top: 20px;
  color: var(--secondary-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 8px;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 95vw;
  margin: 0 auto;
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.left, .right {
  flex: 1;
  min-width: 300px;
}

.image-container {
  position: relative;
  border: 3px dashed #ccc;
  border-radius: var(--border-radius);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  overflow: hidden;
}

#uploadedImage, #previewCanvas {
  max-width: 100%;
  max-height: 600px;
  display: none;
}

.step1, .step2, .step3, .step4, .finalstep {
  margin-bottom: 25px;
  padding: 20px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--gray-color);
}

input[type="text"],
input[type="number"],
input[type="file"],
input[type="color"],
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: var(--transition);
  margin-bottom: 15px;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="file"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

button {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  margin: 5px;
  box-shadow: var(--box-shadow);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
  background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
}

button:active {
  transform: translateY(0);
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.position-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

#positionDisplay {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: var(--border-radius);
  margin-top: 20px;
}

#positionDisplay div {
  margin-bottom: 15px;
  padding: 10px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

#positionDisplay strong {
  color: var(--secondary-color);
  margin-right: 10px;
}

#positionDisplay button {
  padding: 5px 10px;
  font-size: 14px;
  margin: 2px;
}

.finalstep {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.finalstep button {
  flex: 1;
  min-width: 200px;
}





.cursor-line-horizontal,
.cursor-line-vertical {
  position: fixed;
  background-color: rgba(255, 0, 0, 0.5);
  z-index: 1000;
  pointer-events: none;
  display: none;
}

.cursor-line-horizontal {
  height: 1px;
  width: 25px;
  top: 0;
  left: 0;
}

.cursor-line-vertical {
  width: 1px;
  height: 25px;
  top: 0;
  left: 0;
}

a {
  display: block;
  text-align: center;
  margin-top: 30px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .left, .right {
    width: 100%;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .position-controls {
    flex-direction: column;
  }
  
  button {
    width: 100%;
    margin: 5px 0;
  }
}

/* Animation for form sections */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.step1 { animation: slideIn 0.3s ease forwards; }
.step2 { animation: slideIn 0.4s ease forwards; }
.step3 { animation: slideIn 0.5s ease forwards; }
.step4 { animation: slideIn 0.6s ease forwards; }
.finalstep { animation: slideIn 0.7s ease forwards; }
   /* Basic styling for the steps and navigation */
   .step-container {
    max-width: 95vw;
    margin: 0 auto;
    padding: 20px;
}

.step {
    display: none;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 20px;
}

.step.active {
    display: block;
}

.nav-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    counter-reset: step;
}

.step-indicator-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-indicator-item::before {
    counter-increment: step;
    content: counter(step);
    width: 30px;
    height: 30px;
    line-height: 30px;
    display: block;
    margin: 0 auto 10px;
    border-radius: 50%;
    background-color: #ddd;
    color: #333;
    font-weight: bold;
}

.step-indicator-item.active::before {
    background-color: #3b4dec;
    color: white;
}

.step-indicator-item.completed::before {
    background-color: #3b4dec;
    color: white;
}

.step-indicator-item::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #ddd;
    z-index: -1;
}

.step-indicator-item:last-child::after {
    display: none;
}

button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.position-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 5px;
}

.position-nav button {
  padding: 8px 15px;
  background: #e0e0e0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.position-nav button.active {
  background: #4CAF50;
  color: white;
}

.position-nav button:hover:not(.active) {
  background: #d0d0d0;
}
.position-control-box{
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 2px;
  border: 1px double #3caa60;
  border-radius: 5px;
}
.position-control-box button{
  background: #3caa60;
}
.position-step-heading{
  color:#3caa60 ;
}
