 :root {
            --sidebar-width: 270px;
            --sidebar-bg: #111827;
            --sidebar-hover: #1f2937;
            --sidebar-active: #2563eb;
            --page-bg: #f4f7fb;
        }

        * { box-sizing: border-box; }

        body {
            min-height: 100vh;
            margin: 0;
            background: var(--page-bg);
            color: #1f2937;
        }

        a { text-decoration: none; }

        .sidebar {
            position: fixed;
            inset: 0 auto 0 0;
            z-index: 1030;
            width: var(--sidebar-width);
            min-height: 100vh;
            overflow-y: auto;
            background: var(--sidebar-bg);
            color: #fff;
        }

        .sidebar-brand {
            min-height: 72px;
            display: flex;
            align-items: center;
            gap: .75rem;
            padding: 1rem 1.25rem;
            border-bottom: 1px solid rgba(255,255,255,.08);
            color: #fff;
        }

        .brand-icon {
            width: 42px;
            height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: .8rem;
            background: var(--sidebar-active);
            font-size: 1.25rem;
        }

        .menu-title {
            padding: 1.15rem 1.25rem .45rem;
            color: #9ca3af;
            font-size: .72rem;
            font-weight: 700;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .sidebar-nav { padding: 0 .75rem 1rem; }

        .sidebar-link,
        .sidebar-button {
            width: 100%;
            display: flex;
            align-items: center;
            gap: .85rem;
            padding: .78rem .9rem;
            margin-bottom: .3rem;
            border: 0;
            border-radius: .75rem;
            background: transparent;
            color: #d1d5db;
            text-align: left;
            transition: .2s ease;
        }

        .sidebar-link:hover,
        .sidebar-link:focus,
        .sidebar-button:hover,
        .sidebar-button:focus {
            background: var(--sidebar-hover);
            color: #fff;
            transform: translateX(3px);
        }

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

        .main-wrapper {
            min-height: 100vh;
            margin-left: var(--sidebar-width);
        }

        .topbar {
            position: sticky;
            top: 0;
            z-index: 1020;
            min-height: 72px;
            display: flex;
            align-items: center;
            background: rgba(255,255,255,.96);
            border-bottom: 1px solid #e5e7eb;
            backdrop-filter: blur(10px);
        }

        .content-area { padding: 1.5rem; }

        .avatar {
            width: 40px;
            height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: #dbeafe;
            color: #1d4ed8;
            font-weight: 700;
        }

        .metric-card,
        .panel-card {
            height: 100%;
            border: 0;
            border-radius: 1rem;
            box-shadow: 0 .55rem 1.75rem rgba(15,23,42,.07);
        }

        .metric-card {
            transition: transform .2s ease, box-shadow .2s ease;
        }

        .metric-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 .85rem 2rem rgba(15,23,42,.11);
        }

        .metric-icon {
            width: 52px;
            height: 52px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: .9rem;
            font-size: 1.4rem;
        }

        .metric-label { color: #6b7280; font-size: .9rem; }
        .metric-value { margin: .15rem 0 0; font-size: 1.65rem; font-weight: 700; }

        .quick-card {
            height: 100%;
            display: block;
            padding: 1.1rem;
            border: 1px solid #e5e7eb;
            border-radius: 1rem;
            background: #fff;
            color: #1f2937;
            transition: .2s ease;
        }

        .quick-card:hover {
            border-color: #93c5fd;
            color: #1f2937;
            transform: translateY(-3px);
            box-shadow: 0 .7rem 1.6rem rgba(37,99,235,.1);
        }

        .quick-icon {
            width: 46px;
            height: 46px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: .8rem;
            border-radius: .85rem;
            background: #eff6ff;
            color: #2563eb;
            font-size: 1.25rem;
        }

        .panel-card .card-header {
            padding: 1rem 1.15rem;
            border-bottom: 1px solid #eef0f3;
            background: #fff;
            border-radius: 1rem 1rem 0 0;
        }

        .table thead th {
            white-space: nowrap;
            color: #6b7280;
            font-size: .8rem;
            text-transform: uppercase;
        }

        .table tbody td { vertical-align: middle; }

        .offcanvas-dashboard {
            background: var(--sidebar-bg);
            color: #fff;
        }

        .offcanvas-dashboard .btn-close { filter: invert(1); }

        .dashboard-footer {
            padding: 1.2rem 1.5rem;
            border-top: 1px solid #e5e7eb;
            background: #fff;
            color: #6b7280;
            font-size: .9rem;
        }

        @media (max-width: 991.98px) {
            .sidebar { display: none; }
            .main-wrapper { margin-left: 0; }
            .content-area { padding: 1rem; }
        }