body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 10px;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* запрещает горизонтальную прокрутку */
  width: 100%;
  max-width: 100%;
}

h1 {
  font-size: 18px;
  text-align: center;
  margin-bottom: 10px;
}

.row, .controls, .actions, .toggle-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  justify-content: center;
}

label {
  flex: 1 1 100%;
}

input, textarea {
  width: 100%;
  padding: 6px;
  font-size: 14px;
}

button {
  flex: 1 1 45%;
  padding: 10px;
  font-size: 14px;
  background-color: #3a86ff;
  color: white;
  border: none;
  border-radius: 5px;
}

button:hover {
  background-color: #265ed7;
}

/* Удаление иконок из текста кнопок */
button::before,
button::after {
  content: none !important;
}

/* Таблица лекарств */
#drugsTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

#drugsTable th, #drugsTable td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: left;
}

.template-dropdown {
  position: relative;
  flex: 1 1 100%;
}

.template-toggle {
  width: 100%;
}

.template-menu {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  z-index: 1;
  width: 100%;
}

.template-dropdown:hover .template-menu {
  display: block;
}

#authBox {
  text-align: center;
  margin-bottom: 10px;
}

#subscribeFloating {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: #ff595e;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

/* Обёртка для горизонтальной прокрутки таблицы */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Сама таблица */
#drugsTable {
  min-width: 600px; /* Чтобы была прокрутка */
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.icon {
  display: none !important;
}

.secondary-button {
  background-color: #34495e; /* зелёный */
}

.secondary-button:hover {
  background-color: #2c3e50;
}

/* Адаптация hero-секции */
.hero-section {
  height: auto !important;
  padding: 300px 10px;
  text-align: center;
}
.hero-content h1 {
  font-size: 1.6rem !important;
  line-height: 1.4;
  font-weight: 300;
}  
.hero-content h1 span {
  font-family: 'Roboto', sans-serif;
  font-size: 2.5rem !important;
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  margin-top: 10px;
}


/* Скрываем десктоп-меню, показываем мобильное */
.main-nav {
  display: none !important;
}
#mobileMenuToggle {
  display: block !important;
  background: #0072ff;
  color: white;
  padding: 10px 15px;
  font-size: 16px;
  text-align: center;
  border: none;
  border-radius: 6px;
  margin: 10px auto;
}

#mobileMenu {
  display: none;
  flex-direction: column;
  align-items: flex-start; /* выравнивание по левому краю */
  gap: 8px;
  margin-top: 50px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 90%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#mobileMenu a {
  display: block;
  width: 100%;
  color: #0072ff;
  padding: 10px;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

#mobileMenu a:last-child {
  border-bottom: none;
}

#mobileMenu a:hover {
  background-color: #f0f8ff;
  border-radius: 4px;
}
