/* Language Dropdown and Icon Fixes - NEW FILE */

/* Language Dropdown Styles */
.language-dropdown {
    position: relative;
    display: inline-block;
    margin: 0;
}

.language-switch-btn {
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    font-size: inherit;
}

.language-switch-btn:hover {
    opacity: 0.8;
}

.language-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    min-width: 160px;
    z-index: 1000;
    padding: 0;
    overflow: hidden;
    margin-top: 5px;
    display: none;
}

.language-menu.show {
    display: block;
}

.lang-option {
    display: flex !important;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #f8f9fa;
}

.lang-option.active {
    background: #f0f0f0;
    font-weight: bold;
}

.lang-option i {
    margin-right: 10px;
    width: 16px;
    text-align: center;
    color: #27ae60;
    font-size: 13px;
    transition: all 0.2s ease;
}

/* Font Awesome Icon Fixes */
.fas.fa-globe {
    font-size: 1.1rem;
    line-height: 1;
}

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    vertical-align: middle;
    width: 1.2em;
    height: 1.2em;
}

.action-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.action-item:hover {
    opacity: 0.8;
}

.action-text {
    display: inline-block;
    line-height: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-menu {
        right: auto;
        left: -20px;
        min-width: 140px;
    }
}

/* Ensure check marks display properly */
.fas.fa-check {
    position: relative;
    display: inline-block;
    font-size: 0.9rem;
}

/* Fix for opacity transitions on language selection */
.language-check {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}
