﻿/* Variables */
:root {
    --sidebar-min-width: 260px;
    --top-row-height: 3.5rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --nav-item-height: 3rem;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

main {
    flex: 1 1 80%;
}

.sidebar {
    flex: 1 1 20%;
    min-width: var(--sidebar-min-width);
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
    align-items: center;
    height: var(--top-row-height);
    border-bottom: 1px solid #d6d5d5;
    background-color: light-dark(#f7f7f7, #212121);
    position: sticky;
    top: 0;
    z-index: 1;
}

    .menu {
        background-color: light-dark(rgba(0,0,0,0.4), rgba(0,0,0,0.4));
    }

/* Responsive adjustments */
@media (max-width: 640.98px) {
    .top-row:not(.auth) {
        display: none;
    }

    .top-row.auth {
        justify-content: space-between;
    }

    .top-row a,
    .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 1150px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .sidebar .collapse:not(.show) {
        display: block;
    }

    .navbar-toggler {
        display: none;
    }
}

/* Navbar */
.navbar-toggler {
    background-color: rgba(255,255,255,0.1);
}

.navbar-brand {
    font-size: 1.1rem;
}

/* Icons */
.sidebar .oi {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

/* Navigation */
.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type {
        padding-top: 1rem;
    }

    .nav-item:last-of-type {
        padding-bottom: 1rem;
    }

    .nav-item a {
        display: flex;
        align-items: center;
        height: var(--nav-item-height);
        line-height: var(--nav-item-height);
        border-radius: 4px;
        color: light-dark(#d7d7d7, white);
    }

        .nav-item a.active,
        .nav-item a:hover {
            background-color: rgba(255,255,255,0.25);
            color: white;
        }

/* Dropdowns */
.dropdown-menu > li > a,
.dropdown-menu > a {
    color: light-dark(black, white) !important;
}
