#sidebar {
    position: fixed;
    left: 0;
    top: 68px;
    width: 260px;
    height: calc(100vh - 68px);
    background: #0d0d0d;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 100;
}

#sidebar::-webkit-scrollbar {
    width: 4px;
}

#sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar::-webkit-scrollbar-thumb {
    background: rgba(64, 150, 255, 0.25);
    border-radius: 2px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(64, 150, 255, 0.45);
}

.sidebar-closed {
    transform: translateX(-100%);
}

.sidebar-open {
    transform: translateX(0);
}

#sidebar-toggle {
    position: fixed;
    top: 80px;
    left: 16px;
    z-index: 200;
    background: rgba(64, 150, 255, 0.1);
    color: #4096ff;
    border: 1px solid rgba(64, 150, 255, 0.35);
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

#sidebar-toggle:hover {
    background: rgba(64, 150, 255, 0.15);
    border-color: #4096ff;
}

#sidebar-toggle.hidden {
    opacity: 0;
    pointer-events: none;
}

#sidebar-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 26px;
    height: 26px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#sidebar-close:hover {
    background: rgba(255, 60, 60, 0.15);
    border-color: rgba(255, 60, 60, 0.4);
    color: #ff5555;
}

.Sidebartoptext {
    color: #4096ff;
    font-size: 11px;
    font-weight: 700;
    text-align: left;
    padding: 20px 20px 16px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#sidebar-content {
    padding: 8px 0;
}

.main-category {
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: none;
}

.main-category:last-child {
    border-bottom: none;
}

.main-category h3 {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    padding: 12px 20px;
    cursor: pointer;
    background: transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    border-left: 2px solid transparent;
    display: flex;
    align-items: center;
}

.main-category h3:hover {
    background: rgba(64, 150, 255, 0.06);
    border-left-color: #4096ff;
    color: #fff;
    transform: none;
}

.main-category h3 .arrow {
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.2s ease;
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    font-weight: 400;
}

.main-category h3:hover .arrow {
    color: #4096ff;
    transform: none;
}

.sub-categories {
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.category {
    border-bottom: none;
}

.category h4 {
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    padding: 9px 20px 9px 32px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.2px;
    border-left: 2px solid transparent;
}

.category h4:hover {
    color: #4096ff;
    background: rgba(64, 150, 255, 0.05);
    border-left-color: rgba(64, 150, 255, 0.4);
    transform: none;
    padding-left: 32px;
}

@media (max-width: 768px) {
    #sidebar {
        width: 100%;
        height: calc(100vh - 68px);
        top: 68px;
        z-index: 1001;
    }
    
    #sidebar-toggle {
        top: 76px;
        left: 12px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .Sidebartoptext {
        font-size: 11px;
        padding: 16px 20px 14px;
    }
    
    #sidebar-content {
        padding: 4px 0;
    }
}