﻿.app-topbar {
    background: #52a6b7;
    padding: 10px 16px;
    box-shadow: 0 .35rem 1rem rgba(0,0,0,.10);
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom:12px !important;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.topbar-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.topbar-logo {
    height: 50px;
    width: auto;
    display: block;
}

.topbar-center {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.topbar-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-toggle-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: rgba(255,255,255,.18);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    flex-shrink: 0;
}

    .menu-toggle-btn:hover {
        background: rgba(255,255,255,.26);
    }

    .menu-toggle-btn i {
        font-size: 1.1rem;
    }

.topbar-user {
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.loginbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.loginbar-link {
    color: #fff;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 10px;
    transition: background .2s ease;
    white-space: nowrap;
}

    .loginbar-link:hover {
        color: #fff;
        background: rgba(255,255,255,.14);
    }

/* Tablet ve mobil */
@media (max-width: 991.98px) {
    .app-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .topbar-left {
        justify-content: space-between;
        gap: 12px;
    }

    .topbar-center {
        width: 100%;
    }

    .topbar-title {
        font-size: 1rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .topbar-user {
        margin-left: 0;
        justify-content: flex-end;
    }

    .topbar-logo {
        height: 38px;
    }
}

@media (max-width: 575.98px) {
    .app-topbar {
        padding: 10px 12px;
    }

    .topbar-left {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-center {
        gap: 10px;
    }

    .topbar-title {
        font-size: .95rem;
        line-height: 1.3;
    }

    .topbar-logo {
        height: 34px;
    }

    .menu-toggle-btn {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }

    .loginbar {
        gap: 6px;
        flex-wrap: wrap;
    }

    .loginbar-link {
        padding: 5px 8px;
        font-size: .9rem;
    }
}
