/* Final fix for sticky menu - targeting all possible wrappers */
.pkp_navigation_primary_wrapper, 
.pkp_structure_head, 
.pkp_head_wrapper,
header.pkp_structure_head {
    position: relative !important;
    top: 0 !important;
    transform: none !important;
}

/* Ensure no empty space is left at the top */
body {
    padding-top: 0 !important;
}

/* Sidebar Menu Design - Fit perfectly in sidebar */
.custom-sidebar-menu {
    border: 1px solid #ddd;
    border-top: 4px solid #b38e44;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
    width: 100%; /* Ensure it fills the sidebar */
}

/* Hide old header */
.custom-sidebar-menu .menu-header {
    display: none;
}

.custom-sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-sidebar-menu ul li {
    border-bottom: 1px solid #eee;
}

.custom-sidebar-menu ul li a {
    display: block;
    padding: 12px 15px;
    color: #1b3d6d;
    text-decoration: none;
    font-size: 15px;
}

.custom-sidebar-menu ul li a i {
    color: #b38e44;
    margin-right: 12px;
    width: 18px;
    text-align: center;
}

/* --- User Navigation & Dashboard Styles --- */

/* Top-level links (Admin, Dashboard, etc.) */
.pkp_navigation_user > li > a {
    color: #000000 !important; /* Black provides better contrast on gold */
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.pkp_navigation_user > li > a:hover {
    color: #333333 !important;
}

/* Notification Badge (Task Count) */
.pkp_navigation_user .task_count {
    background-color: #d9534f !important; 
    color: #ffffff !important;
    border-radius: 20px !important;
    padding: 2px 8px !important;
    font-size: 10px !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
}

/* --- User Navigation Dropdown - Nuclear Fix --- */

/* The dropdown container (the white box) */
.pkp_navigation_user li ul,
#navigationUser li ul {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    border-radius: 6px !important;
    padding: 10px 0 !important;
    margin-top: 8px !important;
    min-width: 220px !important;
    z-index: 10000 !important;
}

/* Force ALL text inside the dropdown to be black and visible */
.pkp_navigation_user li ul *,
#navigationUser li ul * {
    color: #000000 !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 14px !important;
    text-decoration: none !important;
}

/* Specific styling for the links inside the dropdown */
.pkp_navigation_user li ul li a,
#navigationUser li ul li a {
    color: #000000 !important;
    padding: 12px 25px !important;
    display: block !important;
    font-weight: 600 !important;
    border-left: 4px solid transparent !important;
    transition: all 0.2s ease !important;
}

/* Hover effect for dropdown items */
.pkp_navigation_user li ul li a:hover,
#navigationUser li ul li a:hover {
    background-color: #f9f9f9 !important;
    color: #b38e44 !important; /* Use theme gold for hover text */
    border-left: 4px solid #b38e44 !important; /* Gold accent bar */
}

/* Ensure the dropdown caret is visible */
.pkp_navigation_user .pkp_navigation_user_caret:before {
    color: #000000 !important;
}
