/* =========================================================
   NAVBAR
   ========================================================= */

.user-navbar {
    width: 100%;
    background: #DCCEFF;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    width: 92%;
    max-width: 1500px;
    min-height: 120px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 45px;
}


/* =========================================================
   LOGO
   ========================================================= */

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.navbar-logo img {
    width: 100px;
    height: 100px;

    object-fit: contain;
}

.logo-text h2 {
    margin: 0;

    color: #34186F;

    font-size: 25px;
    font-weight: 700;
}

.logo-text span {
    display: block;

    margin-top: 5px;

    color: #222;

    font-size: 16px;
}


/* =========================================================
   MENU
   ========================================================= */

.navbar-menu {
    display: flex;
    align-items: center;

    gap: 35px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.navbar-menu > li {
    position: relative;

    list-style: none;
}

.navbar-menu > li > a {
    display: block;

    color: #34186F;

    font-size: 17px;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    transition: color 0.2s ease;
}

.navbar-menu > li > a:hover,
.navbar-menu > li > a.active {
    color: #6F42C1;
}


/* =========================================================
   REPORT ITEM DROPDOWN
   ========================================================= */

.dropdown {
    position: relative;
}


/*
 * IMPORTANT:
 * This invisible bridge fills the 10px gap between
 * "Report Item" and the dropdown.
 *
 * Without this, the dropdown disappears when the cursor
 * moves from the parent link to the dropdown menu.
 */
.dropdown::after {
    content: "";

    position: absolute;

    top: 100%;
    left: 0;
    right: 0;

    height: 12px;

    background: transparent;

    z-index: 1999;
}


.dropdown-toggle {
    cursor: pointer;
}


/* =========================================================
   DROPDOWN MENU
   ========================================================= */

.dropdown-menu {
    display: none;

    position: absolute;

    /*
     * Keep the visual 10px gap.
     */
    top: calc(100% + 10px);

    left: 50%;

    min-width: 180px;

    margin: 0;
    padding: 8px 0;

    transform: translateX(-50%);

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 8px 25px rgba(52, 24, 111, 0.18);

    list-style: none;

    z-index: 2000;
}


/*
 * Show dropdown when hovering:
 * - Report Item
 * - invisible bridge
 * - dropdown itself
 */
.dropdown:hover .dropdown-menu {
    display: block;
}


/* =========================================================
   DROPDOWN ITEMS
   ========================================================= */

.dropdown-menu li {
    margin: 0;
    padding: 0;

    list-style: none;
}

.dropdown-menu li a {
    display: block;

    padding: 11px 18px;

    color: #34186F;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.dropdown-menu li a:hover {
    background: #F1EBFF;

    color: #6F42C1;
}


/* =========================================================
   PROFILE / ACCOUNT
   ========================================================= */

.profile-menu {
    position: relative;

    flex-shrink: 0;
}

.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 205px;

    padding: 14px 20px;

    border: none;

    border-radius: 30px;

    background: #ffffff;

    color: #34186F;

    font-size: 16px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.profile-btn:hover {
    background: #F1EBFF;

    color: #6F42C1;
}


/* =========================================================
   PROFILE DROPDOWN
   ========================================================= */

.profile-dropdown {
    display: none;

    position: absolute;

    top: calc(100% + 10px);

    right: 0;

    min-width: 205px;

    padding: 8px 0;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 8px 25px rgba(52, 24, 111, 0.18);

    z-index: 2000;
}

.profile-dropdown.show {
    display: block;
}


/* Invisible bridge for Account dropdown */

.profile-menu::after {
    content: "";

    position: absolute;

    top: 100%;
    right: 0;

    width: 205px;
    height: 12px;

    background: transparent;

    z-index: 1999;
}


.profile-dropdown a {
    display: block;

    padding: 11px 16px;

    color: #34186F;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.profile-dropdown a:hover {
    background: #F1EBFF;

    color: #6F42C1;
}


/* =========================================================
   MOBILE PANEL
   ========================================================= */

.mobile-nav-panel {
    display: contents;
}


/* =========================================================
   HAMBURGER
   ========================================================= */

.hamburger-btn {
    display: none;
}


/* =========================================================
   EXTRA DROPDOWN SAFETY
   ========================================================= */

.dropdown-menu,
.profile-dropdown {
    pointer-events: auto;
}

.dropdown-menu li,
.profile-dropdown a {
    position: relative;
}