/* Fixed Custom Widget Styles */
.fixed-custom-widget {
    position: fixed;
    left: 20px;
    top: 100px;
    z-index: 999;
    max-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .fixed-custom-widget {
        left: 0;
        top: 33%;
        transform: translateX(-100%);
    }
    
    .fixed-custom-widget.is-open {
        transform: translateX(0);
    }
    
    .fixed-custom-toggle {
        display: flex !important;
    }
}

.fixed-custom-toggle {
    display: none;
    position: absolute;
    right: -40px;
    top: 0;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.fixed-custom-inner {
    width: 100%;
}

.fixed-custom-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eaeaea;
    cursor: pointer;
}

.fixed-custom-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.fixed-custom-collapse {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed-custom-collapse .chevron-down {
    display: none;
}

.fixed-custom-widget.is-collapsed .fixed-custom-collapse .chevron-up {
    display: none;
}

.fixed-custom-widget.is-collapsed .fixed-custom-collapse .chevron-down {
    display: block;
}

.fixed-custom-nav {
    max-height: 70vh;
    overflow-y: auto;
    padding: 12px 0;
}

.fixed-custom-widget.is-collapsed .fixed-custom-nav {
    display: none;
}

.fixed-custom-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fixed-custom-item {
    padding: 4px 16px 4px calc(16px + (var(--level, 0) * 16px));
}

.fixed-custom-link {
    display: block;
    color: #4b5563;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.fixed-custom-link:hover {
    background-color: #f3f4f6;
    color: #3b82f6;
}

.fixed-custom-link.is-active {
    color: #3b82f6;
    font-weight: 500;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .fixed-custom-widget {
        background-color: #1f2937;
        border-color: #374151;
    }
    
    .fixed-custom-header {
        border-color: #374151;
    }
    
    .fixed-custom-link {
        color: #e5e7eb;
    }
    
    .fixed-custom-link:hover {
        background-color: #374151;
        color: #60a5fa;
    }
    
    .fixed-custom-link.is-active {
        color: #60a5fa;
    }
}