:root {
    --sidebar-width: 260px;
    --brand: #0d6efd;
    --surface: #f4f6f9;
}

body.app-body {
    background: var(--surface);
    min-height: 100vh;
}

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    width: var(--sidebar-width);
    background: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.brand-title {
    font-weight: 700;
    line-height: 1.2;
}

.app-sidebar .nav-link {
    color: #495057;
    border-radius: 8px;
    margin-bottom: 2px;
    padding: 0.55rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-sidebar .nav-link:hover {
    background: #f0f4ff;
    color: var(--brand);
}

.app-sidebar .nav-link.active {
    background: #e7f1ff;
    color: var(--brand);
    font-weight: 600;
}

.app-main {
    background: var(--surface);
}

.app-topbar {
    background: #fff;
}

.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.table-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(145deg, #e7f1ff 0%, #f4f6f9 50%, #ede7f6 100%);
}

.login-card {
    max-width: 420px;
    width: 100%;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(13, 110, 253, 0.12);
}

.product-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
}

.price-preview {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

@media (max-width: 991.98px) {
    .app-shell {
        flex-direction: column;
    }
    .app-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .app-sidebar .nav {
        flex-direction: row !important;
        flex-wrap: wrap;
    }
}
