/* Language Toggle Button Styles */
.language-toggle-container {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
}

.language-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 60px;
    text-align: center;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.language-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.language-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-toggle {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 50px;
    }
    
    .language-toggle-container {
        justify-content: center;
        margin-top: 10px;
    }
}

/* Special styles for homepage */
.homepage-header .language-toggle {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--primary-color);
}

.homepage-header .language-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Ensure proper positioning in header */
.header-actions .language-toggle-container {
    margin-left: auto;
}

/* Make sure header-actions is always properly aligned */
.header-actions {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center;
}

/* Fix for dashboard pages */
.container .header-actions {
    display: flex !important;
    justify-content: flex-end !important;
}