﻿/* ===========================================
   BA.UI - Navbar
   =========================================== */

.ba-navbar {
    display: flex;
    align-items: center;
    padding-bottom:1rem;
    margin-bottom:2rem !important;
}

.ba-navbar__collapse {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
}

.ba-navbar__right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 12px;
    margin-left: auto;
    white-space: nowrap;
}

.ba-navbar__right > * {
    flex-shrink: 0;
}

.ba-navbar__menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 2px solid #fff;
    border-radius: var(--ba-control-radius);
    background: #ffffff80;
}

.ba-navbar__item {
    display: flex;
    align-items: center;
    position: relative;
}

/* -------------------------------------------
   Navbar Toggle
------------------------------------------- */

.ba-dropdown__toggle--navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--ba-control-height);
    padding: 0 15px;
    border-radius: var(--ba-control-radius);
    border: 0;
    background: transparent;
    color: #3C4043;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

    .ba-dropdown__toggle--navbar:hover {
        background: #F5F6F8;
    }

/* Açık olan */

.ba-dropdown.is-open > .ba-dropdown__toggle--navbar {
    background: #F5F6F8;
    color: var(--ba-primary);
}

/* -------------------------------------------
   Dropdown Menu
------------------------------------------- */

.ba-dropdown--navbar > .ba-dropdown__menu {
    margin-top: 8px;
    min-width: 260px;
    border-radius: 18px;
}

/* -------------------------------------------
   Navbar Item
------------------------------------------- */

.ba-dropdown--navbar .ba-dropdown__item {
    min-height: 44px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
}

    .ba-dropdown--navbar .ba-dropdown__item:hover {
        background: #F5F6F8;
    }

/* -------------------------------------------
   Divider
------------------------------------------- */

.ba-navbar__divider {
    width: 1px;
    height: 22px;
    margin: 0 8px;
    background: #ECECEC;
}

/* -------------------------------------------
   Mobile
------------------------------------------- */

@media (max-width:992px) {

    .ba-navbar {
        width: 100%;
    }

    .ba-navbar__menu {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .ba-navbar__item {
        width: 100%;
    }

    .ba-dropdown__toggle--navbar {
        justify-content: flex-start;
        width: 100%;
        border-radius: 12px;
    }

    .ba-dropdown--navbar > .ba-dropdown__menu {
        position: static;
        box-shadow: none;
        margin-top: 0;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .ba-dropdown.is-open > .ba-dropdown__menu {
        display: block;
    }
}


.ba-language-selector {
    display: inline-flex;
    align-items: center;
    height: var(--ba-control-height);
    border-radius: var(--ba-control-radius);
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
}

.ba-language-selector-divider {
    width: 1px;
    height: 22px;
    background: #ddd;
}

.ba-currency_symbol__rounded {
    border: 1px solid;
    /* border-radius: 28px; */
    /* padding: .5rem .1rem; */
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    /* margin: 0 auto; */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}


.ba-user-menu {
    display: flex;
    align-items: center;
}

.ba-user-menu__toggle {
    min-width: 250px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffffff80;
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.55);
    gap: 12px;
}

    .ba-user-menu__toggle:hover {
        background: #eef0f3;
    }

.ba-user-menu__avatar-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-user-menu__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.ba-user-menu__status-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #fff;
    z-index: 2;
}

.ba-user-menu__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    flex: 1;
    min-width: 0;
}

.ba-user-menu__name {
    font-size: 15px;
    font-weight: 700;
    color: #2f3640;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.ba-user-menu__id {
    font-size: 12px;
    color: #4b5563;
}

.ba-user-menu__chevron {
    color: #304ffe;
    font-size: 18px;
    transition: transform .18s ease;
}

.ba-user-menu.is-open .ba-user-menu__chevron {
    transform: rotate(180deg);
}

.ba-user-menu__menu {
    min-width: 255px;
    padding: 10px;
    border-radius: 20px;
    top: calc(100% + 10px);
}

.ba-user-menu__item {
    min-height: 48px;
    font-size: 15px;
    color: #374151;
}

.ba-user-menu__item--soft {
    background: #f3f4f6;
}

    .ba-user-menu__item--soft:hover {
        background: #eceef2;
    }

.ba-user-menu__icon {
    font-size: 16px;
    color: #6b7280;
    width: 18px;
    text-align: center;
}

.ba-user-menu__icon--danger {
    color: #ff5a36;
}

.ba-user-menu__form {
    margin: 0;
}

.ba-user-menu__logout {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

/* ==========================================================
   Message Badge Styles
   ========================================================== */

/* Unread message count badge */
#okunmayanMesajSpanId {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #FFFFFF;
    background: #EF4444;
    border-radius: 9px;
    line-height: 1;
}

#okunmayanMesajSpanId:empty {
    display: none;
}
}