header {
    background-color: #ff6700;
}

/*Nav principal*/ d
#containerNav {
    height: 54px;
}

#containerNav ul {
    height: 100%;
}

#navbarNav {
    display: flex;
    gap: 12px;
    align-items: center;
    height: 100%;
}

.navbar {
    background: #ff6700;
}

.navbar-brand img {
    width: 40px;
}

/*Links e botões*/
.nav-link {
    height: 100%;
    padding: 0;
    font-size: 15px !important;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .nav-link:hover,
    .nav-link:active {
        color: var(--color-black);
        background-color: var(--hover-color);
    }

.nav-item a,
.nav-item button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

.nav-item a,
.nav-item button {
    color: var(--color-black);
    font-size: 18px;
    width: 46px;
    height: 46px;
    border: none;
    background: none;
}

    .nav-item a:hover,
    .nav-item a:active,
    .nav-item button:hover,
    .nav-item button:active {
        color: var(--color-white);
        background-color: var(--hover-color);
    }

.drop-item {
    transition: all 0.2s ease-in-out;
}

    .drop-item:hover,
    .drop-item:active {
        color: var(--color-black);
        background-color: var(--hover-color);
    }

/*Dropdowns*/
.navbar .dropdown-cursos {
    position: absolute;
    top: 90%;
    right: 20rem;
    min-width: fit-content;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 4px 8px;
    z-index: 10;
    overflow: hidden;
}

/* Mobile idioma (inside mobile overlay) */
.mobile-idioma-list {
    list-style: none;
    padding: 8px 0 0 28px;
    margin: 0;
    display: grid;
    gap: 8px;
}

    .mobile-idioma-list button {
        background: none;
        border: none;
        color: white;
        font-size: 16px;
        cursor: pointer;
        padding: 6px 12px;
        border-radius: 6px;
        transition: background 0.2s ease-in-out;
    }

        .mobile-idioma-list button:hover {
            background: rgba(255, 255, 255, 0.15);
        }

/* Active language indicator */
.idioma-active {
    font-weight: 700;
    color: var(--primary-color) !important;
}

    .idioma-active:hover,
    .idioma-active:active:hover {
        color: var(--color-white) !important;
        background: rgba(255, 255, 255, 0.15);
    }

.mobile-idioma-list .idioma-active {
    color: white !important;
}

.dropdown-cursos ul {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

    .dropdown-cursos ul li {
        border-radius: 5px;
    }

        .dropdown-cursos ul li button {
            width: 100%;
            padding: 10px 16px;
            background: none;
            border: none;
            font-size: 14px;
            text-align: left;
            cursor: pointer;
        }

/*Dropdown usuário*/
#navbar .menu-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 80%;
    transform: translateX(-50%);
    background: var(--color-white);
    box-shadow: 0 0 0 10px rgba(0,0,0,.2), 0 0 10px rgba(255,255,255,0.1);
    backdrop-filter: blur(60px);
    opacity: 1;
    visibility: visible;
    border-radius: 18px;
    overflow: hidden !important;
    z-index: 1;
}

.userAvatar {
    padding: 2px 16px;
    margin-top: 20px;
}

.menu-nav ul {
    margin: 0;
    padding: 0;
    margin-top: 20px;
    list-style: none;
    border-radius: 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    color: var(--color-black);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

    .menu-item:hover,
    .menu-item:focus,
    .menu-item:active {
        color: gray !important;
        text-decoration: none;
    }

    .menu-item:hover {
        background: var(--dropuser-color);
    }

/*Header mobile*/
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    background-color: #ff6700;
    padding: 10px;
    color: white;
    display: block;
    text-align: start;
    z-index: 2;
}

    .menu ul {
        list-style: none;
        padding: 20px;
        margin: 0;
    }

    .menu li {
        padding: 10px 0;
    }

    .menu a {
        font-size: 20px;
        color: white;
        text-decoration: none;
    }

        .menu a:hover {
            text-decoration: underline;
        }

body.menu-open {
    overflow: hidden;
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

/* Botão bar mobile */
.btn-menu-mobile {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/*Logos*/
.logo-mobile {
    display: none;
}

.logo-desktop {
    display: block;
}

/*Responsividade*/
@media (min-width: 768px) {
    .menu {
        width: 50%;
    }

    .logo-mobile {
        display: none;
    }
}

@media (min-width: 992px) {
    .menu, .btn-menu-mobile {
        display: none !important;
    }

    .menu-desktop {
        display: flex;
    }

    .logo-desktop {
        display: block;
    }
}

@media (max-width: 991px) {
    .menu-desktop {
        display: none !important;
    }

    .btn-menu-mobile {
        display: block;
    }

    .logo-mobile {
        display: block;
    }

    .logo-desktop {
        display: none;
    }
}

/*Usuario*/
.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;
}

    .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%;
    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;
}

/* ===== Notifications ===== */
.notification-item {
    position: relative;
}

    .notification-item .nav-link {
        position: relative;
    }

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #E2484A;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.dropdown-notifications {
    position: absolute;
    top: 94%;
    right: 0;
    min-width: 240px;
    max-width: 320px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10;
    overflow: hidden;
}

.notification-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--background-color);
    color: var(--color-black);
    font-size: 14px;
}

.notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 260px;
    overflow-y: auto;
}

.notification-item-entry a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    color: var(--color-black);
    width: 100%;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s ease-in-out;
}

    .notification-item-entry a:hover {
        background: none;
        border-radius: 0px;
    }

.notification-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}

.notification-progress {
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.notification-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-color);
    font-size: 13px;
}
