:root {
    --sidebar-width: 240px;
    --navbar-height: 56px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    overflow-x: hidden;
}

.sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--navbar-height));
    background: #fff;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
    z-index: 100;
    transition: transform 0.3s;
}

.sidebar .nav-link {
    color: #495057;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background-color: #f0f4ff;
    color: #0d6efd;
}

.sidebar .nav-link.active {
    background-color: #e7f1ff;
    color: #0d6efd;
    font-weight: 600;
    border-right: 3px solid #0d6efd;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--navbar-height);
    padding: 20px;
    min-height: calc(100vh - var(--navbar-height));
}

.navbar {
    z-index: 200;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.card {
    border-radius: 10px;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    font-size: 0.9rem;
    vertical-align: middle;
}

.btn {
    border-radius: 6px;
}

.form-control, .form-select {
    border-radius: 6px;
    border-color: #dee2e6;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.alert {
    border-radius: 10px;
}

.pagination .page-link {
    border-radius: 6px !important;
    margin: 0 2px;
}

.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
}

.modal-footer {
    border-top: 1px solid #f0f0f0;
}

.product-card .product-icon {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-cart {
    position: sticky;
    top: 76px;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

select2-container--bootstrap-5 .select2-selection {
    border-radius: 6px;
}

.chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}
