.app-topbar-shell {
    position: relative;
    z-index: 30;
    padding: 0.75rem 0 0;
    background:
        linear-gradient(180deg, rgba(12, 57, 112, 0.96), rgba(12, 57, 112, 0.92)),
        url('../img/bg-header.png') center/cover no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-topbar {
    overflow: visible !important;
}

.app-topbar__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 70px;
    padding: 0.75rem 1rem;
    border-radius: 1rem 1rem 0 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.app-topbar__brand-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.app-topbar__brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    text-decoration: none;
}

.app-topbar__brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-topbar__brand-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.08em;
}

.app-topbar__brand-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.app-topbar__route {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.app-topbar__route-label {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.app-topbar__route strong {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: capitalize;
    line-height: 1.4;
}

.app-topbar__toggle {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: none;
}

.app-topbar__toggle:focus {
    box-shadow: none;
}

.app-topbar__collapse {
    flex: 1 1 auto;
}

.app-topbar__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.app-topbar__menus,
.app-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.app-topbar__menu-item,
.app-topbar__action-item {
    list-style: none;
}

.app-topbar__menu-link,
.app-topbar__profile {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.9rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    color: #fff !important;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.app-topbar__menu-link {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.84rem;
    font-weight: 700;
}

.app-topbar__menu-link:hover,
.app-topbar__profile:hover,
.app-topbar__notif-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.app-topbar__menu-link.dropdown-toggle::after {
    margin-left: 0.55rem;
}

.app-topbar__dropdown {
    border: 0;
    border-radius: 1rem;
    padding: 0.65rem;
    min-width: 15rem;
    margin-top: 0.65rem !important;
    background: #fff;
    box-shadow: 0 18px 32px rgba(10, 51, 101, 0.14);
}

.app-topbar__dropdown .dropdown-item {
    border-radius: 0.9rem;
    padding: 0.8rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.app-topbar__dropdown .dropdown-item:hover {
    background: #f3f8ff;
}

.app-topbar__menu-item .app-topbar__dropdown {
    left: 0;
    right: auto;
}

.app-topbar__action-item .app-topbar__dropdown {
    right: 0;
    left: auto;
}

.app-topbar__notif-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.app-topbar__notif-badge {
    position: absolute;
    top: -0.15rem;
    right: -0.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.app-topbar__notifications {
    width: min(24rem, 92vw);
}

.app-topbar__profile {
    padding: 0.4rem 0.5rem 0.4rem 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

.app-topbar__profile-copy {
    display: flex;
    flex-direction: column;
}

.app-topbar__profile-name {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
}

.app-topbar__profile-meta {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.76rem;
    line-height: 1.2;
}

.app-topbar__profile-avatar,
.app-topbar__profile-image {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    flex-shrink: 0;
}

.app-topbar__profile-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: #0c4b9b;
}

.app-topbar__profile-menu {
    width: min(20rem, 92vw);
}

.app-topbar-shell .nav-item:hover,
.app-topbar-shell .dropdown-menu .nav-item:hover {
    background-color: transparent;
}

@media (max-width: 991.98px) {
    .app-topbar__collapse {
        display: none;
        width: 100%;
    }

    .app-topbar__collapse.is-open {
        display: block;
    }

    .app-topbar-shell {
        padding: 0.55rem 0 0;
    }

    .app-topbar__inner {
        align-items: center;
        padding: 0.75rem 0.85rem;
        border-radius: 0;
    }

    .app-topbar__collapse {
        margin-top: 0.85rem;
    }

    .app-topbar__brand-wrap {
        flex: 1 1 auto;
    }

    .app-topbar__content {
        display: block;
    }

    .app-topbar__menus,
    .app-topbar__actions {
        display: grid !important;
        grid-template-columns: 1fr;
        align-items: stretch !important;
        width: 100%;
        gap: 0.75rem;
        padding-left: 0;
        margin: 0;
    }

    .app-topbar__menu-item,
    .app-topbar__action-item,
    .app-topbar__menu-item .dropdown-menu,
    .app-topbar__action-item .dropdown-menu {
        width: 100%;
        margin: 0;
    }

    .app-topbar__menu-link,
    .app-topbar__profile,
    .app-topbar__notif-toggle {
        width: 100%;
        justify-content: space-between !important;
        display: flex;
        margin: 0;
    }

    .app-topbar__dropdown,
    .app-topbar__notifications,
    .app-topbar__profile-menu {
        width: 100%;
        min-width: 100%;
        position: static !important;
        inset: auto !important;
        float: none;
        margin-top: 0.55rem !important;
        box-shadow: none;
        border: 1px solid rgba(12, 75, 155, 0.12);
    }

    .app-topbar__menu-item .app-topbar__dropdown,
    .app-topbar__action-item .app-topbar__dropdown {
        display: none;
    }

    .app-topbar__menu-item .app-topbar__dropdown.show,
    .app-topbar__action-item .app-topbar__dropdown.show {
        display: block;
    }

    .app-topbar__route {
        display: none;
    }

    .app-topbar__notif-toggle {
        min-height: 3rem;
    }

    .app-topbar__profile {
        align-items: center;
    }

    .app-topbar__profile-copy {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (min-width: 992px) {
    .app-topbar__collapse {
        display: block !important;
    }
}

@media (max-width: 575.98px) {
    .app-topbar__inner {
        padding: 0.7rem 0.5rem;
    }

    .app-topbar__brand-title {
        font-size: 0.92rem;
    }

    .app-topbar__brand-subtitle,
    .app-topbar__profile-meta {
        font-size: 0.72rem;
    }

    .app-topbar__profile-name {
        font-size: 0.86rem;
    }

    .app-topbar__brand {
        gap: 0.7rem;
    }
}
