
/* Tool Switcher */
.tool-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.version-selector-wrapper {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}

.version-selector {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.version-selector:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.version-selector option {
    background: #1a1a2e;
    color: white;
}

.tool-button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.tool-button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.tool-button.is-active {
    background: white;
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness for tool switcher */
@media (max-width: 600px) {
    .tool-switcher {
        flex-direction: column;
        width: 100%;
        border-radius: 20px;
        gap: 2px;
    }
    
    .version-selector-wrapper {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 8px;
        margin-top: 4px;
        justify-content: center;
        width: 100%;
    }
    
    .version-selector {
        width: 100%;
        text-align: center;
    }
    
    .tool-button {
        width: 100%;
        border-radius: 15px;
        text-align: center;
    }
}

/* Version Dropdown in Tool Switcher */
.version-dropdown {
    position: relative;
    display: inline-block;
}

.version-btn {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.version-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.dropdown-arrow {
    font-size: 0.7em;
    opacity: 0.7;
    transition: transform 0.2s;
}

.version-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.version-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    min-width: 200px;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.version-dropdown.open .version-menu {
    opacity: 1;
    visibility: visible;
}

.version-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: background 0.2s;
    cursor: pointer;
}

.version-option:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.version-option.active {
    background: white;
    color: #1a1a2e;
}

.version-option.active .version-code {
    background: rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

.version-option.active .version-name {
    color: #1a1a2e;
    opacity: 1;
}

.version-code {
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    min-width: 35px;
    text-align: center;
    background: rgba(0,0,0,0.2);
    padding: 2px 4px;
    border-radius: 4px;
}

.version-name {
    font-size: 0.9em;
    opacity: 0.9;
}

