/* ===== Общее ===== */
body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  background: #f6f8fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 700px;
  text-align: center;
}

h1 {
  margin-bottom: 1.5rem;
  color: #333;
}

form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
  color: #555;
}

form input[type="file"],
form input[type="number"] {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button,
.btn {
  margin-top: 1.5rem;
  background: #007bff;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.btn:hover {
  background: #0056b3;
}

.hidden {
  display: none;
}

/* ===== Спиннер ===== */
.spinner {
  margin: 1rem auto;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Прогресс ===== */
#progress-container {
  margin-top: 1.5rem;
}

progress {
  width: 100%;
  height: 20px;
  border-radius: 10px;
}

#progress-msg {
  margin-top: 0.5rem;
  color: #333;
}

/* ===== Ошибка ===== */
#error-container {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
}

/* ===== График и кнопки ===== */
canvas {
  margin-top: 2rem;
  max-width: 100%;
}

#download-container {
  margin-top: 1.5rem;
}

.back-btn {
  margin-top: 1rem;
  background: #6c757d;
}

.model-info {
  margin-bottom: 10px;
  font-size: 1rem;
}

#model-score.green {
  color: green;
  font-weight: bold;
}

#model-score.yellow {
  color: orange;
  font-weight: bold;
}

#model-score.red {
  color: red;
  font-weight: bold;
}

/* ===== Слайдер ===== */
.slider-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1em;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
  transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
  transition: background 0.3s;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #007bff;
  cursor: pointer;
}
