.sidebar-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 70px;
    height: 100vh;
    background: rgb(26 26 26);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1040;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-menu:hover {
    width: 220px;
    background: rgba(13, 13, 13, 0.98);
}

.sidebar-header {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease 0.1s;
}

.sidebar-menu:hover .sidebar-logo {
    opacity: 1;
    transform: scale(1);
}

.sidebar-logo img {
    max-width: 130px;
    height: auto;
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 6px 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s ease;
    position: relative;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #ff0066 0%, #ff3366 100%);
    border-radius: 0 3px 3px 0;
    transition: height 0.25s ease;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-item:hover::before {
    height: 60%;
}

.sidebar-item.active {
    background: rgba(255, 0, 102, 0.12);
    color: #fff;
}

.sidebar-item.active::before {
    height: 70%;
}

.sidebar-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    transition: all 0.25s ease;
}

.sidebar-item:hover .sidebar-icon {
    background: rgba(255, 0, 102, 0.15);
    transform: scale(1.05);
}

.sidebar-item.active .sidebar-icon {
    background: rgba(255, 0, 102, 0.2);
    color: #ff3366;
}

.sidebar-text {
    margin-left: 12px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease 0.1s;
}

.sidebar-menu:hover .sidebar-text {
    opacity: 1;
    transform: translateX(0);
}

.sidebar-toggle-btn {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 48px;
    background: rgba(255, 0, 102, 0.9);
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 2px 0 8px rgba(255, 0, 102, 0.2);
    opacity: 0;
}

.sidebar-menu:hover .sidebar-toggle-btn {
    opacity: 0.7;
}

.sidebar-toggle-btn:hover {
    opacity: 1 !important;
    right: -14px;
}

.sidebar-toggle-btn i {
    color: #fff;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.sidebar-menu.collapsed .sidebar-toggle-btn i {
    transform: rotate(180deg);
}

.sidebar-overlay {
    display: none;
}

/* Main content adjustment */
body {
    padding-left: 70px;
    transition: padding-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile responsive */
@media (max-width: 991px) {
    body {
        padding-left: 0;
    }

    .sidebar-menu {
        transform: translateX(-100%);
        width: 240px;
    }

    .sidebar-menu.active {
        transform: translateX(0);
    }

    .sidebar-menu.active .sidebar-logo,
    .sidebar-menu.active .sidebar-text {
        opacity: 1;
        transform: scale(1) translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.75);
        z-index: 1039;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    .sidebar-toggle-btn {
        display: none;
    }

    /* Mobile menu button in header */
    .mobile-sidebar-trigger {
        position: fixed;
        left: 15px;
        bottom: 10px;
        width: 52px;
        height: 52px;
        background: linear-gradient(135deg, #ff0066 0%, #ff3366 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1050;
        box-shadow: 0 4px 16px rgba(255, 0, 102, 0.35);
        transition: all 0.3s ease;
    }

    .mobile-sidebar-trigger:hover {
        transform: scale(1.08);
        box-shadow: 0 6px 20px rgba(255, 0, 102, 0.5);
    }

    .mobile-sidebar-trigger i {
        color: #fff;
        font-size: 19px;
    }
}

@media (max-width: 575px) {
    .sidebar-menu {
        width: 200px;
    }

    .mobile-sidebar-trigger {
        width: 48px;
        height: 48px;
        bottom: 10px;
        left: 12px;
    }

    .mobile-sidebar-trigger i {
        font-size: 17px;
    }
}

/* Smooth animation for icons */
.sidebar-item.active .sidebar-icon {
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}