/*
 * B2 Platform — custom overrides on top of Metronic.
 * Brand-specific values are injected as CSS variables by _Layout.cshtml.
 */

/* ── Brand CSS variables (defaults; overridden inline per request) ─────── */
:root {
    --b2-primary:     #3699FF;
    --b2-logo-url:    none;
}

/* ── Sidebar brand logo ─────────────────────────────────────────────────── */
.b2-sidebar-logo img {
    max-height: 36px;
    width: auto;
    object-fit: contain;
}

.b2-sidebar-logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
}

/* ── Sidebar active item accent using brand primary ────────────────────── */
[data-kt-app-layout="dark-sidebar"] .app-sidebar .menu-item.active > .menu-link,
[data-kt-app-layout="dark-sidebar"] .app-sidebar .menu-item .menu-link.active {
    background-color: var(--b2-primary) !important;
}

/* ── User chip in topbar ─────────────────────────────────────────────────  */
.b2-user-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.b2-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--b2-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #fff;
    flex-shrink: 0;
}

.b2-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.b2-user-email {
    font-size: 0.8rem;
    color: #a1a5b7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.b2-user-role {
    font-size: 0.7rem;
    color: #7e8299;
}

/* ── Anonymous layout (login page) ─────────────────────────────────────── */
.b2-auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e1e2d;
}

.b2-auth-card {
    width: 100%;
    max-width: 440px;
    background: #1b1b28;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.b2-auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
}

/* ── Page content wrapper ───────────────────────────────────────────────── */
#kt_app_content {
    padding-top: 1.5rem !important;
}
