/* estilo geral do header */
header {
    background-color: #FE7743;
}

#containerNav {
    height: 54px;
}

    #containerNav ul {
        height: 100%;
    }

#navbarNav {
    height: 100%;
}

.nav-link {
    height: 100%;
    padding: 0px;
    font-size: 15px !important;
    color: white;
}

.bandeira {
    width: 28px;
    border-radius: 10%;
}

.nav-item {
    height: 100%;
    font-size: 20px;
    position: relative;
}

    .nav-item a {
        font-weight: 400;
        text-decoration: none;
        color: white;
        font-size: 20px;
        display: flex;
        align-items: center;
    }

    .nav-item .nav-link {
        text-decoration: none;
        color: white;
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

        .nav-item .nav-link:hover {
            background-color: var(--hover-color);
        }

    .nav-item a:visited {
        color: white;
    }

    .nav-item a:hover {
        background-color: var(--hover-color);
        color: white;
    }

    .nav-item a:active {
        color: white;
    }

    .nav-item i {
        font-size: 14px;
    }


/* configurando dropdown menu cursos e idiomas */

.navbar .dropdown-cursos {
    z-index: 9998;
    position: absolute;
    top: calc(100%);
    width: 100%;
    display: flex;
    justify-content: center;
    background: #FE7743;
    box-shadow: 0 50px 50px rgba(0, 0, 0, .2);
    border-radius: 0 0 6px 6px;
    user-select: none;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    overflow: hidden !important;
}

#navbar ul li:hover .dropdown-cursos {
    display: flex;
}

.menu-teste:hover .dropdown-cursos {
    display: flex;
}

#navbar .dropdown-cursos ul {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

    #navbar .dropdown-cursos ul li {
        border-radius: 0 0 5px 5px;
    }

.drop-item {
    transition: 0.1s;
}

    .drop-item li {
        justify-content: start;
    }

    .drop-item a {
        height: 100%;
        width: 100%;
        padding: 16px 20px;
        color: white;
        text-decoration: none;
        cursor: pointer;
    }

#navbar .dropdown-cursos ul a {
    text-decoration: none;
    justify-content: end;
    color: white;
    padding: 14px;
    font-size: 13px !important;
}

@media (min-width: 900px) {
    #navbar .dropdown-cursos ul a {
        text-decoration: none;
        justify-content: start;
        color: white;
        font-size: 14px;
    }

    .nav-item {
        height: 100%;
        width: 165px;
        font-size: 20px;
        position: relative;
    }
}

/* configurando dropdown menu user */
#navbar .menu-nav {
    z-index: 9999;
    position: absolute;
    top: calc(100% + 8px);
    left: 40%;
    transform: translateX(-50%);
    background: var(--color-white);
    box-shadow: 0 50px 50px rgba(0, 0, 0, .2);
    user-select: none;
    opacity: 0;
    visibility: hidden;
    border-radius: 18px;
    overflow: hidden !important;
}

    #navbar .menu-nav.ativo {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        border-radius: 18px;
        box-shadow: 0 0 0 10px rgba(0, 0, 0, .2), 0 0 10px rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

    #navbar .menu-nav ul {
        margin: 0;
        padding: 0;
        background-color: var(--color-white);
        list-style: none;
        border-radius: 12px;
    }

.userAvatar {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: flex-start;
    padding: 12px 22px 0px 22px;
}

.menu-item {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--color-black);
    font-weight: semibold;
    font-size: 14px;
}

    .menu-item:hover {
        color: var(--color-black) !important;
        font-weight: semibold;
        font-size: 14px;
        background: var(--dropuser-color);
    }

    .menu-item p {
        color: var(--color-black);
    }

    .menu-item i {
        color: var(--color-black);
    }

/* mensagem de boas vindas  */
.bemvindo {
    width: 100%;
    padding: 14px;
    background: var(--color-white);
}

    .bemvindo p {
        margin: 0;
        padding: 6px 0px;
        font-size: 15px;
        font-weight: 100;
        color: var(--text-color);
    }

    .bemvindo span {
        font-weight: semibold;
        color: var(--color-black);
    }

/* Estilo do header mobile */

.menu {
    z-index: 999;
    position: fixed;
    background-color: var(--primary-color);
    left: 0;
    padding: 10px;
    min-height: 100vh;
    align-items: center;
    align-content: start;
    color: white;
    display: none;
    justify-items: between;
    text-align: end;
}

    .menu i {
        padding: 0px;
        font-size: 18px;
    }

.btn-fechar i {
    padding: 10px;
    font-size: 30px;
}

.menu ul {
    list-style: none;
    align-items: center;
    padding: 20px;
    margin: 0;
}

.menu li {
    padding-top: 10px;
    padding-bottom: 10px;
}

.menu a {
    font-size: 20px;
    color: white;
    text-decoration: none;
}

    .menu a:hover {
        text-decoration: underline;
    }

.menu-mobile {
    width: 0%;
    transition: .5s;
}

    .menu-mobile i {
        width: 20px;
        font-weight: bold;
        color: white;
    }

@media(min-width: 425px) {
    #navbar .menu-nav {
        z-index: 9999;
        position: absolute;
        top: calc(100% + 8px);
        left: 55%;
        transform: translateX(-50%);
        background: var(--color-white);
        box-shadow: 0 50px 50px rgba(0, 0, 0, .2);
        user-select: none;
        opacity: 0;
        visibility: hidden;
        border-radius: 18px;
        overflow: hidden !important;
    }
}

@media(min-width: 768px) {
    #navbar .menu-nav {
        z-index: 9999;
        position: absolute;
        top: calc(100% + 8px);
        left: 80%;
        transform: translateX(-50%);
        background: var(--color-white);
        box-shadow: 0 50px 50px rgba(0, 0, 0, .2);
        user-select: none;
        opacity: 0;
        visibility: hidden;
        border-radius: 18px;
        overflow: hidden !important;
    }
}

@media (min-width: 992px) {
    .menu-mobile {
        transition: .03s ease-in-out;
        background-color: #fd5d00;
        min-height: 100vh;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 99999;
        width: 0%;
        overflow: hidden;
    }

    .bemvindo {
        padding: 0px;
    }
}

.profile-button {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: inherit;
    text-decoration: none;
    min-height: 48px;
}

    .profile-button:hover {
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.profile-initials {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.profile-info {
    max-width: 120px;
    text-align: left;
}

.profile-name {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: var(--color-black);
}

.profile-role {
    font-size: 12px;
    opacity: 0.7;
    color: var(--color-white) !important
}

.roleUsuario,
.userAvatar h6,
hr {
    color: var(--color-black) !important;
}
