
.alphabet-filter {
    text-align: center; /* Центрируем весь текст внутри контейнера */
}

/* Буквенная навигация */
.nav-letter {
    display: inline-flex;  /* Flexbox для центрирования */
    align-items: center;   /* Центрируем текст по вертикали */
    justify-content: center; /* Центрируем текст по горизонтали */
    min-width: 20px;
    min-height: 30px;
    padding: 5px 10px;  /* Добавляем отступы внутри кнопки */
    text-align: center;
    font-size: 1.5em;
    margin: 5px;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

/* Наведение на неактивные кнопки */
.nav-letter:not(.active):hover {
    background: #444;
    transform: scale(1.05);
    color: #ffab00;
}

/* Выбранная кнопка */
.nav-letter.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffab00;
}

/* Поиск как часть навигации */
.search-module {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    height: 40px;
    line-height: normal;
    width: auto; /* Подстраивается под содержимое */
}

/* Поле ввода внутри поиска */
#nameSearchInput {
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: transparent;
    color: #fff;
    font-size: 1em;
    outline: none;
    flex-grow: 1; /* Расширяется, занимая доступное пространство */
    min-width: 150px; /* Минимальная ширина для ввода */
    transition: all 0.3s ease-in-out;
}

/* Поле ввода при фокусе */
#nameSearchInput:focus {
    border-color: #ffab00;
}

/* Кнопка поиска */
.search-button {
    display: flex;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    font-size: 1.5em;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: unset;
    align-items: center;
    justify-content: center;
}

/* Наведение на кнопку поиска */
.search-button:hover {
    transform: scale(1.03);
    color: #ffab00;
}

/* Наведение на кнопку поиска */
.search-button:hover .search-icon{
    display: flex;
    width: 80%;
    height: 80%;
    background-image: url('../images/search_icon_active.svg'); /* Убедитесь, что путь к иконке корректен */
    background-size: contain;
    background-repeat: no-repeat;
}

/* Иконка внутри кнопки */
.search-icon {
    display: flex;
    width: 80%;
    height: 80%;
    background-image: url('../images/search_icon.svg'); /* Убедитесь, что путь к иконке корректен */
    background-size: contain;
    background-repeat: no-repeat;
}

/* Иконка внутри кнопки */
.search-icon.active {
    display: flex;
    width: 80%;
    height: 80%;
    background-image: url('../images/search_icon_active.svg'); /* Убедитесь, что путь к иконке корректен */
    background-size: contain;
    background-repeat: no-repeat;
}

/* Пагинация: Общие стили */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Расстояние между элементами */
    margin: 20px 0; /* Отступы сверху и снизу */
}