﻿.ba-dropdown {
    position: relative;
    display: flex;
}

.ba-dropdown__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s ease;
}

    .ba-dropdown__toggle:hover {
        background: #f5f5f5;
    }

.ba-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 99999;
}

.ba-dropdown.is-open > .ba-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.ba-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    color: #444;
    text-decoration: none;
    transition: background .15s ease;
}
    .ba-dropdown__item > * {
        flex-shrink: 0;
    }

    .ba-dropdown__item:hover {
        background: #f5f5f5;
    }

    .ba-dropdown__item.active {
        background: #f2f2f2;
    }

        .ba-dropdown__item.active::after {
            content: "\F26A";
            font-family: bootstrap-icons;
            margin-left: auto;
            color: #304FFE;
        }

.ba-dropdown__flag {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ba-dropdown-item.active::after {
    content: "✓";
    margin-left: auto;
    color: #304FFE;
    font-size: 18px;
    font-weight: 700;
}

.ba-dropdown[data-placement="bottom-end"] .ba-dropdown__menu {
    left: auto;
    right: 0;
}

.ba-dropdown[data-placement="top-start"] .ba-dropdown__menu {
    top: auto;
    bottom: calc(100% + 8px);
}

.ba-dropdown[data-placement="top-end"] .ba-dropdown__menu {
    top: auto;
    bottom: calc(100% + 8px);
    left: auto;
    right: 0;
}

.ba-dropdown__text {
    flex: 1;
}

.ba-dropdown__item > .ba-icon:first-child {
    margin-right: 4px;
}

.ba-dropdown__item.disabled {
    color: #9CA3AF;
    font-size: 13px;
    cursor: default;
    pointer-events: none;
    background: transparent;
}

    .ba-dropdown__item.disabled:hover {
        background: transparent;
    }

/* sağdaki ikon */

.ba-dropdown__item > .ba-icon:last-child {
    margin-left: auto;
}

/* active icon */

.ba-dropdown__active-icon {
    color: var(--ba-primary);
    opacity: 0;
    transform: scale(.8);
    transition: opacity .15s ease, transform .15s ease;
}

.ba-dropdown__item.is-active > .ba-dropdown__active-icon {
    opacity: 1;
    transform: scale(1);
}