/* Footer Styles */

.app-footer {
    width: 100%;
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
    padding: 24px 32px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #cbd5e1;
    font-size: 14px;
    flex-wrap: nowrap;
}

.footer-content > span:not(.version):not(.language-dropdown) {
    color: #cbd5e1;
    font-weight: 400;
}

.footer-content > span:first-child {
    font-weight: 600;
    color: #e2e8f0;
}

.version {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-dropdown-btn {
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background-color: rgba(139, 92, 246, 0.08);
    color: #cbd5e1;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.language-dropdown-btn:hover {
    border-color: rgba(139, 92, 246, 0.6);
    background-color: rgba(139, 92, 246, 0.12);
}

.language-dropdown-btn.active {
    border-color: #8b5cf6;
    background-color: rgba(139, 92, 246, 0.15);
}

.language-dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.language-dropdown-btn.active .language-dropdown-arrow {
    transform: rotate(180deg);
}

/* Language Dropdown Menu */
.language-dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: #0f172a;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    margin-bottom: 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    min-width: 150px;
}

.language-dropdown-menu.show {
    display: block;
}

.language-option {
    display: block;
    padding: 8px 12px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}

.language-option:hover {
    background-color: rgba(139, 92, 246, 0.1);
    color: #cbd5e1;
}

.language-option.active {
    background-color: rgba(139, 92, 246, 0.15);
    color: #ba80ff;
    font-weight: 500;
}

/* Flag Styling */
.flag-img {
    width: 16px;
    height: 12px;
    margin-right: 7px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
    object-fit: cover;
}

/* Footer Copyright */
.footer-copyright {
    text-align: center;
    color: #64748b;
    font-size: 12px;
    margin-top: 8px;
}

/* Scrollbar Styling for Language Dropdown */
.language-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.language-dropdown-menu::-webkit-scrollbar-track {
    background: #1e293b;
}

.language-dropdown-menu::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

.language-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-wrap: wrap;
        gap: 15px;
        padding: 0 15px;
    }

    .language-dropdown-btn {
        font-size: 12px;
    }
}

    .footer-version-section,
    .footer-language-section {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .app-footer {
        padding: 16px 0;
        margin-top: 20px;
    }

    .footer-content {
        gap: 15px;
        padding: 0 10px;
    }

    .language-dropdown-btn {
        padding: 6px 8px;
        font-size: 12px;
    }
}

