/* ========================================
   PREMIUM SIDEBAR - FIVERR THEME
   ======================================== */

/* Sidebar Container */
.profile-settings-menu {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    /* More diffuse, premium shadow */
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.profile-settings-menu-inner {
    padding: 0;
}

/* Menu List */
.profile-settings-menu-list {
    list-style: none;
    padding: 8px;
    margin: 0;
}

/* Menu Item */
.profile-settings-menu-item {
    margin-bottom: 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.profile-settings-menu-item:last-child {
    margin-bottom: 0;
}

/* Menu Link */
.profile-settings-menu-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #62646A;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Icon Styling */
.profile-settings-menu-item-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.profile-settings-menu-item-link svg path {
    transition: fill 0.3s ease;
}

/* Hover State */
.profile-settings-menu-item:hover .profile-settings-menu-item-link {
    background: #F7F8FA;
    color: #222325;
    transform: translateX(4px);
}

.profile-settings-menu-item:hover .profile-settings-menu-item-link svg path {
    fill: #1DBF73;
}

/* Active State - Premium Solid */
.profile-settings-menu-item.active .profile-settings-menu-item-link {
    background: #1DBF73;
    /* Solid Brand Green */
    color: #FFFFFF !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(29, 191, 115, 0.35);
    transform: translateX(4px);
}

.profile-settings-menu-item.active .profile-settings-menu-item-link::before {
    display: none;
    /* Remove the left border strip */
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #1DBF73;
    border-radius: 0 4px 4px 0;
}

.profile-settings-menu-item.active .profile-settings-menu-item-link svg path {
    fill: #FFFFFF !important;
    stroke: #FFFFFF !important;
    /* Ensure strokes are also white if used */
}

/* Specific fix for stroked icons that might not use fill */
.profile-settings-menu-item.active .profile-settings-menu-item-link svg {
    filter: brightness(0) invert(1);
}

/* Disabled Link */
.profile-settings-menu-item.disabled-link .profile-settings-menu-item-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Badge/Counter */
.menu-badge {
    margin-left: auto;
    background: #FF6B6B;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

.menu-badge.success {
    background: #1DBF73;
}

.menu-badge.warning {
    background: #FFB84D;
}

/* Section Divider */
.sidebar-section-divider {
    height: 1px;
    background: #E4E5E7;
    margin: 12px 16px;
}

/* Section Title */
.sidebar-section-title {
    padding: 16px 16px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #95979D;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .profile-settings-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 50000 !important;
        transition: left 0.3s ease;
        border-radius: 0;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    }

    .profile-settings-menu.active {
        left: 0;
    }

    .profile-close {
        display: flex;
        justify-content: flex-end;
        padding: 16px;
        border-bottom: 1px solid #E4E5E7;
    }

    .profile-close i {
        font-size: 24px;
        color: #62646A;
        cursor: pointer;
        transition: color 0.3s ease;
    }

    .profile-close i:hover {
        color: #1DBF73;
    }

    .profile-bars {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #FFFFFF;
        border: 1px solid #E4E5E7;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .profile-bars:hover {
        background: #1DBF73;
        border-color: #1DBF73;
    }

    .profile-bars:hover i {
        color: #FFFFFF;
    }

    .profile-bars i {
        font-size: 20px;
        color: #62646A;
        transition: color 0.3s ease;
    }
}

/* Sticky Sidebar */
.sticky_top_lg {
    position: sticky;
    top: 100px;
}

/* Submenu (if needed) */
.profile-settings-submenu {
    list-style: none;
    padding: 4px 0 4px 32px;
    margin: 0;
}

.profile-settings-submenu-item {
    margin-bottom: 2px;
}

.profile-settings-submenu-item-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #62646A;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.profile-settings-submenu-item-link:hover {
    background: #F7F8FA;
    color: #1DBF73;
}

.profile-settings-submenu-item.active .profile-settings-submenu-item-link {
    color: #1DBF73;
    font-weight: 600;
}

/* Responsive Overlay */
.responsive-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.responsive-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animation */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.profile-settings-menu.active {
    animation: slideInLeft 0.3s ease;
}

/* Scrollbar Styling */
.profile-settings-menu-inner::-webkit-scrollbar {
    width: 6px;
}

.profile-settings-menu-inner::-webkit-scrollbar-track {
    background: #F7F8FA;
}

.profile-settings-menu-inner::-webkit-scrollbar-thumb {
    background: #E4E5E7;
    border-radius: 3px;
}

.profile-settings-menu-inner::-webkit-scrollbar-thumb:hover {
    background: #1DBF73;
}


/* 
   ----------------------------------------
   PREMIUM MOBILE & DESKTOP ENHANCEMENTS 
   ----------------------------------------
*/

.disabled-link a {
    color: #ccc;
    pointer-events: none;
    cursor: default;
}

/* 🎨 Fiverr-Style Premium Mobile Sidebar */
@media (max-width: 991px) {

    /* Sidebar - Slide from Left with Premium Shadow */
    .profile-settings-area .col-xl-3.col-lg-4 {
        position: fixed !important;
        top: 0 !important;
        left: -320px !important;
        width: 300px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        z-index: 50000 !important;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%) !important;
        overflow-y: auto !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12) !important;
    }

    .profile-settings-area .col-xl-3.col-lg-4.active {
        left: 0 !important;
    }

    /* Floating Action Button - Bottom Right (Fiverr Style) */
    .profile-bars {
        position: fixed !important;
        bottom: 20px !important;
        right: 20px !important;
        z-index: 10002 !important;
        width: 56px !important;
        height: 56px !important;
        background: linear-gradient(135deg, #1DBF73 0%, #19A463 100%) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 8px 24px rgba(29, 191, 115, 0.4), 0 4px 8px rgba(0, 0, 0, 0.1) !important;
        cursor: pointer !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border: none !important;
    }

    .profile-bars:hover {
        transform: scale(1.1) rotate(90deg) !important;
        box-shadow: 0 12px 32px rgba(29, 191, 115, 0.5), 0 6px 12px rgba(0, 0, 0, 0.15) !important;
    }

    .profile-bars:active {
        transform: scale(0.95) !important;
    }

    .profile-bars i {
        color: #ffffff !important;
        font-size: 24px !important;
    }

    /* Sidebar Container with Premium Header */
    .profile-settings-menu {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        background: transparent !important;
    }

    /* Premium Green Header - Only show when sidebar is active */
    .profile-settings-area .col-xl-3.col-lg-4.active .profile-settings-menu::before {
        content: '';
        display: block;
        height: 80px;
        background: linear-gradient(135deg, #1DBF73 0%, #19A463 100%);
        margin-bottom: 20px;
    }

    .profile-settings-menu-inner {
        padding: 0 20px 20px 20px !important;
        position: relative !important;
        z-index: 1 !important;
    }

    /* Menu Items - Fiverr Style */
    .profile-settings-menu ul,
    .profile-settings-menu-list {
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .profile-settings-menu ul li,
    .profile-settings-menu-item {
        margin-bottom: 4px !important;
        display: block !important;
    }

    .profile-settings-menu ul li a,
    .profile-settings-menu-item-link {
        padding: 14px 16px !important;
        border-radius: 10px !important;
        transition: all 0.2s ease !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        color: #475467 !important;
        text-decoration: none !important;
        font-size: 15px !important;
        font-weight: 500 !important;
    }

    .profile-settings-menu ul li a:hover,
    .profile-settings-menu-item-link:hover {
        background: rgba(29, 191, 115, 0.08) !important;
        transform: translateX(4px) !important;
    }

    .profile-settings-menu ul li a.active,
    .profile-settings-menu-item.active a,
    .profile-settings-menu-item-link.active {
        background: linear-gradient(135deg, rgba(29, 191, 115, 0.12) 0%, rgba(25, 164, 99, 0.12) 100%) !important;
        border-left: 4px solid #1DBF73 !important;
        padding-left: 12px !important;
        color: #1DBF73 !important;
    }

    .profile-settings-menu ul li a svg,
    .profile-settings-menu-item-link svg {
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0 !important;
    }

    /* Close Button - Inside Sidebar Header - Only show when sidebar is active */
    .profile-settings-area .col-xl-3.col-lg-4 .profile-close {
        display: none !important;
    }

    .profile-settings-area .col-xl-3.col-lg-4.active .profile-close {
        position: absolute !important;
        top: 22px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        z-index: 10001 !important;
    }

    .profile-settings-area .col-xl-3.col-lg-4.active .profile-close:hover {
        background: rgba(255, 255, 255, 0.3) !important;
        transform: rotate(90deg) scale(1.1) !important;
    }

    .profile-settings-area .col-xl-3.col-lg-4.active .profile-close i {
        color: #ffffff !important;
        font-size: 20px !important;
    }

    /* Overlay - Darker with Blur */
    .responsive-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(2px);
        z-index: 40000 !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .responsive-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Custom Scrollbar */
    .profile-settings-area .col-xl-3.col-lg-4::-webkit-scrollbar {
        width: 6px;
    }

    .profile-settings-area .col-xl-3.col-lg-4::-webkit-scrollbar-track {
        background: transparent;
    }

    .profile-settings-area .col-xl-3.col-lg-4::-webkit-scrollbar-thumb {
        background: rgba(29, 191, 115, 0.3);
        border-radius: 10px;
    }

    .profile-settings-area .col-xl-3.col-lg-4::-webkit-scrollbar-thumb:hover {
        background: rgba(29, 191, 115, 0.5);
    }
}

/* 🖥️ Desktop Sidebar Premium Card */
@media (min-width: 992px) {
    .custom-sidebar-card {
        background: #FFFFFF;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        /* Soft Shadow */
        border: 1px solid rgba(0, 0, 0, 0.03);
        position: sticky;
        /*top: 100px;
        /* Sticky positioning */
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        /* Custom Scrollbar */
        scrollbar-width: thin;
        scrollbar-color: rgba(29, 191, 115, 0.3) transparent;
    }

    .custom-sidebar-card::-webkit-scrollbar {
        width: 6px;
    }

    .custom-sidebar-card::-webkit-scrollbar-thumb {
        background-color: rgba(29, 191, 115, 0.3);
        border-radius: 20px;
    }

    /* Adjust margins for items inside card */
    .profile-settings-menu-item {
        margin-bottom: 8px !important;
    }
}