/* Twitter-like Sidebar Styles */
.sidebar {
    width: 280px;
    height: calc(100vh - 4rem);
    position: sticky;
    top: 4rem;
    overflow-y: auto;
    scrollbar-width: thin;
    transition: all 0.3s ease;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    color: #d1d5db;
}

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

.sidebar-item.active {
    font-weight: 600;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.sidebar-item i {
    margin-right: 1rem;
    width: 1.5rem;
    text-align: center;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-content.open {
    max-height: 1000px;
}

/* Mobile Sidebar Toggle */
.mobile-sidebar-toggle {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 50;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #ef4444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Responsive Styles */
@media (max-width: 1023px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 4rem;
        width: 280px;
        z-index: 40;
        transform: translateX(-100%);
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 30;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (min-width: 1024px) {
    .mobile-sidebar-toggle {
        display: none;
    }
}

/* Right Sidebar Styles */
.right-sidebar {
    width: 320px;
    height: calc(100vh - 4rem);
    position: sticky;
    top: 4rem;
    overflow-y: auto;
    scrollbar-width: thin;
}

@media (max-width: 1279px) {
    .right-sidebar {
        display: none;
    }
}