.container-top {
    z-index: var(--z-top-nav);
    width: max-content;
    padding: 0 10px; 
    height: 60px;
    border-radius: 10px;
    background-color: var(--color-panel); 
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px;
    transition: padding 0.4s ease; 
}

.menu-top-div{
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-top-ul{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.separator{
    width: 2px;
    height: 30px;
    background-color: var(--color-lines);;
    border-radius: 2px;
}

.container-top .menu-top-ul li {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; 
    height: 40px;
    border-radius: 10px;
    transition: transform 0.4s ease, background-color 0.4s ease;
    cursor: pointer;
    position: relative; 
}

.menu-top-ul img {
    width: 25px;
    height: 25px;
    object-fit: cover;
    filter: invert(1);
    transition: transform 0.4s ease;
}

.container-top ul li:hover {
    background-color: var(--color-hover);
    transform: scale(1.375); 
    z-index: 2;
}

.menu-top-div > ul > li > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-top-div > ul > li > a .text-top {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.727);
    padding: 8px 10px;
    border-radius: 6px;
    background-color: var(--color-hover);
    color: white;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}


.menu-top-div > ul > li > a .text-top::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: var(--color-hover);
}

.menu-top-div > ul > li > a:hover .text-top {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-85%) scale(0.727);
}

.menu-top-ul, .separator {
    transition: transform 0.4s ease;
}

.menu-top-ul li:hover ~ li {
    transform: translateX(7.5px);
}

.menu-top-ul li:has(~ li:hover) {
    transform: translateX(-7.5px);
}

.menu-top-div:has(.menu-top-ul:first-of-type li:hover) > .separator,
.menu-top-div:has(.menu-top-ul:first-of-type li:hover) > .menu-top-ul:last-of-type {
    transform: translateX(7.5px);
}

.menu-top-div:has(.menu-top-ul:last-of-type li:hover) > .separator,
.menu-top-div:has(.menu-top-ul:last-of-type li:hover) > .menu-top-ul:first-of-type {
    transform: translateX(-7.5px);
}

@media (max-width: 768px) {
    .container-top {
        padding: 0 10px;
        margin: 10px;
    }
    
    .menu-top-div {
        gap: 8px;
    }
}

@media (max-width: 412px) {
    .container-top {
        margin: 5px;
        padding: 0 5px;
        height: clamp(45px, 14.5vw, 60px);
    }
    
    .menu-top-div {
        gap: clamp(4px, 1.9vw, 8px);
    }

    .container-top .menu-top-ul li {
        width: clamp(32px, 9.7vw, 40px);
        height: clamp(32px, 9.7vw, 40px);
    }

    .menu-top-ul img {
        width: clamp(20px, 6vw, 25px);
        height: clamp(20px, 6vw, 25px);
    }

    .separator {
        height: clamp(20px, 7.2vw, 30px);
    }
}