.sidebar.collapsed .category-header {
    display: none;
}

.category-collapsed-icon {
    display: none;
    width: 100%;
    padding: 12px 0;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border-radius: 12px;
}

.sidebar.collapsed .category-collapsed-icon {
    display: flex;
    z-index: 10;
}

.category-collapsed-icon:hover {
    background: white;
    transform: scale(1.1);
}

/* Flyout Panel */
.category-flyout {
    position: fixed;
    left: 90px;
    top: auto;
    width: 280px;
    max-height: 80vh;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    pointer-events: none;
}

.category-flyout.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.flyout-menu {
    position: absolute;
    bottom: 80px;
    left: 20px;
    width: 220px;
    padding: 12px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid var(--panel-border);
    flex-direction: column;
    gap: 2px;
}

.flyout-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.section-label {
    font-size: 9px;
    font-weight: 800;
    color: var(--sub-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 14px 4px;
    opacity: 0.6;
}

.flyout-item {
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.flyout-item i {
    width: 16px;
    text-align: center;
    color: var(--sub-text);
}

.flyout-item:hover {
    background: var(--accent-color);
    color: white;
}

.flyout-item:hover i {
    color: white;
}

.flyout-item.primary {
    color: var(--accent-color);
}

.flyout-item.primary:hover {
    background: var(--accent-color);
    color: white;
}

.divider {
    height: 1px;
    background: var(--panel-border);
    margin: 8px 4px;
}
.flyout-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.flyout-header strong {
    font-size: 14px;
    display: block;
}

.flyout-header small {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
}

.flyout-grid {
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-right: 5px;
}
