html, body {
    height: 100%;
}

#app-shell {
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    min-width: 240px;
    background-color: var(--bs-tertiary-bg);
    border-right: 1px solid var(--bs-border-color);
}

.sidebar .nav-link {
    color: var(--bs-body-color);
    border-radius: .5rem;
}

.sidebar .nav-link.active {
    background-color: var(--bs-primary);
    color: #fff;
}

.topbar {
    background-color: var(--bs-body-bg);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.login-shell {
    background: linear-gradient(135deg, var(--bs-primary-bg-subtle), var(--bs-body-bg));
}

.login-card {
    width: 100%;
    max-width: 400px;
    border-radius: 1rem;
}

.nav-section-label {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--bs-secondary-color);
    padding: .5rem .75rem .25rem;
}

/* Dashboard stat banners */
.stat-banner {
    border-radius: .75rem;
    padding: 1.25rem;
    color: #fff;
    height: 100%;
}

.stat-banner-link {
    color: #fff;
    text-decoration: none;
    font-size: .85rem;
    opacity: .9;
}

.stat-banner-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.stat-banner-blue { background: linear-gradient(135deg, #4c6ef5, #3b5bdb); }
.stat-banner-green { background: linear-gradient(135deg, #2f9e44, #237032); }
.stat-banner-amber { background: linear-gradient(135deg, #f5b400, #d69800); }
.stat-banner-red { background: linear-gradient(135deg, #e8483a, #c0392b); }

/* Avatars for list rows */
.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .8rem;
    flex-shrink: 0;
}

.avatar-circle-dark {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

/* Available balance tiles */
.balance-tile {
    border: 1px dashed var(--bs-border-color);
    border-radius: .5rem;
    padding: 1rem;
    text-align: center;
    color: var(--bs-secondary-color);
    font-weight: 500;
}

/* Settings hub tiles */
.settings-tile {
    transition: transform .15s ease, box-shadow .15s ease;
}

.settings-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1) !important;
}

.letter-spacing-wide {
    letter-spacing: .5em;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        z-index: 1050;
        height: 100vh;
        left: -240px;
        transition: left .2s ease-in-out;
    }

    .sidebar.show {
        left: 0;
    }
}
