/* Стили для Modern интерфейса на основе оригинального CustomersWebApp */

/* Основной фон страницы */
body {
  min-height: calc(100vh - 1.6875rem - 35px);
  background-color: #f8f9fa;
}

/* Header меню навигации */
.header-menu {
  min-width: 100%;
  padding: 5px 15px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  align-items: center;
}

/* Левая зона - звонок */
.header-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* Центральная зона - навигация */
.header-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

/* Правая зона - компания и корзина */
.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

/* Улучшенные стили для навигационных ссылок */
.nav-link-modern {
  background-color: transparent;
  text-decoration: none;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin-right: 15px;
  font-weight: 500;
  font-size: 0.95rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
}

.nav-link-modern:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-link-modern.router-link-active {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Wrapper для header'а */
.header-wrapper {
  top: 0.5rem;
  right: 0;
  width: 100%;
  background-image: url('/images/wap.jpg');
  background-position: top center;
  background-repeat: repeat-x;
  z-index: 10;
  transition: 0.5s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Заголовок компании */
.title {
  margin: 0;
  max-width: none;
  height: auto;
  font-size: 1.2rem;
  background-color: transparent;
  color: #ffffff;
  padding: 0;
  border-radius: 0;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

/* Встроенная иконка действия в строке накладной */
.button-icon {
  height: 1rem;
  color: cornflowerblue;
  margin: 2px;
  cursor: pointer;
  border: none;
}

.button-icon:hover {
  color: blue;
}

.button-icon:active {
  color: azure;
}

/* Общий контейнер для header'а */
.modern-header-container {
  background-image: url('/images/wap.jpg');
  background-position: top center;
  background-repeat: repeat-x;
  padding: 0.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 35px;
}

/* Класс для navbar с фоновым изображением */
.navbar-custom-bg {
  background-image: url('/images/wap.jpg');
  background-position: top center;
  background-repeat: repeat-x;
}

/* Стили для кнопки телефона */
.phone-button {
  color: #ffffff !important;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.phone-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Иконка настроек в header рядом с названием */
.settings-icon-header {
  color: #ffffff;
  cursor: pointer;
  padding: 2px;
  border-radius: 3px;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.settings-icon-header:hover {
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 1;
  transform: rotate(15deg);
}

/* Иконка настроек (общие) */
.settings-icon {
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.settings-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
  .header-menu {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px 10px;
  }

  .header-menu>div {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }

  .title {
    font-size: 1.4rem;
    height: auto;
    padding: 0;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 576px) {
  .header-menu {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
  }

  .header-menu>a {
    width: auto;
    text-align: center;
  }
}
