/* ===============================
// Блок 1. ОСНОВНАЯ СТРУКТУРА СТРАНИЦЫ
  Используется в: все страницы
================================== */
body {
  background-color: #0a0a0a; /* Измененный цвет фона */
  color: #e1e3e6;
  font-family: 'NotCourierSans', sans-serif;
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  font-family: 'NotCourierSansBold', sans-serif;
  color: #b0b3b8;
  font-size: 20px;
  margin-bottom: 10px;
  text-align: center;
}

/* ===============================
// Блок 2. ССЫЛКИ
  Используется в: parse.html, setup.html
================================== */
a {
  color: #e1e3e6;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Стили для страницы авторизации */
body.login-page {
  background-color: #0a0a0a;
  color: #e1e3e6;
  font-family: 'NotCourierSans', sans-serif;
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* ===============================
// Блок 3. УНИВЕРСАЛЬНЫЕ КНОПКИ И УПРАВЛЕНИЕ
  Используется в: parse.html, setup.html, popup.html
================================== */
.control-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.control-buttons button,
.btn {
  width: 70px;
  height: 25px;
  background-color: #2e2e2e; /* Измененный цвет кнопок */
  color: #e1e3e6;
  border: none;
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 2px; /* Уменьшен радиус скругления */
  cursor: pointer;
  transition: background-color 0.2s;
}

.control-buttons button:hover,
.btn:hover,
.delete-btn:hover,
.link-btn:hover {
  background-color: #444;
}

.btn.pause {
  background-color: #c0392b !important;
  color: white;
}

.nav-buttons {
  display: flex;
  justify-content: center; /* Горизонтальное выравнивание */
  gap: 10px;
  margin-bottom: 15px;
}

/* Анимация Go */
#goBtn.active {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 rgba(0, 128, 0, 0.7); }
  70% { box-shadow: 0 0 10px rgba(0, 128, 0, 0.7); }
  100% { box-shadow: 0 0 0 rgba(0, 128, 0, 0); }
}


/* ===============================
// Блок 4. СПЕЦИАЛЬНЫЕ КНОПКИ
  Используется в: parse.html, vacancy.html
================================== */
.delete-btn,
.link-btn {
  background-color: #2e2e2e;
  color: #e1e3e6;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 3px;
  transition: background-color 0.2s;
}
td .delete-btn {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  height: 28px;
  line-height: 1;
  margin-left: auto;
  margin-right: auto;
}

/* // Блок 5. vacancy */
.vacancy-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.vacancy-table th,
.vacancy-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border: none; /* 🔥 убираем рамки */
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

.vacancy-table th:nth-child(1),
.vacancy-table td:nth-child(1) {
  width: 10%;
  text-align: center;
}

.vacancy-table th:nth-child(2),
.vacancy-table td:nth-child(2) {
  width: 20%;
  text-align: center;
}

.vacancy-table th:nth-child(3),
.vacancy-table td:nth-child(3) {
  width: 70%;
}

/* ===============================
// Блок 5. ПОЛЯ ВВОДА
  Используется в: parse.html
================================== */
.input-field,
input[type="number"] {
  background-color: #222;
  color: white;
  font-size: 13px;
  border: none;
  border-radius: 4px;
  padding: 2px 4px;
  text-align: center;
  width: 50px;
  box-sizing: border-box;
  outline: none;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.input-field:focus {
  background-color: #333;
}

/* ===============================
// Блок 6. СТИЛИ ТАБЛИЦЫ
  Используется в: parse.html, setup.html
================================== */
table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 6px 10px;
  border-bottom: 1px solid #2e2e2e;
  vertical-align: middle;
  white-space: nowrap;
  text-align: center;
}

th {
  background-color: #222222;
}

.scroll-table {
  max-height: 600px;
  overflow: auto;
  margin-top: 12px;
}
/* // Анимация затухание */
.fade-out {
  transition: all 200ms ease;
  opacity: 0;
}
/* Зеленые гиперссылки */
a.pasted {
  color: #67b279;
  font-weight: bold;
}



/* ===============================
// Блок 7. СТАТУС-ИНДИКАТОРЫ (stage-dot)
  Используется в: parse.html, vacancy.html
================================== */
.stage-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 2px;
  transition: background-color 300ms ease; /* 🔧 добавлено */
}


.stage--ожидает   { background-color: #e1e3e6; }
.stage--в_процессе { background-color: #597ba0; }
.stage--готово     { background-color: #67b279; }
.stage--excluded   { background-color: #fc1a43; }

.score-updated {
  animation: fade-text 400ms ease;
}

@keyframes fade-text {
  0%   { color: #222; opacity: 0.3; }
  100% { color: #222; opacity: 1; }
}

@keyframes fade-flash {
  0% {
    background-color: #fffbcc;
    color: inherit;
  }
  100% {
    background-color: transparent;
  }
}

/* ===============================
// Блок 8. ПЕРЕКЛЮЧАТЕЛЬ ON/OFF
  Используется в: parse.html, setup.html
================================== */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 18px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #444;
  transition: 0.3s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #67b279;
}
input:checked + .slider:before {
  transform: translateX(18px);
}

/* ===============================
// Блок 9. ТИП ЧИСЛОВОГО ПОЛЯ
  Используется в: parse.html, setup.html
================================== */
.numeric {
  background-color: #222;
  color: white;
  font-size: 13px;
  border: none;
  border-radius: 4px;
  padding: 2px 4px;
  text-align: center;
  width: 50px;
  box-sizing: border-box;
  outline: none;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.numeric:focus {
  background-color: #333;
}

/* ===============================
// Блок 10. СТИЛИ МЕНЮ
  Используется в: parse.html, setup.html
================================== */
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.menu-item:hover {
  background-color: #333;
}

.menu-item .icon {
  width: 20px;
  height: 20px;
}

.menu-item .label {
  color: #e1e3e6;
  font-size: 14px;
}

/* ===============================
// Блок 11. СТИЛИ ПОПАПОВ
  Используется в: setup.html
================================== */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #333;
  color: #e1e3e6;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  max-width: 400px;
  width: 100%;
}

.popup h2 {
  margin-top: 0;
  color: #67b279;
  font-size: 18px;
}

.popup-content {
  margin-top: 16px;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  color: #b0b3b8;
  font-size: 20px;
  transition: color 0.2s;
}

.popup-close:hover {
  color: #e1e3e6;
}

/* ===============================
// Блок 12. СТИЛИ ОТЛАДКИ
  Используется в: parse.html, setup.html
================================== */
.debug-info {
  background-color: #222;
  color: #67b279;
  padding: 8px;
  margin-top: 8px;
  border-radius: 4px;
  font-size: 12px;
  max-width: 100%;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

.debug-info.error {
  color: #fc1a43;
}

/* ===============================
// Блок 13. СТИЛИ ЗАГРУЗКИ
  Используется в: parse.html
================================== */
.loader {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Дополнительные стили для кнопки VK ID */
/* Стили для кнопки VK ID */
.vkid-btn-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* Центрирование по вертикали */
  background: #0a0a0a; ; /* Цвет фона страницы */
}

.vkid-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0077FF;
  color: #fff;
  border: none;
  border-radius: 5px; /* Уменьшаем радиус скругления до 5px */
  height: 32px;
  padding: 0 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 10px #0002;
  outline: none;
  gap: 10px;
}

.vkid-btn:hover {
  background: #1685fa;
}

.vkid-btn svg {
  display: none; /* Убираем логотип VK */
}

.vkid-btn-text {
  white-space: nowrap;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.vkid-btn-loader {
  display: none;
  margin-left: 10px;
}