:root {
    --topbar-height: 60px;
    --sidebar-width: 240px;
    --dark-grey: #3a3a3a;
    --dark-grey-hover: #2f2f2f;
    --brand-blue: #208ef1;
    --brand-blue-dark: #1479d4;
}

html {
    background:#f5f8ff;
    font-family: Arial, Helvetica, sans-serif;
}

.topbar {
    height: var(--topbar-height);
    background: var(--brand-blue);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: stretch;
    padding: 0;
}

.left-wrap {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    height: 100%;
    background: var(--dark-grey);
}

.toggle-btn-left {
    color: #fff !important;
    min-width: 60px;
    height: 100%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
}

.toggle-btn-left:hover {
    background: var(--dark-grey-hover);
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    padding: 0 15px;
    height: 100%;
    background: var(--brand-blue);
    width:50px;
}

.logo:hover, .logo:focus {
    color: #fff;
    text-decoration: none;
}

.logo-img {
    padding-top: 3px;
}

.spacer {
    flex: 1;
}

.user-menu {
    display: flex;
    align-items: stretch;
}

.user-menu > a {
    height: 100%;
    min-width: 60px;
    /* padding: 0 20px; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    background: var(--dark-grey);
    border-left: 1px solid rgba(255,255,255,0.18);
    transition: background-color 0.2s ease;
}

.user-menu > a:hover, .user-menu > a:focus {
    background: var(--dark-grey-hover);
    color: #fff;
    text-decoration: none;
}

/* User dropdown icon/text alignment */
.uk-dropdown-nav .menu-item-icon {
    margin-right: 8px;
    vertical-align: middle;
    color: #208ef1;
}

.portal {
    display: flex;
    min-height: calc(100vh - var(--topbar-height));
}

.sidebar {
    width: var(--sidebar-width);
    background: #1e1e1e;
    overflow: hidden;
    transition: width 0.28s ease, transform 0.28s ease;
    position: sticky;
    top: var(--topbar-height);
    height: calc(100vh - var(--topbar-height));
}

.sidebar > ul > li > a > span {
    /* color: var(--brand-blue); */
    padding-right: 5px;
}

.sidebar.hidden {
    width: 0;
}

.sidebar .uk-nav-default > li > a {
    color: #9c9c9c;
    padding: 10px 15px;
    white-space: nowrap;
    border-left: 4px solid #1d1d1d;
    transition: 0.2s ease; 
}

.sidebar .uk-nav-default > li > a:hover,
.sidebar .uk-nav-default > li.uk-active > a {
    color: #fff;
    background: #2b2b2b;
    border-left-color: var(--brand-blue); 
}

.content {
    flex: 1;
    padding: 20px;
    transition: all 0.28s ease;
}

.uk-card {
    border-radius: 10px;
}

.uk-dropdown {
    --uk-position-offset: 0px;
    --uk-position-viewport-offset: 0px;
    padding: 15px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .08);
}

.uk-card-default {
    box-shadow: 0 2px 2px rgba(0, 0, 0, .08);
}

.uk-card-body {
    padding: 20px 20px;
}

@media (max-width: 768px) {
    
    .sidebar {
        position: fixed;
        top: var(--topbar-height);
        bottom: 0;
        left: 0;
        z-index: 999;
        width: var(--sidebar-width);
        height: auto;
        box-shadow: 2px 0 12px rgba(0,0,0,0.2);
    }

    .sidebar.hidden {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }
}
