.module-switcher-menu {
    max-height: 80vh;
    overflow-y: auto;
}

.module-switcher-menu::-webkit-scrollbar {
    width: 8px;
}

.module-switcher-menu::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.2);
    border-radius: 10px;
}

.module-switcher-menu::-webkit-scrollbar-track {
    background: transparent;
}

.module-switcher-menu .dropdown-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.module-switcher-menu .dropdown-item:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateX(3px);
}

.module-switcher-menu .dropdown-header {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Module Group Headers with Expand/Collapse */
.module-group-header {
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}

.module-group-header:hover {
    background-color: #3a4556 !important;
}

.module-group-header .toggle-icon {
    transition: transform 0.2s ease;
    opacity: 0.7;
    font-size: 0.75rem;
}

.module-group-header[aria-expanded="false"] .toggle-icon {
    transform: rotate(180deg);
}

/* Animation for collapsing sections */
.collapse.show {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon circles for module menu items */
.icon-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.icon-circle i {
    font-size: 11px;
    color: white;
}

/* Module category colors */
.bg-purple {
    background-color: #8b5cf6;
}

.bg-pink {
    background-color: #ec4899;
}

.bg-yellow {
    background-color: #eab308;
}

.bg-cyan {
    background-color: #06b6d4;
}

.bg-teal {
    background-color: #14b8a6;
}

.bg-amber {
    background-color: #f59e0b;
}

.bg-orange {
    background-color: #f97316;
}

.bg-indigo {
    background-color: #6366f1;
}

.bg-green {
    background-color: #22c55e;
}

.bg-red {
    background-color: #ef4444;
}

/* Subscription tier styles */
.premium-feature {
    position: relative;
}

.premium-feature.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.premium-feature.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    pointer-events: none;
}

.premium-feature.disabled .badge {
    opacity: 1;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.premium-feature.disabled:hover .badge {
    transform: scale(1.1);
}

.premium-feature.disabled:hover {
    background-color: rgba(255,255,255,0.05) !important;
    transform: none !important;
}

/* Subscription tier visual enhancements */
.premium-feature[data-subscription-tier="standard"]::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, #3b82f6, #1e40af);
    border-radius: 0 5px 5px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.premium-feature[data-subscription-tier="premium"]::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, #8b5cf6, #6d28d9);
    border-radius: 0 5px 5px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.premium-feature[data-subscription-tier="standard"]:hover::before,
.premium-feature[data-subscription-tier="premium"]:hover::before {
    opacity: 1;
}