/* style.css */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
}

.container {
  display: flex;
  flex-wrap: wrap;
  min-height: 100vh;
}

.sidebar {
  background-color: #333;
  color: white;
  width: 220px;
  padding: 20px;
  flex-shrink: 0;
}

.sidebar h2 {
  margin-top: 0;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
}

.sidebar nav ul li {
  margin: 10px 0;
}

.sidebar nav ul li a {
  color: white;
  text-decoration: none;
}

.main-content {
  flex: 2;
  padding: 20px;
}

.tool-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-form label {
  display: flex;
  flex-direction: column;
}

.tool-form input, .tool-form select, .tool-form button {
  padding: 8px;
  font-size: 1em;
}

.output-panel {
  background: #fff;
  flex: 1;
  padding: 20px;
  border-left: 1px solid #ccc;
  min-width: 280px;
}

.output-panel canvas {
  width: 100%;
  height: 300px;
  background: #eee;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .output-panel {
    border-left: none;
    border-top: 1px solid #ccc;
  }
}

.form-wizard {
  background: #fff;
  padding: 20px;
  max-width: 700px;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px #ccc;
}

.step {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.step.active {
  display: flex;
}

button {
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
}

button:hover {
  background: #0056b3;
}


/* Индикатор шагов */
.progressbar {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 30px;
  counter-reset: step;
}

.progress-step {
  position: relative;
  width: 100%;
  text-align: center;
  color: gray;
}

.progress-step::before {
  content: counter(step);
  counter-increment: step;
  width: 30px;
  height: 30px;
  border: 2px solid gray;
  display: inline-block;
  border-radius: 50%;
  background-color: white;
  line-height: 28px;
  margin-bottom: 5px;
  font-weight: bold;
}

.progress-step::after {
  content: attr(data-title);
  display: block;
  font-size: 0.8em;
  margin-top: 5px;
}

.progress-step.active::before {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

/* Анимация */
.step {
  display: none;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.5s ease-in-out;
}

.step.active {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}