@font-face {
  font-family: 'JPFont';
  src: url("../fonts/MagistralC-Regular.woff2") format('woff2');
}

@font-face {
  font-family: 'JPFontB';
  src: url("../fonts/MagistralC-Bold.woff2") format('woff2');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'JPFont', sans-serif;
}

a:link, a:visited, a:hover, a:active {
  color: #807b7b;
  text-decoration: none;
}

body {
  background-color: #1a1a1a;
  color: #9a59b5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: linear-gradient(rgba(90, 90, 90, 0.1), rgba(0, 0, 0, 0.5)), url("../images/bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.container {
  padding: 40px;
  background: rgba(252, 244, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 700px;
  text-align: center;
  border: 1px solid #4d4d4d;
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1px;
}

.logo-title-group {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.page-title {
  font-size: 25px;
  color: #82419d;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}

.logo {
  width: 150px;
  height: 38px;
  background-image: url("../images/logo.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Стили для кнопок и элементов формы */
label, button {
  display: block;
  width: 100%;
  max-width: 300px;
  min-width: 250px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  background-color: #cec3d5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px auto;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}

label:hover, button:hover {
  background-color: #bba7c4;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

input[type="file"] {
  display: none;
}

/* Стили для выпадающего списка */
.form-group {
  margin: 20px auto;
  max-width: 300px;
  text-align: left;
}

.form-group > label {  /* Добавляем > чтобы стиль применялся только к непосредственному потомку */
  display: block;
  margin-bottom: 8px;
  color: #82419d;
  font-size: 14px;
  text-transform: uppercase;
  text-align: left;
  padding: 0;
  background: none;
  box-shadow: none;
  width: auto;  /* Убираем фиксированную ширину */
  max-width: none; /* Убираем ограничение максимальной ширины */
  min-width: auto; /* Убираем минимальную ширину */
  margin: 0 0 8px 0; /* Корректируем отступы */
  letter-spacing: normal; /* Возвращаем нормальный интервал между буквами */
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
  font-size: 14px;
  color: #333;
  transition: border-color 0.3s;
  appearance: none; /* Убираем стандартный вид для кроссбраузерности */
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-control:focus {
  border-color: #9a59b5;
  outline: none;
}
.form-group {
  position: relative;
}
.form-group::after {
  content: "▼";
  font-size: 12px;
  color: #82419d;
  position: absolute;
  right: 15px;
  top: 38px;
  pointer-events: none;
}

/* Стили для настроек анализа */
.analysis-settings {
  margin: 25px auto;
  max-width: 500px;
}

.analysis-settings h3 {
  color: #82419d;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: 16px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
  text-transform: none;
  text-align: left;
  max-width: none;
  min-width: auto;
  margin: 0;
  background: none;
  box-shadow: none;
  letter-spacing: normal;
}

.checkbox-label:hover {
  background-color: rgba(154, 89, 181, 0.1);
}

.checkbox-label input {
  margin-right: 8px;
  width: 16px;
  height: 16px;
}

#progress-container, #unzip-progress-container {
  width: 100%;
  max-width: 400px;
  background: #333;
  border-radius: 5px;
  height: 10px;
  margin: 20px auto;
  overflow: hidden;
  display: none;
}

#progress-bar, #unzip-progress-bar {
  height: 100%;
  background: #9a59b5;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #9a59b5;
}

#upload-status, #unzip-status {
  margin-top: 15px;
  font-size: 16px;
  min-height: 24px;
}

#percent, #unzip-percent {
  font-weight: bold;
  font-size: 16px;
  margin-top: 5px;
  display: none;
  color: #9a59b5;
}

.analysis-container {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #4d4d4d;
}

.info-text {
  font-size: 14px;
  color: #807b7b;
  margin-top: 20px;
  line-height: 1.5;
}

.file-name {
  max-width: 300px;
  margin: 10px auto;
  font-size: 14px;
  color: #f0a800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(154, 89, 181, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(154, 89, 181, 0); }
  100% { box-shadow: 0 0 0 0 rgba(154, 89, 181, 0); }
}

.pulse {
  animation: pulse 2s infinite;
}

.fa-spinner {
  margin-right: 8px;
}