body {
    overflow-x: hidden;
    background-color: #f8f9fa; /* Light background for a softer look */
}

#wrapper {
    display: flex;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    transition: margin .25s ease-out;
    width: 15rem;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    background-color: #343a40; /* Slightly lighter dark background */
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,.1); /* Separator */
    color: #f8f9fa; /* Lighter text color */
}

#sidebar-wrapper .list-group-item {
    border: none; /* Remove default list group item borders */
    transition: background-color 0.2s ease-in-out;
    padding: 0.75rem 1.25rem; /* Add padding to links */
    color: rgba(255,255,255,0.7); /* Lighter text for non-active links */
}

#sidebar-wrapper .list-group-item:hover {
    background-color: rgba(255,255,255,0.15); /* Slightly more prominent hover */
    color: #fff; /* White text on hover */
}

#sidebar-wrapper .list-group-item.active {
    background-color: #0d6efd; /* Use primary color for active background */
    color: #fff; /* White text for active link */
    border-left: 3px solid #0d6efd; /* Highlight active item */
}

#sidebar-wrapper .list-group-item i {
    font-size: 1.1rem; /* Consistent icon size */
    margin-right: 0.5rem;
}

#sidebar-wrapper .list-group {
    width: 15rem;
}

#page-content-wrapper {
    min-width: 100vw;
    background-color: #e9ecef; /* Slightly darker content background */
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }
}

/* Card Styling */
.card {
    border-radius: 0.5rem; /* Rounded corners for cards */
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Soft shadow */
}

.card-header {
    background-color: #e2e6ea; /* Light header background */
    border-bottom: 1px solid rgba(0,0,0,.125);
    font-weight: bold;
}

.card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Table Styling */
.table {
    border-radius: 0.5rem;
    overflow: hidden; /* Ensures rounded corners apply to table */
}

.table thead {
    background-color: #f2f2f2;
}

.table th, .table td {
    vertical-align: middle;
}

/* Specific styling for Dashboard page */
.dashboard-page #page-content-wrapper {
    background-color: #f8f9fa; /* Match body background */
}

/* Specific styling for POS System page */
.pos-system-page {
    /* Adjustments for a more compact and touch-friendly POS */
}

.pos-system-page #page-content-wrapper {
    background-color: #f8f9fa;
}

.pos-system-page .product-card {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.pos-system-page .product-card:hover {
    transform: translateY(-5px);
}

.pos-system-page .cart-quantity-input {
    max-width: 60px;
    text-align: center;
}
