body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.3;
  margin: 0;
  padding: 10px;
  background-color: #1a1a1a;
  color: #f0f0f0;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  background-color: #2a2a2a;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255,0,0,0.1);
}
p {
  line-height: 1.3;
}
h1, h2 {
  color: #ff4d4d;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  margin-top: 5px; /* Отступ сверху */
  margin-bottom: 5px;
}
h3, h4 {
  color: #ff774d;
  text-align: center;
  font-size: 18px; /* Размер шрифта */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  margin-top: 5px; /* Отступ сверху */
  margin-bottom: 5px;
}
.input-section {
  max-width: 1100px;
  margin-bottom: 5px;
  background-color: #333;
  padding: 0px;
  border-radius: 8px;
}
.text {
  font-size: 10px; /* Размер шрифта */
  color: #333; /* Цвет текста */
  line-height: 1; /* Междустрочный интервал */
  text-align: center; /* Выравнивание текста */
  margin-top: 0px; /* Отступ сверху */
}
textarea {
  width: 100%; /* Займет всю ширину родительского блока */
  box-sizing: border-box; /* padding и border будут включены в общую ширину */
  height: 50px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ff8080;
  border-radius: 8px;
  background-color: #242424;
  color: #f0f0f0;
  resize: vertical;
}
.button {
  background-color: #ff4d4d;
  color: white;
  padding: 8px 24px; /* Уменьшено на 20% */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px; /* Уменьшено на 20% */
  margin-right: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(255,0,0,0.2);
}
.button:hover {
  background-color: #ff3333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255,0,0,0.3);
}
.clear-button {
  background-color: #4d0000;
}
.clear-button:hover {
  background-color: #660000;
}
#output {
  margin-top: 10px;
  padding: 15px;
  border: 1px solid #ff8080;
  border-radius: 8px;
  background-color: #333;
}
#progressContainer {
  width: 100%;
  background-color: #4d0000;
  border-radius: 25px;
  margin-top: 15px;
  display: none;
  overflow: hidden;
}
#progressBar {
  width: 0%;
  height: 20px;
  background-color: #ff4d4d;
  border-radius: 25px;
  transition: width 0.3s ease-in-out;
}
input[type="file"] {
  display: none;
}
.file-input-label {
  display: inline-block;
  padding: 10px 24px; /* Уменьшено на 20% */
  background-color: #ff4d4d;
  color: white;
  border-radius: 25px;
  cursor: pointer;
  font-size: 13px; /* Уменьшено на 20% */
  margin-right: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(255,0,0,0.2);
}
.file-input-label:hover {
  background-color: #ff3333;
  transform: translateY(-0px);
  box-shadow: 0 4px 8px rgba(255,0,0,0.3);
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
th {
  background-color: #ece6e7;
  color: #721c24;
}

/* Стили для выпадающих инструкций */
.collapsible-card {
    background-color: #333;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #444;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
}

.collapsible-header h5 {
    margin: 0;
    color: #ff774d;
    font-size: 1.1rem;
}

.collapsible-toggle {
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.collapsible-toggle.open {
    transform: rotate(180deg);
}

.collapsible-content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.collapsible-content .card-body {
    padding: 15px 0;
    border-top: 1px solid #444;
}

/* Стили для опций классификации */
.classification-options {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.limit-input {
    width: 60px;
    padding: 5px;
    border-radius: 4px;
    background-color: #242424;
    color: #f0f0f0;
    border: 1px solid #ff8080;
    text-align: center;
}