:root {
    --sidebar-width: 260px;
    --primary-color: #4f46e5;
}

body {
    background: #f4f6f9;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.auth-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-wrapper {
    padding: 1rem;
}

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

.auth-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: var(--primary-color);
    color: #fff;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-brand-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 991.98px) {
    .app-shell {
        position: relative;
    }

    .main-content {
        width: 100%;
        min-width: 0;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1050;
        height: 100vh;
        min-height: 0;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.2);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .sidebar-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }

    body.sidebar-open {
        overflow: hidden;
    }
}

.admin-sidebar {
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
}

.member-sidebar {
    background: linear-gradient(180deg, #0f766e 0%, #115e59 100%);
}

.sidebar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    margin-bottom: 0.25rem;
}

.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.sidebar .nav-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.main-content {
    min-height: 100vh;
    background: #f4f6f9;
}

.stat-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #4338ca;
    border-color: #4338ca;
}

.product-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

.product-thumb-placeholder {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 0.375rem;
    color: #9ca3af;
}

.product-preview {
    max-height: 200px;
    object-fit: contain;
}

.template-preview {
    height: 100px;
}

.template-card:hover {
    transform: translateY(-2px);
    transition: transform 0.15s ease;
}

.zebra-print-panel {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.zebra-status.text-muted,
.zebra-status.text-success,
.zebra-status.text-warning,
.zebra-status.text-danger {
    display: block;
}
