/* Сброс стилей по умолчанию */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Общий стиль для страницы */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    flex-direction: column;
}

/* Стиль заголовка */
h1 {
    font-size: 24px;
    color: #333333;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Стиль для метки */
label {
    font-size: 16px;
    color: #555555;
    display: block;
}

/* Стили для кастомной кнопки выбора файла */
input[type="file"] {
    display: none;  /* Скрываем стандартную кнопку */
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1 !important;
}

.custom-file-upload {
    display: inline-block;
    padding: 12px 25px;
    background-color: #4CAF50;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 30px;
}

.custom-file-upload:hover {
    background-color: #45a049;
}

/* Стили для области для перетаскивания файла */
.drop-area {
    width: 100%;
    height: 180px;
    border: 2px dashed #ccc;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px; /* Отступ снизу */
    color: #777;
    font-size: 16px;
    background-color: #f9f9f9;
}

p {
  margin-top: 1em;
  margin-bottom: 1em;
}
.drop-area p {
    text-align: center;
}

/* Изменение внешнего вида зоны при перетаскивании */
.drop-area:hover {
    border-color: #4CAF50;
}

.drop-area p {
    margin: 0;
}

.drop-area.highlight {
  background-color: #e0f7fa;
  border-color: #007bff;
}

/* Стили для отображения имени файла */
#file-name {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 800;
    color: #555555;
    margin-bottom: 20px; /* Увеличен отступ снизу */
}

/* Для кнопки обработки */
button {
    font-size: 16px;
    color: white;
    background-color: #4CAF50;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    margin-bottom: 20px;
}

button:hover {
    background-color: #45a049;
}

/* Стили для неактивной кнопки */
button:disabled {
    background-color: #d3d3d3;  /* Серый цвет для неактивной кнопки */
    cursor: not-allowed;  /* Указатель мыши становится "не доступным" */
}

.container {
    background-color: #ffffff;
    padding: 40px 50px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin-top: 40px;
}

/* Выбор цветов и нижней границы оценок для расцветки */

.colors {
  display: flex;
  flex-direction: column;
}

.color-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 36px;
}

.color-row label {
  flex: 1;
  text-align: right;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.color-row input[type="number"], .gap {
  flex: 1;
  text-align: center;
  max-width: 60px;
  margin: 0;
  padding: 0;
  height: auto;
}

.color-row input[type="color"] {
  flex: 1;
  max-width: 60px;
  height: 30px;
  padding: 0;
  border: none;
  background: none;
}

/* Сообщение об ошибке обработки */
.error {
    color: #c0392b;
    font-size: 15px;
    font-weight: bold;
}

.error:not(:empty) {
    margin-bottom: 10px;
}
