﻿


.nav-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}


.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

    .nav-link:hover {
        color: #0066ff;
    }

     
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 18px;
        width: calc(100% - 36px);
        height: 3px;
        background-color: #039C14;
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    }

    .nav-link:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }

 
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 220px;
    padding: 10px 0;
    z-index: 1001;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    color: #444;
    text-decoration: none;
    padding: 12px 24px;
    transition: all 0.3s ease;
    font-size: 14px;
}

    .dropdown-link:hover {
        background-color: #f5f8ff;
        color: #0066ff;
        padding-left: 28px;
    }

 
.dropdown-arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}


.menu-icon {
    margin-right: 10px;
    font-size: 18px;
}


.nav-btn {
    background-color: #0066ff;
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    margin-left: 15px;
    transition: all 0.3s ease;
}

    .nav-btn:hover {
        background-color: #0052cc;
        transform: translateY(-2px);
    }

    .nav-btn::after {
        display: none;
    }













/* DROPDOWN - PARTE QUE RESOLVE O PROBLEMA */
.dropdown-menu {
    position: absolute;
    top: 100%; /* Posiciona abaixo do item pai */
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    border-radius: 0 0 5px 5px;
    list-style: none;
    /* Inicialmente escondido */
    display: none; /* Usando display em vez de opacity/visibility */
    
}

/* MOSTRAR DROPDOWN - FORMA MAIS CONFIÁVEL */
.nav-item:hover .dropdown-menu {
    display: block;
    
}

/* ITENS DO DROPDOWN */
.dropdown-item {
    padding: 0;
}

.dropdown-link {
    display: block;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}

    .dropdown-link:hover {
        background: #f5f5f5;
        color: #0066ff;
        
    }