:root {
    --sidebar-bg: #1e293b;
    --primary: #2563eb;
    --bg: #f8fafc;
    --sidebar-text: #cbd5e1;
    --sidebar-text-active: #ffffff;
}

html, body {
    min-height: 100%;
}

body.app-shell {
    background: var(--bg);
    color: #0f172a;
}

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

.app-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: var(--sidebar-text);
    transition: transform 0.25s ease, width 0.25s ease;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    overflow-y: auto;
}

.app-sidebar .brand {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.app-sidebar .nav-link {
    color: var(--sidebar-text);
    border-radius: 0.75rem;
    padding: 0.7rem 0.9rem;
    margin-bottom: 0.25rem;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link.active {
    color: var(--sidebar-text-active);
    background: rgba(37, 99, 235, 0.18);
}

.app-sidebar .menu-heading {
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    margin: 1.25rem 0 0.5rem;
}

.app-content {
    flex: 1;
    margin-left: 0;
    min-width: 0;
}

.app-navbar {
    background: rgba(248, 250, 252, 0.94);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.app-brand {
    max-width: 12rem;
}

.nav-strip {
    overflow: visible;
    flex-wrap: wrap;
    row-gap: 0.5rem;
}

.btn-nav-top {
    flex-shrink: 0;
    white-space: nowrap;
    border: 0;
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    color: #334155;
    background: transparent;
    font-size: 0.95rem;
}

.btn-nav-top:hover,
.btn-nav-top.active,
.btn-nav-top.show {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.09);
}

.navbar-dropdown-menu {
    min-width: 17rem;
}

.navbar-dropdown-menu .dropdown-item {
    border-radius: 0.65rem;
}

.navbar-dropdown-menu .dropdown-item.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.btn-nav-arrow {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
}

.unit-switch {
    white-space: nowrap;
    min-width: 3.75rem;
    padding-inline: 0.65rem;
}

.app-page {
    padding: 1.5rem;
}

.stat-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.stat-card .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    font-size: 1.15rem;
}

.card-soft {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.breadcrumb {
    margin-bottom: 0;
}

.footer-bar {
    color: #64748b;
    font-size: 0.92rem;
}

.disabled-menu {
    opacity: 0.55;
    cursor: not-allowed;
}

.disabled-menu:hover {
    color: var(--sidebar-text) !important;
    background: transparent !important;
}

@media (max-width: 575.98px) {
    .app-page {
        padding: 1rem;
    }
}
