:root {
    --sidebar-width: 250px;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: #f4f6f9;
    overflow-x: hidden;
}

#sidebar-wrapper {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    min-height: 100vh;
    transition: margin 0.25s ease-out;
}

#sidebar-wrapper .list-group-item {
    border: none;
    padding: 0.85rem 1.25rem;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: #343a40 !important;
}

#sidebar-wrapper .list-group-item.active {
    background-color: #0d6efd !important;
    border-left: 4px solid #fff;
}

#page-content-wrapper {
    min-width: 100vw;
}

@media (min-width: 992px) {
    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }
}

body.sb-sidenav-toggled #sidebar-wrapper {
    margin-left: calc(-1 * var(--sidebar-width));
}

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,0.075);
}

.stat-card {
    border-left: 4px solid #0d6efd;
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }

.sortable-handle { cursor: grab; color: #adb5bd; }
.sortable-ghost { opacity: 0.4; background: #e9ecef; }

.qty-input { width: 80px; text-align: center; }

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 1rem;
}