footer.bd-footer, div.footer {
    display: none !important;
}
/* Custom styling for clean documentation */
.bd-navbar {
    background-color: #f8f9fa;
}

/* Improve content readability */
.bd-article-container {
    max-width: 900px;
}
.bd-header .navbar-brand img {
    height: 40px;  /* Adjust as needed */
}
/* Style for component overview sections */
.toctree-wrapper .caption {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 0.5em;
}

/* Professional Version Selector */
.version-selector {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.version-selector__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-width: 140px;
    user-select: none;
}

.version-selector__trigger:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.version-selector__trigger--open {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.version-selector__trigger--loading {
    opacity: 0.7;
    pointer-events: none;
}

.version-selector__current {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.version-selector__label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.version-selector__value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1;
}

.version-selector__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.version-selector__dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
    overflow: hidden;
}

.version-selector__dropdown--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.version-selector__options {
    padding: 8px 0;
}

.version-selector__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.version-selector__option:hover {
    background: rgba(59, 130, 246, 0.05);
}

.version-selector__option--current {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}

.version-selector__option--current .version-selector__option-text {
    color: #3b82f6;
    font-weight: 600;
}

.version-selector__option-text {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    line-height: 1;
}

.version-selector__check {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    width: 16px;
    height: 16px;
}

/* Dark mode support */
[data-theme="dark"] .version-selector__trigger {
    background: rgba(31, 41, 55, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f9fafb;
}

[data-theme="dark"] .version-selector__trigger:hover {
    background: rgba(31, 41, 55, 0.98);
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .version-selector__trigger--open {
    border-color: rgba(59, 130, 246, 0.4);
}

[data-theme="dark"] .version-selector__label {
    color: #9ca3af;
}

[data-theme="dark"] .version-selector__value {
    color: #f9fafb;
}

[data-theme="dark"] .version-selector__arrow {
    color: #9ca3af;
}

[data-theme="dark"] .version-selector__dropdown {
    background: rgba(31, 41, 55, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .version-selector__option:hover {
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .version-selector__option--current {
    background: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .version-selector__option-text {
    color: #d1d5db;
}

[data-theme="dark"] .version-selector__option--current .version-selector__option-text {
    color: #60a5fa;
}

/* Responsive design */
@media (max-width: 768px) {
    .version-selector {
        bottom: 16px;
        right: 16px;
    }
    
    .version-selector__trigger {
        padding: 10px 14px;
        min-width: 120px;
    }
    
    .version-selector__dropdown {
        min-width: 120px;
    }
}

/* Animation for loading state */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.version-selector__trigger--loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Smooth entrance animation for the version selector */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.version-selector {
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover effects */
.version-selector__option {
    position: relative;
    overflow: hidden;
}

.version-selector__option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.3s ease;
}

.version-selector__option:hover::before {
    left: 100%;
}

/* Focus states for accessibility */
.version-selector__trigger:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.version-selector__option:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: -2px;
}