
/* =========================
    APP BAR (PLX Corporate)
========================= */
#appBar {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--appbar-h);
    background: var(--surface);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    z-index: 3000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03); /* Soft elevation */
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

/* Logo: constrain to appbar height, prevent intrinsic size overflow */
.appbar-logo {
    height: 28px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

/* LEFT: co giãn theo màn hình */
.app-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* TITLE: Soft typography */
.app-title {
    flex: 1;
    min-width: 0;
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

/* RIGHT actions */
.app-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Icon buttons in appbar: compact — override base button padding */
#appBar .btn-ghost {
    padding: 8px;
    min-height: auto;
}

/* =========================
    APP BAR BREAKPOINTS
======================== */
@media (min-width: 600px) {
    .app-title {
        font-size: 1.125rem;
    }
    #appBar {
        padding: 0 24px;
    }
}
