/* === БАЗОВЫЕ СТИЛИ === */
html, body {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
}

/* фоновый градиент */
body {
  background: linear-gradient(to right, #0f172a, #0e2034, #0e1d30);
  color: #333;
  overflow-y: auto;
}

/* === ШАПКА === */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  height: 75px;
  padding: 0 20px;
  background: linear-gradient(to right, #0f172a, #0e2034, #0e1d30);
  box-sizing: border-box;
  z-index: 9999;
  cursor: pointer;
}

.nav__list {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__item {
  display: block;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 15px;
  font-weight: 600;
  font-size: 14px;
  line-height: 24px;
  text-align: left;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.button:hover {
  background-color: rgba(255,255,255,0.2);
}

/* === ОСНОВНОЙ КОНТЕЙНЕР === */
.main-container {
  display: flex;
  flex-wrap: nowrap; /* в строку */
  gap: 20px;
  padding: 100px 20px 20px;
  justify-content: center;
  align-items: flex-start;
}

/* адаптив под мобильные */
@media screen and (max-width: 768px) {
  .main-container {
      flex-direction: column;
      align-items: stretch;
  }

  .settings {
      width: 100%;
  }

  .chart-container {
      width: 100%;
  }
}

/* === БЛОК НАСТРОЕК === */
.settings {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 350px;
  box-sizing: border-box;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.settings h2 {
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  color: #666;
  margin-bottom: 5px;
  display: block;
}

input[type="text"],
input[type="number"],
textarea,
input[type="color"] {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Кнопка "Скачать" */
.download-button {
  background-color: #1e90ff;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  margin-top: 20px;
}
.download-button:hover {
  background-color: #45a049;
  transform: scale(1.05);
}

/* === ПЕРЕКЛЮЧАТЕЛИ (ТУМБЛЕРЫ) === */
.switch-row {
display: flex;
align-items: center;
justify-content: space-between;
margin: 15px 0;
color: #333;
font-weight: 500;
}

.switch {
position: relative;
display: inline-block;
width: 36px;
height: 20px;
margin-left: 10px;
}

.switch input {
opacity: 0; /* прячем "голый" чекбокс */
width: 0;
height: 0;
}

.slider {
position: absolute;
cursor: pointer;
top: 0; 
left: 0;
right: 0; 
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 34px;
}
.slider:before {
position: absolute;
content: "";
height: 14px;
width: 14px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #1e90ff;
}
input:checked + .slider:before {
transform: translateX(16px);
}

.round {
border-radius: 34px;
}

/* === БЛОК ГРАФИКА === */
.chart-container {
  flex: 1;
  background: #f6f6f6;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chart-table-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

#chartWrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

#myChart {
  width: 100%;
  height: 100%;
}
.reset-button {
  background-color: #f87171; /* Красный или любой другой */
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px; /* Чуть меньше, чем download-button */
}
.reset-button:hover {
  background-color: #ef4444;
  transform: scale(1.05);
}
