#sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    width: 280px;
    height: calc(100vh - 70px);
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    border-right: 1px solid rgba(64, 150, 255, 0.2);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 100;
    backdrop-filter: blur(10px);
}

#sidebar::-webkit-scrollbar {
    width: 6px;
}

#sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4096ff 0%, #0066cc 100%);
    border-radius: 3px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0066cc 0%, #004499 100%);
}

.sidebar-closed {
    transform: translateX(-100%);
}

.sidebar-open {
    transform: translateX(0);
}

#sidebar-toggle {
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 200;
    background: linear-gradient(135deg, #4096ff 0%, #0066cc 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(64, 150, 255, 0.3);
}

#sidebar-toggle:hover {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(64, 150, 255, 0.4);
}

#sidebar-toggle.hidden {
    opacity: 0;
    pointer-events: none;
}

#sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sidebar-close:hover {
    background: #ff4757;
    transform: rotate(90deg);
}

.Sidebartoptext {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    padding: 30px 20px 20px;
    margin: 0;
    border-bottom: 1px solid rgba(64, 150, 255, 0.2);
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #4096ff 0%, #0066cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#sidebar-content {
    padding: 20px;
}

.main-category {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.main-category:hover {
    background: rgba(64, 150, 255, 0.05);
    border-color: rgba(64, 150, 255, 0.2);
}

.main-category h3 {
    color: white;
    margin: 0;
    padding: 18px 20px;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    border-left: 4px solid transparent;
}

.main-category h3:hover {
    background: linear-gradient(135deg, rgba(64, 150, 255, 0.1) 0%, rgba(64, 150, 255, 0.05) 100%);
    border-left-color: #4096ff;
    transform: translateX(5px);
}

.main-category h3 .arrow {
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.3s ease;
    color: #4096ff;
    font-weight: bold;
}

.main-category h3:hover .arrow {
    transform: scale(1.2);
}

.sub-categories {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.category {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category:last-child {
    border-bottom: none;
}

.category h4 {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    border-left: 3px solid transparent;
}

.category h4:hover {
    color: white;
    background: rgba(64, 150, 255, 0.1);
    border-left-color: #4096ff;
    transform: translateX(8px);
    padding-left: 30px;
}

@media (max-width: 768px) {
    #sidebar {
        width: 100%;
        height: calc(100vh - 50px);
        top: 50px;
        z-index: 1001;
    }
    
    #sidebar-toggle {
        top: 110px;
        left: 15px;
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .Sidebartoptext {
        font-size: 20px;
        padding: 20px;
    }
    
    #sidebar-content {
        padding: 15px;
    }
}