#enter,
#account {
    color: black;
}

.navbar>.container {
    justify-content: initial;
}

.navbar-brand img {
    width: 210px;
}

.navbar-nav {
    align-items: center;
    gap: 5px;
    box-shadow: none !important;
}

.balance-mobile {
    font-size: calc((100vw - 420px)/(1280 - 480) * (18 - 12) + 12px);
    padding: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: calc((100vw - 30rem)/(80 - 30) * (1.5 - 1) + 1rem);
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.list-group-nav {
    box-shadow: 0 0 40px 1px #F0F0F0;
    height: 100%;
    padding: 1% 0.5% 1% 0.5%;
    border-radius: 10px;
    width: 250px;
}

.list-item-nav a {
    color: #696E76;
    text-decoration: none;
    width: 210px;
}

.list-item-nav a:active {
    color: #000000;
    font-weight: 500;
}

.list-item-nav-active a {
    color: #000000;
    font-weight: 500;
}

.list-item-nav a:hover {
    color: #000000;
    font-weight: 500;
}

.mobile-toggle-container {
    display: flex;
    align-items: center;
}

.balance {
    cursor: pointer;
}

.sales-margin-top {
    margin-top: 80px;
}

.nav-link {
    position: relative;
    top: 0;
    left: 0;
}

.dropdown-navbar {
    position: relative;
    padding-right: 20px !important;
    cursor: pointer;
}

.dropdown-navbar::after {
    content: "";
    position: absolute;
    right: 2px !important;
    top: 50% !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 1.5px solid currentColor !important;
    border-bottom: 1.5px solid currentColor !important;
    border-left: none !important;
    border-top: none !important;
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.2s ease, top 0.2s ease;
    margin: 0 !important;
}

.dropdown-navbar.show::after {
    transform: translateY(-40%) rotate(-135deg);
    top: 55% !important;
}

.not-mobile {
    display: none;
}

.mobile-visible {
    display: block;
}

.nav-link.show {
    color: rgba(0, 0, 0, 0.65) !important;
}

@media (min-width: 992px) {

    .nav-dropdown {
        display: block !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
        margin-top: 0px !important;
        transform: translateY(-10px) !important
    }

    .dropdown-menu.show {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0px) !important
    }

    /* Hover эффект для dropdown */
    .dropdown:hover .nav-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0px) !important;
    }

    .dropdown:hover .dropdown-navbar::after {
        transform: translateY(-40%) rotate(-135deg);
        top: 55% !important;
    }

    .nav-link:focus,
    .nav-link:hover:not(.active) {
        color: #4DAFA8 !important;
        transition: color 0.2s ease-out;
    }

    .navbar-nav .nav-link::before {
        content: "";
        transition: transform 0.2s ease-out;
        transform: scale(0.1, 1);
    }

    .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0px;
        bottom: 3px;
        position: absolute;
        content: "";
        border-bottom: 2px solid #4DAFA8;
        border-radius: 15px;
        transform: scale(1, 1);
    }

    .navbar-nav .nav-link:hover:not(.active)::before {
        width: 100%;
        left: 0px;
        bottom: 3px;
        position: absolute;
        content: "";
        border-bottom: 2px solid #4DAFA8;
        border-radius: 15px;
        transform: scale(1, 1);
    }

    .navbar-nav .nav-dropdown .nav-link:hover:not(.active)::before {
        width: 100%;
        left: 0px;
        bottom: -1.5px;
        content: "";
        border-bottom: none;
    }

    .auth-navbar .nav-link:hover:not(.active)::before {
        border-bottom: 2px solid #ffffff;
    }

    .not-mobile {
        display: block;
    }

    .mobile-visible {
        display: none;
    }
}

.nav-dropdown .nav-link {
    font-size: 16px !important;
    white-space: nowrap !important;
}

.nav-dropdown .nav-link.logout {
    color: rgba(108, 117, 125, 1) !important;
}

.auth-navbar .nav-link:focus,
.auth-navbar .nav-link:hover {
    color: #fff !important;
}

.navbar-nav .nav-link.active {
    color: #4DAFA8 !important;
}

.navbar-nav .nav-link {
    border: none;
}

.nav-dropdown {
    right: 0px !important;
    top: 60px !important;
    left: auto !important;
    padding: 20px;
    width: auto !important;
    filter: drop-shadow(0 2px 4px rgba(99, 99, 99, 0.2));
    border-radius: 20px;
    text-align: start;

    li {
        padding: 8px 10px !important;
        border-radius: 10px;
    }

    li:hover {
        background-color: rgba(246, 247, 254, 1);
        color: rgba(30, 199, 191, 1);
    }

    a {
        padding: 0px !important;
    }
}

.nav-dropdown .logout {
    margin-top: 50px;
}

.nav-dropdown::before {
    position: absolute;
    top: -15px;
    right: 25px;
    content: "";
    width: 35px;
    height: 28px;
    background: rgba(255, 255, 255, 1);
    clip-path: polygon(0% 100%,
            40% 10%,
            /* левая контрольная точка (увеличиваем Y для плавности) */
            48% 3%,
            /* левая верхняя точка ближе к центру */
            50% 0%,
            /* верхний угол */
            52% 3%,
            /* правая верхняя точка ближе к центру */
            60% 10%,
            /* правая контрольная точка */
            100% 100%);
}



.search-site-container {
    display: none;
    margin-bottom: -1px;
    margin-right: 0.5rem;
    padding-bottom: 3px;
    align-self: center;
}

.search-site-input {
    border-radius: 15px;
    height: 35px;
    border: 1px solid #696E76;
    width: 180px;
    padding: 10px;
    font-size: 0.8rem;
}

.search-site-input:focus {
    border-color: #80d7d3 !important;
    box-shadow: 0 0 0 0.1rem #80d7d3 !important;
    outline: none;
}

.search-site-input::placeholder {
    background-image: url('/static/images/search.svg');
    background-repeat: no-repeat;
}

#search-site-toggler:checked~.search-site-container {
    display: block !important;
    animation: searchAppear 0.8s ease forwards;
}

#search-site-toggler:checked~.navbar-nav {
    display: none !important;
}

#search-site-toggler:checked~.navbar-toggler {
    display: none;
}

#search-site-toggler:checked~.search-toggle-button {
    background-image: url("/static/images/xMark.svg");
}

.search-toggle-button {
    width: 20px;
    height: 17px;
    background-image: url("/static/images/search.svg");
    background-repeat: no-repeat;
}



@media (min-width: 992px) {
    #enter {
        display: none;
    }

    .static-navbar {
        margin-bottom: -90px;
    }


    .mobile-toggle-container {
        display: none;
    }

    .core-navbar {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        z-index: 11;
    }

    .profile-link {
        display: none;
    }

    .mobile-nav-item {
        display: none;
    }
}

.static-navbar {
    position: static !important;
    margin-bottom: 20px;
}

@media (max-width: 1199px) and (min-width: 992px) {
    .nav-link {
        font-size: 0.8rem
    }

    .nav-dropdown .nav-link {
        font-size: 0.8rem !important;
    }
}


@media (max-width: 991px) {

    .search-site-container {
        margin-left: auto;
    }

    .desctop-nav-item {
        display: none;
    }

    .navbar-nav {
        box-shadow: 0 0 40px 1px #F0F0F0;
        padding: 1% 0.5% 1% 0.5%;
        border-radius: 10px;
        gap: 0;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.125);
        width: 100%;
    }

    .nav-item:last-child {
        border: 0;
    }

    .nav-link:hover,
    .nav-link:focus {
        font-weight: 600;
        color: #696E76 !important;
        border: 0 !important;
    }

    .nav-link {
        border: 0 !important;
    }

    .navbar-nav .nav-link.active {
        background-color: transparent;
        font-weight: 600;
        color: #696E76 !important;
        border: 0 !important;
    }

}

@media (max-width: 420px) {


    .navbar-brand {
        width: 158px;
    }

    .navbar-brand img {
        width: 100%;
    }

    #enter {
        font-size: 0.8rem;
    }
}