@charset "UTF-8";
:root {
  --primary-color: #1e3a8a;
  --secondary-color: #2563eb;
  --dark-blue: #1e40af;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --border-gray: #ddd;
  --white: #fff;
  --bg-color: #fff;
  --header-bg: var(--primary-color);
  --nav-bg: var(--secondary-color);
  --table-header-bg: var(--secondary-color);
  --table-row-even: #f2f2f2;
  --card-bg: var(--white);
  --card-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

[data-theme=dark] {
  --primary-color: #3b82f6;
  --secondary-color: #1e40af;
  --text-color: #e5e7eb;
  --light-gray: #1f2937;
  --medium-gray: #374151;
  --border-gray: #4b5563;
  --bg-color: #111827;
  --header-bg: #1e3a8a;
  --nav-bg: #1e40af;
  --table-header-bg: #1e40af;
  --table-row-even: #1f2937;
  --card-bg: #1f2937;
  --card-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

* {
  box-sizing: border-box;
  transition: background-color 0.3s, color 0.3s;
}

body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.5;
  min-width: 300px;
  display: grid;
  grid-template-rows: auto 1fr auto; /* Контент растягивается, футер — auto */
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.header {
  background-color: var(--header-bg);
  color: var(--white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  margin-right: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px; /* Расстояние между иконкой и текстом */
}

.logo-icon {
  height: 1em; /* Размер как у текста */
  width: auto;
}

/* Для SVG иконки, если нужно изменить цвет */
.logo svg {
  color: inherit;
  fill: currentColor;
}

.navbar ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.navbar li {
  margin-right: 10px;
}

.navbar li a {
  display: block;
  padding: 10px 15px;
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
}

.navbar li.active a,
.navbar li a:hover {
  background-color: var(--dark-blue);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Добавляем стили для бургер-меню */
.burger-menu {
  display: none;
  cursor: pointer;
  font-size: 24px;
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Плавный переход с easing-функцией */
  transform-origin: center center; /* Точка вращения по центру */
  will-change: transform; /* Оптимизация для браузера */
  margin-right: 15px; /* Отступ от лого */
}

.burger-menu.active {
  transform: rotate(90deg);
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); /* Специальная easing-функция */
}

/* Контейнер для бургера и лого */
.header-logo-container {
  display: flex;
  align-items: center;
}

/* Стили для лого */
.logo {
  transform: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar.active {
  display: block;
}

@media (max-width: 768px) {
  .header-logo-container {
    width: 100%;
  }
  .header .container {
    justify-content: space-between;
  }
  .burger-menu {
    display: block;
  }
  .logo {
    position: absolute;
    left: 50%;
  }
  .navbar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--header-bg);
    z-index: 1000;
    padding: 10px 0;
  }
  .navbar ul {
    flex-direction: column;
  }
  .navbar li {
    margin: 10px 0;
  }
  .container {
    position: relative;
  }
}
/* Стили для футера */
footer {
  background-color: var(--header-bg);
  color: var(--white);
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.tab-content {
  padding: 20px;
  background-color: var(--card-bg);
  margin: 20px 0;
  border-radius: 5px;
  box-shadow: var(--card-shadow);
}

.player-controls {
  display: flex;
  margin-bottom: 15px;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

input, select, button {
  padding: 8px 12px;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  font-size: 14px;
  background-color: var(--card-bg);
  color: var(--text-color);
}

button {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: var(--dark-blue);
}

.chart-container {
  width: 100%;
  height: 400px;
  margin-top: 20px;
}

.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
}

th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-gray);
}

th {
  background-color: var(--table-header-bg);
  color: var(--white);
  position: sticky;
  top: 0;
}

tr:nth-child(even) {
  background-color: var(--table-row-even);
}

.player-tag {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  margin-bottom: 8px;
  padding: 5px 10px;
  background: var(--medium-gray);
  border-radius: 3px;
  font-size: 14px;
}

.player-tag-remove {
  margin-left: 5px;
  cursor: pointer;
  font-weight: bold;
}

.search-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

/* Мобильные стили */
@media (max-width: 768px) {
  .logo {
    transform: translateX(-50%);
  }
  .search-container {
    flex-direction: column;
  }
  .header .container {
    flex-direction: column;
    align-items: stretch;
  }
  .logo {
    text-align: center;
  }
  .navbar ul {
    justify-content: center;
  }
  .theme-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
  }
  .player-controls {
    flex-direction: column;
    align-items: stretch;
  }
  input, select, button {
    width: 100%;
    max-width: none;
  }
  .chart-container {
    height: 300px;
  }
  th, td {
    padding: 8px;
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .probability-details {
    display: block !important;
  }
  .navbar li {
    margin: 5px 0;
    width: 100%;
    text-align: center;
  }
  .navbar li a {
    padding: 8px;
  }
  .tab-content {
    padding: 15px;
  }
  .chart-container {
    height: 250px;
  }
}
.player-search-wrapper {
  position: relative;
}

.player-search {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  box-sizing: border-box;
}

.suggestions {
  position: absolute;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-top: none;
  background: white;
  z-index: 1000;
  display: none;
}

.suggestions-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.suggestions-item:hover {
  background-color: #f5f5f5;
}

.highlight {
  font-weight: bold;
  color: #0066cc;
}

.selected-player {
  margin-top: 5px;
  padding: 5px;
  background: #f0f0f0;
  border-radius: 3px;
}

.win-probability-container {
  font-family: Arial, sans-serif;
  margin: 20px auto;
  padding: 20px;
  border-radius: 8px;
  background-color: #f8f9fa;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.probability-display {
  margin: 20px 0;
}

.player-probability {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.player-name {
  width: 120px;
  font-weight: bold;
}

.progress-bar {
  flex-grow: 1;
  height: 20px;
  background-color: #e9ecef;
  border-radius: 10px;
  margin: 0 15px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #4CAF50;
  transition: width 0.5s ease;
}

#prob-player1-bar {
  background-color: #4285F4; /* Синий для первого игрока */
}

#prob-player2-bar {
  background-color: #EA4335; /* Красный для второго игрока */
}

.probability-value {
  width: 50px;
  text-align: right;
  font-weight: bold;
}

.probability-details {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #dee2e6;
}

.detail-column {
  flex: 1;
  text-align: center;
  padding: 0 10px;
}

.detail-title {
  font-weight: bold;
  color: #495057;
  margin-bottom: 5px;
  font-size: 0.9em;
}

.detail-value {
  font-size: 1.1em;
  font-weight: bold;
  color: #212529;
}

.win-probability-container {
  display: none;
}

/* Базовый класс для скрытия столбцов */
.hide-on-mobile {
  transition: all 0.3s ease;
  display: block !important;
}

/* Классы для скрытия конкретных столбцов */
@media (max-width: 768px) {
  /* Скрываем ячейки в теле таблицы */
  .hide-col-on-mobile td:nth-child(2),
  .hide-col-on-mobile th:nth-child(2) {
    display: none;
  }
  /* Можно добавить дополнительные столбцы */
  .hide-col-on-mobile td:nth-child(3),
  .hide-col-on-mobile th:nth-child(3) {
    display: none;
  }
  /* Альтернативный вариант - скрытие по классу */
  td.hide-on-mobile,
  th.hide-on-mobile {
    display: none !important;
  }
}
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: none; /* Изначально скрыт */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loader-spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@media (min-width: 768px) {
  .filters {
    display: flex;
    flex-direction: row;
  }
}

/*# sourceMappingURL=style.css.map */
