:root {
    --sidebar-width: 280px;
    --app-bg: #f5f7fb;
    --primary: #0d6efd;
}

body {
    background: var(--app-bg);
    color: #1f2937;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transition: transform .25s ease;
}

.sidebar-link {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: .85rem 1rem;
    border-radius: .75rem;
    margin-bottom: .35rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255,255,255,.12);
}

.app-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.small-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .65rem;
}

.qr-reader-box {
    width: 100%;
    min-height: 280px;
    border: 2px dashed #ced4da;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    .app-content {
        margin-left: 0;
    }
}