/* Language Switcher Dropdown Styles */
.language-switcher-dropdown {
    position: relative;
    display: inline-block;
}

.language-switcher-dropdown select {
    display: none; /* Hide default select */
}

.custom-select {
    position: relative;
    display: inline-block;
    min-width: 120px;
}

.select-selected {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
    user-select: none;
}

.select-selected:hover {
    border-color: var(--primary-green);
    background: var(--neutral-bg);
}

.select-selected.select-arrow-active {
    border-color: var(--primary-green);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
}

.lang-name {
    flex: 1;
}

.select-arrow {
    font-size: 0.8rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.select-selected.select-arrow-active .select-arrow {
    transform: rotate(180deg);
}

.select-items {
    position: absolute;
    background: var(--white);
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    border: 2px solid var(--primary-green);
    border-top: none;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
}

.select-hide {
    display: none;
}

.select-option {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: background-color 0.3s ease;
}

.select-option:hover {
    background: var(--neutral-bg);
}

.select-option:last-child {
    border-radius: 0 0 13px 13px;
}

/* Language Switcher Animation */
.select-items {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RTL Support for Language Switcher */
[dir="rtl"] .select-selected {
    text-align: right;
}

[dir="rtl"] .flag-icon {
    margin-left: 8px;
    margin-right: 0;
}

/* Dark Mode Support */
body.Dark .select-selected {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

body.Dark .select-selected:hover {
    background: #333;
    border-color: var(--primary-green);
}

body.Dark .select-items {
    background: #2a2a2a;
    border-color: var(--primary-green);
}

body.Dark .select-option {
    color: #fff;
}

body.Dark .select-option:hover {
    background: #333;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    
    .custom-select {
        min-width: 100px;
    }
    
    .select-selected {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .flag-icon {
        width: 16px;
        height: 12px;
    }
}