html
{
overflow: hidden;
}

.links-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin-top: -24px;
}
/* Display UI and CSS on the model */
#container3D canvas {
    width: 100vw;
    height: 800vh;
    top: 0;
    position: fixed;
    z-index: -10;
}


/* Sidebar */
#mySidebar {
    overflow-x: hidden;
    position: fixed;
    height: 100vh;
    background-color: #ecf0f1;
    transform: translateX(-330px);
    width: 330px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding-bottom: 80px;
    z-index: 200; /* Increased to ensure it's on top */
}

#mySidebar.collapsed {
    transform: translateX(0);
    opacity: 1;
}

/* Main content */
#main {
    transition: margin-left 0.3s ease;
    padding: 20px;
    margin-left: 0; /* Ensure it does not shift */
}

#mySidebar.collapsed + #main {
    margin-left: 330px; /* Adjust based on sidebar width */
}

#toggleBtn {
    position: relative;
    top: 10px;
    left: 0px;
    z-index: 100;
    transition: left 0.3s ease;
    background-color: #333; /* Dark background */
    color: white; /* White text */
    padding: 10px 15px; /* Adjust padding for better appearance */
    border: none; /* Remove any border */
    border-radius: 5px; /* Optional: Add rounded corners */
    font-size: 16px; /* Adjust font size */
    cursor: pointer; /* Pointer cursor on hover */
}
#toggleBtn:hover {
    background-color: #444; /* Slightly lighter dark color on hover */
}
#toggleBtn:focus {
    outline: none; /* Removes the default focus outline */
    box-shadow: none; /* Removes any blue shadow around the button */
}

#mySidebar.collapsed + #toggleBtn {
    left: 325px;
}

/* Center buttons */
.center-buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    z-index: 50;
    padding: 0;
    margin: 0;
}

.center-buttons .btn-group {
    display: flex;
}

#mySidebar.collapsed + .center-buttons {
    z-index: 0; 
}

/* Proceed to Cart button */
.btncart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

/* Smooth transition for sidebar contents */
#mySidebar .sidebar-heading,
#mySidebar .list-group,
#mySidebar .list-group-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mySidebar.collapsed .sidebar-heading,
#mySidebar.collapsed .list-group,
#mySidebar.collapsed .list-group-item {
    opacity: 1;
    transform: translateX(0);
}

#mySidebar:not(.collapsed) .sidebar-heading,
#mySidebar:not(.collapsed) .list-group,
#mySidebar:not(.collapsed) .list-group-item {
    opacity: 0;
    transform: translateX(-30px);
}

/* Product container styles */
.product {
    position: relative;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    background-color: #f8f9fa;
    cursor: move;
    overflow: visible;
    display: grid;
    grid-template-areas:
        "image name"
        "image price"
        "button button";
    grid-template-columns: 120px 1fr; /* Fixed width for image column */
    gap: 8px;
    min-height: 160px;
}

.item-image {
    grid-area: image;
    height: 80px; /* Fixed height */
    width: 100px;
    object-fit: contain;
    margin: 0;
    padding: 0;
    align-self: start; /* Align to top */
}

.product h3 {
    grid-area: name;
    font-size: 14px; /* Slightly smaller font */
    margin: 0;
    padding: 0;
    text-align: left;
    line-height: 1.3;
    max-height: 2.6em; /* Limit to 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.product p.price {
    grid-area: price;
    font-size: 15px;
    margin: 4px 0;
    padding: 0;
    text-align: left;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-right: 4px;
}

.discounted-price {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.1em;
}

.product-button {
    grid-area: button;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
}

.product-button .btn {
    width: 100%;
    margin: 0;
    padding: 5px 20px;
    font-size: 14px;
    display: none;
}

.product-button .btn-success {
    display: inline-block;
}

.product-button .btn-danger[style*="display: inline-block"] ~ .btn-success {
    display: none !important;
}

.product-button .btn-danger[style*="display: inline-block"] {
    width: 100% !important;
}

/* Drag zone */
.drag-zone {
    border: 3px dashed #087cfc;
    background-color: #000000;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0.9;
    display: none;
    color: white;
    box-shadow: 0 0 0 6px #000000; 
    box-sizing: border-box;
}

.drag-zone i {
    font-size: 64px;
    margin-bottom: 10px;
}

.drag-zone p {
    font-size: 24px;
    margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {

    .center-buttons,
    .btncart {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        padding: 0;
        z-index: 99;
        width: 80%;
    }

    .center-buttons {
        bottom: 70px;
    }

    .center-buttons .btn-group {
        width: 100%;
        display: flex;
    }

    .center-buttons .btn {
        flex: 1;
        font-size: 14px;
        padding: 8px 16px;
    }

    .center-buttons .btn:nth-child(2) {
        flex: 1.25;
    }

    .btncart {
        bottom: 20px; 
        margin-top: 10px;
    }

    #mySidebar { 
        height: 95vh; 
        padding-bottom: 30px;
    }

    #toggleBtn {
        position: relative;
        top: 15px;
        left: 0px;
        z-index: 100;
        transition: left 0.3s ease;
        cursor: pointer;
    }

    /* Hide buttons when toggle button is checked */
    #toggleSidebarCheckbox:checked ~ .center-buttons {
        display: none;
    }

    #toggleSidebarCheckbox:checked ~ .btncart {
        display: none;
    }

    /* Sidebar remains visible */
    #toggleSidebarCheckbox:checked + #mySidebar {
        display: block;
    }

    /* Toggle button styling when sidebar is open */
    #toggleSidebarCheckbox:checked + #toggleBtn {
        left: 325px;
    }
}

/* Update the tracking component styles */
.tracking-component {
    position: fixed;
    top: 90px;
    right: 20px;
    background-color: var(--color-1);
    border: 1px solid var(--text-color);
    border-radius: 10px;
    padding: 20px;
    z-index: 200;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    max-width: 280px;
    font-family: Arial, sans-serif;
    color: var(--text-color);
}

.tracking-component h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-color);
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 5px;
}

.tracking-component ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.tracking-component li {
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: var(--text-color);
    cursor: help;
    position: relative;
}

.tracking-component li::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    background-color: var(--hover-bg-color);
    color: var(--hover-text-color);
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1001;
}

.tracking-component li:hover::after {
    opacity: 1;
}

.tracking-component li span {
    font-weight: bold;
    margin-left: 5px;
    min-width: 80px; /* Ensures all N/A texts are aligned */
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-color);
}

.tracking-component li span.status-na {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .tracking-component {
        display: none; /* Hide the tracking component on mobile */
    }
}

/* Add these variables at the top of your CSS file */
:root {
    --color-1: #0f1016;
    --text-color: #f0f0f0;
    --accent-color: #006aff;
    --hover-bg-color: #0C0C11;
    --hover-text-color: rgb(248, 248, 248);
}

/* Add this at the end of the file */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination a, .pagination span {
    color: black;
    float: left;
    padding: 8px 12px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 2px;
    font-size: 14px;
    line-height: 1.5;
    min-width: 40px;
    text-align: center;
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* Update styles for first, last, and navigation buttons */
.pagination a:first-child,
.pagination a:last-child,
.pagination a:nth-child(2),
.pagination a:nth-last-child(2) {
    font-size: 18px;
    padding: 6px 10px;
    min-width: 44px;
}

.pagination span {
    background-color: #f8f9fa;
    color: #6c757d;
}

/* Add styles for double arrows */
.pagination a.double-arrow {
    font-weight: bold;
}

/* Update the toastr positioning */
#toast-container {
    top: 520px !important; /* Increased from 420px to 520px to move below tracker */
    right: 20px !important;
    z-index: 199 !important;
}

/* Update mobile positioning */
@media (max-width: 768px) {
    #toast-container {
        top: 680px !important;
        right: 20px !important;
        z-index: 199 !important;
    }
}

/* Add this to ensure toasts don't overlap with tracking component */
.tracking-component {
    z-index: 200; /* Keep tracking component above toasts */
}

/* Add this to your existing CSS */
#nousAIModal .modal-dialog {
    margin-top: 200px; /* Changed from 100px to 200px */
}

/* For mobile devices, adjust the margin-top */
@media (max-width: 768px) {
    #nousAIModal .modal-dialog {
        margin-top: 100px; /* Adjust this value as needed for mobile */
    }
}

/* The rest of your CSS remains unchanged */

/* Add this at the end of the file */
#benchmarkChart {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

/* Add these styles to your existing CSS file */
.disabled-button {
    background-color: #cccccc !important;
    border-color: #cccccc !important;
    cursor: not-allowed !important;
    opacity: 0.65;
    pointer-events: none;
    position: relative;
}

.disabled-button::after {
    content: 'Animating...';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
    color: #666;
}

.btn-success.disabled-button {
    background-color: #8fc497 !important;
    border-color: #8fc497 !important;
}

.btn-danger.disabled-button {
    background-color: #e99da3 !important;
    border-color: #e99da3 !important;
}

.btn-secondary.disabled-button {
    width: 100%;
    margin: 0;
    padding: 5px 20px;
    font-size: 14px;
}

.btn-secondary.disabled-button::after {
    content: none;
}

/* Add these styles at the end of the file */

#caseRemovalModal .modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 400px; /* Set a specific width */
}

#caseRemovalModal .modal-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}

#caseRemovalModal .modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#caseRemovalModal .modal-title {
    color: #dc3545;
    font-weight: 500;
}

#caseRemovalModal .modal-body {
    padding: 20px;
    font-size: 16px;
}

#caseRemovalModal .modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 15px;
}

#caseRemovalModal .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

#caseRemovalModal .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: -5px;
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    font-size: 0.75em;
    font-weight: bold;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1;
}

.discount-badge::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 5px;
    height: 5px;
    background: #961925;
    border-radius: 0 0 5px 0;
}
