/* Основен стил */
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  color: #333;
  padding-top: 150px; /* или колкото е височината на менюто */
}

body.catstats {
  font-family: 'Open Sans', sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  color: #333;
  padding-top: 150px; /* или колкото е височината на менюто */
  font-size: 10px;
}

#main-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999; /* за да е над другите елементи */
  background-color: #ECECEC; /* или какъвто цвят искаш */
}

.site-header {
  display: flex;
  align-items: center;              /* Вертикално центриране */
  justify-content: left;          /* Хоризонтално центриране */
  gap: 20px;                        /* Разстояние между лого и текст */
  padding: 5px;
  width: 70%;
  margin: 10px auto;
}

.site-header .logo {
  width: 80px;                      /* Размер на логото */
  height: auto;
}

.site-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #0e8709;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  font-family: 'Open Sans', sans-serif;
}



nav.menu {
  width: 70%;
  margin: 10px auto; /* Поправено: добавен px за валидност */
  display: flex;
  background-color: #f9f9f9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #6c8da0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

nav.menu a {
  flex: 1;
  display: flex;                    /* ← Това е ключът за центриране */
  justify-content: center;         /* Хоризонтално центриране */
  align-items: center;             /* Вертикално центриране */
  text-align: center;
  padding: 5px 3px 5px 3px;
  color: #2a4d7f;
  text-decoration: none;
  border-right: 1px solid #6c8da0;
  transition: background-color 0.3s ease;
  font-size: 14px;

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* ← усилена сянка */
}

nav.menu a:last-child {
  border-right: none;
}

nav.menu a:hover {
  background-color: #4db748;
}


.button {
  background-color: #e0e0e0;       /* Светлосив фон */
  color: #000000;                  /* Черен текст */
  border: 1px solid #b0b0b0;       /* Лека рамка */
  padding: 5px 5px;
  margin: 3px 0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
  background-color: #d5d5d5;       /* По-тъмен сив при hover */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


/* Карти за категории */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
  }

  .card {
    margin: 10px;
  }
}

//ТАБЛИЦИ
.table-years {
  width: 80%;
  margin: 30px auto;
  border-collapse: collapse;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table-years th,
.table-years td {
  border: 1px solid #999;         /* Рамка около всяка клетка */
  padding: 10px 15px;
  text-align: center;
  transition: background-color 0.3s ease;
}

/* Заглавия */
.table-years th {
  background-color: #f0f0f0;
  color: #333;
  font-weight: bold;
  text-transform: uppercase;
}

/* Редуващи се редове */
.table-years tr:nth-child(even) td {
  background-color: #fafafa;
}

/* Hover само върху клетката */
.table-years td:hover {
  background-color: #e0e0e0;
  cursor: default;
}
.table-years th,
.table-years td {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Лека сянка */
}

.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 30px auto;
  width: 80%;
  flex-wrap: wrap;
}

.dropdown {
  padding: 8px 12px;
  font-size: 14px;
  color: #2a4d7f;
  border: 1px solid #999;
  border-radius: 6px;
  background-color: #f5f5f5;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.search-input {
  padding: 8px 12px;
  font-size: 14px;
  color: #2a4d7f;
  border: 1px solid #999;
  border-radius: 6px;
  background-color: #ffffff;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  width: 240px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.search-button {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  background-color: #338b35;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.search-button:hover {
  background-color: #1f3c66;
}

.catalog-intro {
  width: 70%;
  margin: 5px auto;
  padding: 5px;
  font-family: 'Open Sans', sans-serif;
  background-color: #e0e0e0;
  border-left: 6px solid #2a4d7f;
  border-right: 6px solid #2a4d7f;
  border-radius: 8px;
  box-shadow: 2 2px 6px rgba(0,0,0,0.1);
}

.catalog-intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #2a4d7f;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.simple-title {
  font-size: 14px;
  font-weight: bold;
  color: #2a4d7f; /* синкав тон, съответстващ на цифрите в таблицата */
  text-align: center;
  margin-top: 20px;
  margin-bottom: 5px;
  font-family: 'Open Sans', sans-serif;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); 
}

.text-14 {
  font-size: 14px;
  line-height: 1.5;
  color: #333; /* можеш да смениш цвета */
  font-family: Arial, sans-serif; /* или друга по избор */
}

.text-141 {
  font-size: 18px;
  line-height: 1.5;
  color: #830413; /* можеш да смениш цвета */
  font-family: Arial, sans-serif; /* или друга по избор */
}



.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
  gap: 8px;
}

.tabs1 {
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
  margin-top: 20px;
  gap: 8px;
}

.tab {
font-size: 16px;
  padding: 5px 10px;
  background: #f0f4f8;
  color: #333;
  border: 1px solid #4A90E2;
  border-radius: 4px 4px 0 0;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  user-select: none;        /* ❌ Забранява маркиране на текста */
  cursor: pointer;          /* ✅ Показва курсор като при линк */
  font-size: 14px; /* 👈 Размер на шрифта */
}

.tab:hover {
  background-color: #e0ecf8;
  border-color: #357ABD;
  color: #000;
}

.tab.active {
  background-color: #338b35;
  color: white;
  border-bottom: none; /* seamless преход към съдържанието */
}

.tab-content {
  display: none;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.tab-content.active {
  display: block;
}

#topBtn {
  position: fixed;
  bottom: 30px;
  right: 40px;
  padding: 5px 10px;             /* по-малко вътрешно пространство */
  font-size: 16px;               /* по-малък текст */
  background-color: #4A90E2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 1000;
  user-select: none;
}
#topBtn:hover {
  background-color: #357ABD;
}

form {
  margin-top: 5px;
  margin-bottom: 0;
  padding: 0;
}

fieldset {
  margin-top: 5px;
}

legend {
  margin-top: 5px;
  padding: 4px 10px;
}
