.language-selector-wrapper {
    padding: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    background: #fff;
}

.language-selector {
    width: 100%;
    box-sizing: border-box;
}

.language-select-container {
    display: flex;
    align-items: stretch;
    width: 100%;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #ccc;
    overflow: hidden;
    height: 32px;
    box-sizing: border-box;
}

.language-select {
    flex: 1;
    padding: 0 25px 0 10px;
    border: none;
    background-color: transparent;
    font-size: 14px;
    height: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px auto;
    cursor: pointer;
    color: #333;
}

.language-select:hover {
    background-color: #f5f5f5;
}

.language-select:focus {
    outline: none;
    background-color: #f0f7ff;
}

.language-apply {
    width: 32px;
    min-width: 32px;
    height: 100%;
    padding: 0;
    margin: 0;
    background-color: #f8f8f8;
    color: #666;
    border: none;
    border-left: 1px solid #ddd;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.language-apply:hover {
    color: #0066cc;
    background-color: #f0f0f0;
}

.language-apply:active {
    background-color: #e0e0e0;
    color: #004080;
}

.language-apply:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(0, 102, 204, 0.3);
}

/* Add a subtle animation for the reload icon */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.language-applying .language-apply {
    animation: spin 1s linear infinite;
    pointer-events: none;
}

/* Make the language selector more compact on small screens */
@media (max-width: 480px) {
    .language-select {
        font-size: 13px;
        padding-right: 20px;
    }
    
    .language-apply {
        width: 28px;
        min-width: 28px;
        font-size: 14px;
    }
}