html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}


.container-crude {
    padding-left: 125px;
    padding-right: 30px;
}

    html, body {
        margin: 0;
        padding: 0;
        height: 100%; /* Ensure the height is 100% */
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }

    .container-fluid {
        padding: 0;
        min-height: 100%; /* Ensure the height of the container is flexible */
    }

    .main-content {
        display: flex;
        flex-wrap: nowrap;
        min-height: 100vh; /* Use min-height to allow scrolling if needed */
    }

    .section-container {
        flex: 1 1 auto;
        padding: 10px;
        overflow: hidden; /* Hide overflow by default */
    }

    .card-body {
        max-height: 80vh; /* Limit the height to 80% of the viewport */
        overflow-y: auto; /* Enable vertical scrolling */
    }

    .list-group {
        max-height: 75vh; /* Set max height for the list groups */
        overflow-y: auto; /* Enable vertical scrolling */
    }

    /* Make the Add to Cart card lower to align with the Purchased card */
    .cart-section .card {
        margin-top: 20px; /* Adjust this value to move the Add to Cart card lower */
    }

    .side-buttons {
        position: fixed;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        z-index: 1000;
    }

        .side-buttons .btn {
            width: 120px;
        }

            .side-buttons .btn.active {
                background-color: #138496;
                color: white;
            }

div.SubCategories-header,
div.product-header,
div.departments-header,
div.categories-header {
    background-color: #17a2b8 !important; /* Force the style to apply */
    color: white;
}


    .table-responsive {
        overflow-x: auto;
    }

    /* Custom shadow for the cards */
    .card {
        box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0); /* Shadow only on right and bottom */
        margin-bottom: 20px; /* Add margin before the footer */
        border-radius: 8px; /* Optional: add rounded corners */
        overflow-y: auto;
        max-height: 85%; /* Slightly reduce height to leave room before footer */
    }

    .cart-section .card {
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1), 0px 0px 0px rgba(0, 0, 0, 0); /* No shadow on the left */
    }

    .btn-primary, .btn-success, .btn-outline-secondary {
        min-width: 80px;
    }

    .expanded {
        flex: 1 1 100%;
    }

    .collapsed {
        flex: 0 0 0%;
        max-width: 0;
        visibility: hidden;
    }

    .cart-section {
        width: 600px;
    }

        .cart-section .card {
            height: auto;
        }

    .list-group-item:hover {
        cursor: pointer;
        background-color: #f1f1f1;
    }

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    z-index: 9999; /* Ensure it's on top of everything */
}

/* Modal Background */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 9999; /* Ensure it's on top of everything */
}

/* Card-Like Appearance */
.loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: white; /* White background for the card */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 15px; /* Space between the spinner and text */
}



