body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
  color: #333;
}

h2 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #2c3e50;
}

#app {
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

button {
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #2980b9;
}

.button-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th, td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

th {
  background-color: #ecf0f1;
  font-weight: bold;
}

td input {
  width: 80px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.delete-btn {
  width: 20px;
  height: 20px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  line-height: 20px; /* Центрируем крестик вертикально */
  text-align: center; /* Центрируем крестик горизонтально */
  transition: background-color 0.3s;
  vertical-align: middle; /* Выравниваем кнопку в строке */
}

.delete-btn:hover {
  background-color: #c0392b;
}

#calibration-chart {
  margin: 20px 0;
}

#control-results {
  margin: 15px 0;
  padding: 10px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@media (max-width: 600px) {
  h2 {
    font-size: 1.2em;
  }

  button {
    padding: 8px 16px;
    font-size: 0.9em;
  }

  .button-group {
    flex-direction: column;
  }

  td input {
    width: 60px;
  }

  .form-group {
    margin-bottom: 10px;
  }

  #calibration-chart {
    height: 150px !important;
  }

  .delete-btn {
    width: 18px;
    height: 18px;
    font-size: 10px;
    line-height: 18px;
  }
}