/* Loaded last on purpose. This keeps the shell themed on Linux even if isolated CSS is stale. */
.page {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

.page::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    pointer-events: none !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) !important;
    background-size: 44px 44px !important;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 82%) !important;
}

main {
    flex: 1 !important;
    min-width: 0 !important;
}

.content {
    width: 100% !important;
    max-width: 1120px !important;
    padding-top: clamp(1.5rem, 4vw, 3.5rem) !important;
    padding-bottom: 3rem !important;
}

.sidebar {
    position: sticky !important;
    top: 0 !important;
    z-index: 2000 !important;
    background:
        radial-gradient(circle at 25% 0%, rgba(255, 61, 50, 0.35), transparent 15rem),
        linear-gradient(180deg, rgba(20, 26, 35, 0.98), rgba(8, 10, 14, 0.98)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3) !important;
}

.top-row {
    height: 3.5rem !important;
    background: rgba(0, 0, 0, 0.12) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
}

.navbar-brand,
.navbar-brand:hover,
.navbar-brand:focus {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}

.navbar-brand::before {
    content: "" !important;
    width: 0.8rem !important;
    height: 0.8rem !important;
    border-radius: 999px !important;
    background: #ff3d32 !important;
    box-shadow: 0 0 18px rgba(255, 61, 50, 0.9) !important;
}

.navbar-toggler {
    appearance: none !important;
    cursor: pointer !important;
    width: 3rem !important;
    height: 2.5rem !important;
    color: white !important;
    position: absolute !important;
    top: 0.5rem !important;
    right: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 14px !important;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.82%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.4' d='M5 8h20M5 15h20M5 22h20'/%3e%3c/svg%3e") no-repeat center/1.45rem rgba(255, 255, 255, 0.08) !important;
}

.navbar-toggler:checked {
    background-color: rgba(255, 61, 50, 0.22) !important;
    border-color: rgba(255, 61, 50, 0.45) !important;
}

.nav-scrollable {
    display: none !important;
    padding-bottom: 0.75rem !important;
}

.navbar-toggler:checked ~ .nav-scrollable {
    display: block !important;
}

.nav-item {
    font-size: 0.93rem !important;
    padding: 0.18rem 0.85rem !important;
}

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

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

.nav-item a,
.nav-item .nav-link {
    position: relative !important;
    color: rgba(244, 247, 251, 0.74) !important;
    border: 1px solid transparent !important;
    border-radius: 16px !important;
    min-height: 3rem !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1.1 !important;
    padding: 0 0.85rem !important;
    text-decoration: none !important;
}

.nav-item a.active,
.nav-item .nav-link.active {
    background: linear-gradient(135deg, rgba(255, 61, 50, 0.24), rgba(255, 255, 255, 0.06)) !important;
    border-color: rgba(255, 61, 50, 0.38) !important;
    color: white !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 28px rgba(0, 0, 0, 0.22) !important;
}

.nav-item a:hover,
.nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transform: translateX(2px) !important;
}

.bi {
    display: inline-block !important;
    position: relative !important;
    width: 1.15rem !important;
    height: 1.15rem !important;
    margin-right: 0.75rem !important;
    top: -1px !important;
    background-size: cover !important;
    flex: 0 0 auto !important;
}

.bi-house-door-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E") !important;
}

.bi-rocket-takeoff-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M12.17 9.53c2.307-2.592 3.278-4.684 3.641-6.218.21-.887.214-1.58.16-2.065a3.6 3.6 0 0 0-.108-.563 2 2 0 0 0-.078-.23V.453c-.073-.164-.168-.234-.352-.295a2 2 0 0 0-.16-.045 4 4 0 0 0-.57-.093c-.49-.044-1.19-.03-2.08.188-1.536.374-3.618 1.343-6.161 3.604l-2.4.238h-.006a2.55 2.55 0 0 0-1.524.734L.15 7.17a.512.512 0 0 0 .433.868l1.896-.271c.28-.04.592.013.955.132.232.076.437.16.655.248l.203.083c.196.816.66 1.58 1.275 2.195.613.614 1.376 1.08 2.191 1.277l.082.202c.089.218.173.424.249.657.118.363.172.676.132.956l-.271 1.9a.512.512 0 0 0 .867.433l2.382-2.386c.41-.41.668-.949.732-1.526zm.11-3.699c-.797.8-1.93.961-2.528.362-.598-.6-.436-1.733.361-2.532.798-.799 1.93-.96 2.528-.361s.437 1.732-.36 2.531Z'/%3E%3Cpath d='M5.205 10.787a7.6 7.6 0 0 0 1.804 1.352c-1.118 1.007-4.929 2.028-5.054 1.903-.126-.127.737-4.189 1.839-5.18.346.69.837 1.35 1.411 1.925'/%3E%3C/svg%3E") !important;
}

.bi-list-nested-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E") !important;
}

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

    .sidebar {
        width: 270px !important;
        height: 100vh !important;
        border-bottom: 0 !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .top-row {
        height: 4.3rem !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1 !important;
    }

    article {
        padding-left: clamp(2rem, 5vw, 4.5rem) !important;
        padding-right: clamp(1.5rem, 4vw, 3rem) !important;
    }

    .navbar-toggler {
        display: none !important;
    }

    .nav-scrollable {
        display: block !important;
        height: calc(100vh - 4.3rem) !important;
        overflow-y: auto !important;
        padding-top: 0.25rem !important;
    }
}

@media (max-width: 640.98px) {
    .content {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}
