/*
 * Copyright (c) 2026 Besnovatyj. Licensed under the MIT License.
 */

.navbar-nav {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin-right: 10px; /* Отступ между пунктами меню */
}

.nav-link {
    padding: 10px 15px;
    color: #333;
    text-decoration: none; /* Убираем подчеркивание по умолчанию */
    transition: color 0.3s ease;
    white-space: nowrap; /* Предотвращаем перенос текста */
}

.nav-link:hover {
    color: #007bff;
}

.flutter-underline {
    position: relative;
    display: inline-block;
}

.flutter-underline-graphic {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover .flutter-underline-graphic,
.nav-link.active .flutter-underline-graphic {
    opacity: 1;
}

.dropdown-toggle.has-icon::after {
    display: none;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    margin-left: 5px;
    vertical-align: middle;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.dropdown-menu.animate.fade-down {
    animation: fadeDown 0.3s ease-in-out;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 1px;
}

/* Для адаптивности на маленьких экранах (опционально) */
@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column; /* Вертикальное меню на мобильных */
    }
    .nav-item {
        margin-right: 0;
        margin-bottom: 10px; /* Отступ между пунктами в вертикальном меню */
    }
}
