/* Загальні стилі */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}
h1, h2, h3 {
  text-align: center;
  margin: 10px 0;
}
.svg-logo {
  max-width: 100px; /* Ограничение по ширине */
  height: auto;     /* Высота будет вычисляться пропорционально */
  display: block;
  margin: 0 auto;
}
header {
  margin-top: 20px; /* Отступ сверху */
}
footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
/*  color: #555;*/
}
footer hr {
  margin: 20px auto;
  width: 90%;
}
/*
#container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
*/
#languageSelect {
  padding: 6px 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

#languageSelect:focus {
  outline: none;
  border-color: var(--link-color);
}

:root {
  /* Светлая тема (значения по умолчанию) */
  --bg-color: #ffffff;
  --text-color: #000000;
  --header-bg: #f2f2f2;
  --footer-bg: #f2f2f2;
  --report-bg: #ffffff;     /* Фон блока "Звіт" для светлой темы */
  --report-text: #000000;    /* Текст в блоке "Звіт" для светлой темы */
}
.dark-theme {
  /* Тёмная тема */
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --header-bg: #1e1e1e;
  --footer-bg: #1e1e1e;
  --report-bg: #1e1e1e;     /* Фон блока "Звіт" для тёмной темы */
  --report-text: #e0e0e0;    /* Текст в блоке "Звіт" для тёмной темы */
}
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}
/* Стили для блока "Звіт" */
#report {
  background-color: var(--report-bg);
  color: var(--report-text);
  padding: 20px;
}
/* Стили для таблиц внутри блока "Звіт" */
#report table {
  background-color: var(--report-bg);
  color: var(--report-text);
  width: 100%;
  border-collapse: collapse;
}
#report table th,
#report table td {
  padding: 8px;
  border: 1px solid #ccc;
}
/* Плавающая кнопка для переключения темы - сверху справа */
/*
#themeToggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 32px;
  outline: none;
} */
/* Адаптивність для мобільних */
@media (max-width: 768px) {
  #coordinatesContainer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #coordinatesContainer table {
    width: 100%;
    font-size: 14px; /* Можна зменшити розмір шрифту для кращого читання */
  }
}
/* Панель налаштувань */
#settings {
  width: 100%;
  max-width: 800px;
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
}
#settings label {
  margin-right: 5px;
}
/* Стиль для карти */
#map {
  width: 80%;
  height: 500px;
  margin: 20px 0;
  border: 1px solid #ccc;
}
/* Стилі блоку звіту */
#report {
  width: 100%;
  gap: 20px;
  flex-wrap: wrap;
/*  max-width: 800px;*/
  padding: 20px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
  background: var(--report-bg);
}
/* Схема об’єкта – спочатку прихована */
#schematic {
  display: none;
  text-align: center;
  margin-bottom: 20px;
}
#schematic img {
  max-width: 100%;
  max-height: 400px;
  border: 1px solid #ccc;
  background: transparent;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
th, td {
  border: 1px solid #ddd;
  padding: 6px;
  text-align: center;
}
table th {
  font-size: 16px; /* или другой нужный вам размер */
  font-weight: bold;
  text-align: center;
}
/* Заголовок таблиці оновлено: лише № точки, Широта, Довгота, Висота */
#downloadPdf {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
}
/* Стилі для друку */
@media print {
  #downloadPdf, #settings, #fileInput {
    display: none;
  }
}

@media (max-width: 768px) {
  .mb-3 { margin-bottom: 0px; }
}