:root {
    --sidebar-width: 260px;
    --sidebar-bg: #111827;
    --sidebar-fg: #cbd5e1;
    --sidebar-active: #2563eb;
}

body.app-body {
    background-color: #f4f6f9;
}

[data-bs-theme="dark"] body.app-body {
    background-color: #0f172a;
    color: #e2e8f0;
}

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

.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    min-height: 100vh;
}

.sidebar-link {
    color: var(--sidebar-fg);
    border-radius: 0.5rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: var(--sidebar-active);
    color: #fff;
}

.app-main {
    min-width: 0;
}

.topbar {
    background-color: #fff;
}

[data-bs-theme="dark"] .topbar {
    background-color: #1e293b;
    border-color: #334155 !important;
}

.card {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
}

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

.badge-status-online { background-color: #16a34a; }
.badge-status-offline { background-color: #6b7280; }
.badge-status-idle { background-color: #f59e0b; }
.badge-status-disabled { background-color: #dc2626; }
.badge-status-pending { background-color: #0ea5e9; }
.badge-status-revoked { background-color: #991b1b; }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.qr-box {
    width: 260px;
    height: 260px;
    margin: 0 auto;
}

.skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
