﻿:root {
    --ump-rail-width: 64px;
    --ump-subnav-width: 180px;
    --ump-topbar-height: 56px;
    --ump-nav-bg: #f6f8fc;
    --ump-hover-bg: rgba(26,115,232,.08);
    --ump-active-bg: rgba(26,115,232,.14);
    --ump-active-text: #1a73e8;
    --ump-text-default: #202124;
    --ump-text-muted: #5f6368;
}

html, body {
    height: 100%;
}

body {
    overflow: hidden;
}

/* ───────── Shell ───────── */

.ump-shell {
    display: flex;
    height: 100vh;
}

/* ───────── Rail (Desktop) ───────── */

.ump-rail {
    width: var(--ump-rail-width);
    background: var(--ump-nav-bg);
    border-right: 1px solid var(--bs-border-color);
    display: none;
}

@media (min-width: 768px) {
    .ump-rail {
        display: flex;
    }
}

.ump-rail-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Rail nav: circular icon buttons */
.ump-rail-nav .nav-link {
    width: 40px;
    height: 40px;
    margin: 6px auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--ump-text-muted);
    transition: background-color 120ms ease, color 120ms ease;
}

    .ump-rail-nav .nav-link:hover {
        background-color: var(--ump-hover-bg);
        color: var(--ump-text-default);
    }

    .ump-rail-nav .nav-link.active {
        background-color: var(--ump-active-bg);
        color: var(--ump-active-text);
    }

.ump-rail-footer {
    padding: 8px 0;
    display: flex;
    justify-content: center;
}

/* ───────── Main Column ───────── */

.ump-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ───────── Control Bar (Desktop) ───────── */

.ump-controlbar {
    height: var(--ump-topbar-height);
    display: none;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
}

@media (min-width: 768px) {
    .ump-controlbar {
        display: flex;
    }
}

.ump-appbadge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ───────── Body (below control bar) ───────── */

.ump-body {
    flex: 1;
    display: flex;
    min-height: 0;
}

/* ───────── Sub Nav (Desktop) ───────── */

.ump-subnav {
    width: var(--ump-subnav-width);
    background: var(--ump-nav-bg);
    border-right: 1px solid var(--bs-border-color);
    display: none;
    min-height: 0;
}

@media (min-width: 768px) {
    .ump-subnav {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
    }
}

/* Subnav list styling */
.ump-subnav .list-group {
    --bs-list-group-bg: transparent;
    --bs-list-group-border-width: 0;
}

.ump-subnav .list-group-item {
    border: none;
    border-radius: 999px;
    margin: 2px 6px;
    padding: .45rem .75rem;
    font-size: .9rem;
    color: var(--ump-text-default);
    background: transparent;
    transition: background-color 120ms ease, color 120ms ease;
}

    .ump-subnav .list-group-item:hover {
        background: var(--ump-hover-bg);
        color: var(--ump-text-default);
    }

    .ump-subnav .list-group-item.active,
    .ump-subnav .list-group-item[aria-current="page"] {
        background: var(--ump-active-bg);
        color: var(--ump-active-text);
        font-weight: 600;
    }

/* ───────── Content ───────── */

.ump-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ump-content-header {
    background: var(--bs-body-bg);
    /*border-bottom: 1px solid var(--bs-border-color);*/
}

.ump-content-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.ump-content-pad {
    padding: 1rem;
}

/* Full-height body support */
.ump-content-fill {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ───────── Breadcrumbs ───────── */

.breadcrumb {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ───────── Mobile Top Bar ───────── */

.ump-mobile-topbar {
    height: var(--ump-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 0 .75rem;
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
}

@media (min-width: 768px) {
    .ump-mobile-topbar {
        display: none;
    }
}


.user-avatar {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* object-fit: cover;*/
}