.language-switcher {
    display: inline-block;
    margin-right: 15px;
}

.language-switcher a {
    color: #bfc200;
    text-decoration: none;
}

.language-switcher a:hover {
    color: #e4e4e4d0;
    text-decoration: underline;
}

/* Read the Docs flyout menu styles */
.rst-versions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 300px;
    color: #e4e4e4d0;
    background: #072732;
    font-family: "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif;
    z-index: 400;
    border-top: solid 10px #bfc200;
    display: block !important;
}

.rst-versions a {
    color: #bfc200;
    text-decoration: none;
}

.rst-versions .rst-current-version {
    padding: 12px;
    background-color: #082d40;
    display: block;
    text-align: right;
    font-size: 90%;
    cursor: pointer;
    color: #bfc200;
    transition: background-color 0.2s ease;
}

.rst-versions .rst-current-version:hover {
    background-color: #326775;
}

.rst-versions .rst-other-versions {
    font-size: 90%;
    padding: 12px;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.rst-versions.shift-up .rst-other-versions {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.rst-versions .rst-other-versions hr {
    display: block;
    height: 1px;
    border: 0;
    margin: 20px 0;
    padding: 0;
    border-top: 1px solid #33626f;
}

.rst-versions .rst-other-versions dl {
    margin: 0;
}

.rst-versions .rst-other-versions dt {
    font-weight: bold;
    color: #bfc200;
    margin-bottom: 5px;
}

.rst-versions .rst-other-versions dd {
    display: inline-block;
    margin: 0;
    padding: 0 5px;
}

.rst-versions .rst-other-versions dd a {
    display: inline-block;
    padding: 6px;
    color: #e4e4e4c2;
}

.rst-versions .rst-other-versions dd a:hover {
    color: #072732;
    background: #bfc200;
    border-radius: 3px;
}

.rst-versions.shift-up {
    box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.2);
}

/* Add styling for sidebar language switcher */
.sidebar-language-switcher {
    margin-top: 10px;
    padding: 10px 0;
}

.sidebar-language-switcher-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #bfc200;
}

.sidebar-language-options {
    font-size: 90%;
}

.current-language {
    font-weight: bold;
    color: #bfc200;
}

.lang-link {
    color: #e4e4e4c2;
    text-decoration: none;
}

.lang-link:hover {
    color: #bfc200;
    text-decoration: underline;
}

/* Add animation for dropdown indicator */
.rst-versions .fa-caret-down {
    transition: transform 0.3s ease;
}

.rst-versions.shift-up .fa-caret-down {
    transform: rotate(180deg);
}

/* Toggle button styles */
.rst-versions .rst-current-version .fa-book {
    float: left;
}

.rst-versions .rst-current-version .fa-caret-down {
    float: right;
}

.rst-versions .rtd-current-item {
    font-weight: bold;
    color: #bfc200;
}

/* Added styles for current language display */
.current-language-display {
    display: inline-block;
    font-weight: bold;
}

/* Fix for RTD versions background on mobile */
@media screen and (max-width: 768px) {
    .rst-versions {
        width: 85%;
        max-width: 300px;
    }
}

/* Make sure the flyout gets proper z-index when open */
body.shift-up-active .rst-versions {
    z-index: 20;
}

/* Ensure proper highlighting of current language */
.rst-versions .rst-other-versions dd.rtd-current-item {
    background-color: rgba(191, 194, 0, 0.1);
    border-radius: 3px;
    padding: 6px;
}

/* Explicitly hide any top language selector that might be coming from the theme */
.language-switcher, 
#lang-selector, 
.sidebar-language-switcher, 
div[class*="language-selector"] {
    display: none !important;
}

/* Explicitly hide any language bar at the top */
.wy-nav-top-language,
div[id*="language-switcher"],
div[class*="language-bar"] {
    display: none !important;
} 