/* Reset and Basic Styling ----------------------------*/
body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Arial Narrow', Arial, sans-serif;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

button {
    border: none;
    padding: 15px;
    margin: 10px 0px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    /* Optional: slightly round the corners */
    background: linear-gradient(145deg, #4b4b4b, #333333);
    /* Create a metallic gradient */
    color: white;
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.2), -4px -4px 6px rgba(255, 255, 255, 0.1);
    /* 3D shadow effect */
    transition: all 0.3s ease;
    /* Smooth transition on hover */
}


/* Optional: Add hover effect for a pressed look */
button:hover {
    background: linear-gradient(145deg, #333333, #4b4b4b);
    /* Reverse gradient on hover */
    box-shadow: inset 4px 4px 6px rgba(0, 0, 0, 0.3), inset -4px -4px 6px rgba(255, 255, 255, 0.1);
    /* Inset shadow for pressed effect */
}

/* Optional: Add focus style */
button:focus {
    outline: none;
    /* Remove outline */
    box-shadow: 0 0 5px 2px #0099ff;
    /* Add a glowing focus ring */
}


/*Top Navigation Styling ---------------------------------------------*/

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #242020, #383737);

    padding: 10px 20px;
    color: white;
    position: relative;
}

.logo {
    width: 70px;
    margin-left: 15px;
}

/* Centered User Info */
.user-info {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #c4c4c4;
}

/* Ensure user info stays in center for mobile and desktop */
@media (max-width: 768px) {

    .top-nav {
        padding: 15px 25px;
    }

    .user-info {
        left: 42%;
        transform: translateX(-50%);
        text-align: center;
    }

    .logo {
        width: 40px;
        margin-left: -20px;
    }
}


/* Main Layout */
.main-container {
    display: flex;
    height: calc(100vh - 50px);
}

/* Sidebar Styling ------------------------------------------------*/
.sidebar {
    width: 12%;
    background: linear-gradient(to bottom, rgba(10, 1, 20, 0.9), rgba(37, 20, 53, 0.8));
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    .sidebar {
        width: 20%;
        padding-top: 20px;
        gap: 5px;
    }


}

.sidebar.collapsed {
    width: 20px;
    /* Reduced width when collapsed */
}

/* Default sidebar button styling */
.sidebar-button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 5px;
    margin-left: 10px;
    background-color: rgba(13, 2, 27, 0);
    color: #c4c4c4;
    border-radius: 0px;
    transition: background-color 0.3s ease, opacity 0.3s ease, border-radius 0.3s ease;
    position: relative;
    /* To position the badge inside the button */
}

/* Hover effect */
.sidebar-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Light highlight on hover */
    border-radius: 50px 0px 0px 50px;
    /* Rounded left border */
    transition: all 0.5s ease-in-out;
}

/* Active page styling */
.sidebar-button.active {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.2));
    /* Subtle gradient for highlight */
    border-radius: 50px 0px 0px 50px;
    /* Rounded left border */
    color: #ffffff;
    /* Text color */
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2), -3px -3px 6px rgba(255, 255, 255, 0.2);
    /* 3D shadow effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Light border for metallic effect */
    transition: all 0.3s ease;
    /* Smooth transition for hover effects */
}

/* Hover effect to simulate the button being pressed */
.sidebar-button.active:hover {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.3));
    /* Stronger gradient on hover */
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3), inset -2px -2px 5px rgba(255, 255, 255, 0.2);
    /* Inset shadow for pressed effect */
}

/* Optional: Add focus style */
.sidebar-button.active:focus {
    outline: none;
    /* Remove outline */
    box-shadow: 0 0 5px 2px #00aaff;
    /* Add glowing focus ring */
}



/* Link styling inside the button */
.sidebar-button a {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* Hide text when sidebar is collapsed */
.sidebar.collapsed .sidebar-button span {
    display: none;
}

/* Icon styling */
.button-icon {
    width: 19px;
    height: 19px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.sidebar.collapsed .button-icon {
    margin-right: 0;
}

/* Notification badge positioning */
.notif-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: red;
    color: white;
    font-size: 13px;
    border-radius: 50%;
    width: 15px;
    /* Slightly bigger to emphasize 3D effect */
    height: 15px;
    /* Same as width */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;

    /* Adding 3D effect */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    /* Shadow for depth */
    background: linear-gradient(145deg, #ff4d4d, #ff1a1a);
    /* Gradient for a shiny look */
    transform: translateY(2px);
    /* Slight lift effect */
    transition: all 0.2s ease-in-out;
    /* Smooth transition for interactive effects */
}

.notif-badge:hover {
    transform: translateY(1px) scale(1.1);
    /* Slight scaling when hovered */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25), 0 6px 12px rgba(0, 0, 0, 0.35);
    /* Enhanced shadow on hover */
}

@media (max-width: 768px) {
    .notif-badge {
        top: 10px;
        left: 10px;
        font-size: 14px !important;
        width: 15px;
        height: 15px;
    }
}




.hamburger-menu {
    cursor: pointer;
    margin-bottom: 20px;
    margin-left: 16px;
}

.hamburger-menu:hover {
    transform: scale(1.2);
}

.menu-icon {
    width: 19px;
    height: 19px;
}

.button-icon:hover {
    transform: scale(1.2);
}



/* Middle Section Styling------------------------------------------- */
.middle-section {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 15px;
    background-color: #5c5c5c;
    justify-items: center;
    align-items: center;
    background-image: url('IMAGES/BGINin.JPG');
    background-size: cover;
}


.section-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    /* Set max width for consistency */
    height: 200px;
    font-size: 15px;
    font-weight: bolder;
    text-align: center;
    background-color: #e4e4e4;
    background: #e0e5ec;
    color: rgba(51, 20, 92, 0.849);
    border-radius: 0px;
    /* Rounded corners */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.336);
    cursor: pointer;
}

.section-button:hover {
    background-color: #dcb2ff;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.5);
    /* Stronger shadow on hover */
}

.middle-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
    background: #e0e5ec;
    border-radius: 8px;
    box-shadow: 4px 4px 10px #b0b0b0, -4px -4px 10px #ffffff;
    transition: all 0.1s ease;
}

/* Embossed effect when pressed */
.middle-icon:active {
    box-shadow: inset 4px 4px 10px #b0b0b0, inset -4px -4px 10px #ffffff;
    transform: translateY(2px);
}




/* Media  Responsiveness for dashboard------------------------------------------- */



/* Default Mobile Adjustments */
@media (max-width: 768px) {

    /* Sidebar visibility by default on mobile */
    .sidebar {
        transform: translateX(0);
        padding-left: 0px;
    }

    /* Reduce font size for all text inside sidebar buttons */
    .sidebar-button span {
        font-size: 9px;
    }

    /* Middle section layout in grid with 3 items per row */
    .middle-section {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 7px;
        width: 100%;
    }

    /* Layout adjustments for smaller screens (mobile-first) */
    .middle-section {
        grid-template-columns: 1fr;
    }

    .section-button {
        width: auto;
        height: 200px;
        margin-left: 8px;
    }

    /* Sidebar toggle effect (showing or hiding sidebar) */
    .sidebar.show {
        transform: translateX(-100%);
    }

    /* Middle section should be displayed when sidebar is shown */
    .middle-section.show {
        display: flex;
    }

    /* Apply the reduced font size globally on the page */
    body,
    .top-nav,
    .middle-section button,
    .sidebar-button,
    .sidebar-button span {
        font-size: 9px;
    }
}

@media (max-width: 480px) {

    /* Further layout adjustments for very small screens */
    .section-button {
        width: 250px;
        height: 170px;
        margin-left: 8px;
    }

    /* Ensuring buttons on smaller screens are appropriately sized */
    .middle-section button {
        font-size: 8px;
    }
}

/* LOG IN FORM STYLES---------------------------------------------------------- */

.login-body {
    font-family: Arial, sans-serif;
    background-image: url('IMAGES/BGINin.JPG');
    background-size: cover;
    background-position: center;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

@media (max-width: 768px) {
    .login-body {
        background-image: url('IMAGES/ddb.JPG');
        background-size: cover;
        background-position: top center;
        /* Ensures the image stays visible on small screens */
    }
}

.login-container {
    background-color: #e4e4e4;
    background: #e0e5ec;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h2 {
    margin-bottom: 20px;
    color: #333333;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 6px #c8ccd1, inset -4px -4px 6px #f0f5fa;

}


.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    margin-left: 10px;
}

.checkbox-container label {
    font-size: 14px;
    color: #333333;
}

.login-container button {
    width: 90%;
    padding: 15px;
    background-color: #333333;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 19px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
    box-shadow: 6px 6px 10px #c2c8d0, -6px -6px 10px #ffffff;

}

.login-container button:hover {
    background-color: #45a049;
}

.footer-text {
    margin-top: 20px;
    font-size: 12px;
    color: #777777;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #e4e4e4;
    background: #e0e5ec;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Default width */
    max-width: 400px;
    /* Maximum width */
    border-radius: 10px;
}


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.delete_Cart p {
    margin-bottom: 20px;
    font-size: 1.2em;
}

.delete_Cart button {
    padding: 10px 20px;
    margin: 5px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 768px) {
    .modal-content {
        width: 80%;
        font-size: 20px;
    }

}

/* Responsive styles */
@media (max-width: 768px) {
    .login-container {
        padding: 15px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    }

    .login-container h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .login-container input[type="text"],
    .login-container input[type="password"] {
        font-size: 12px;
        padding: 8px;
        width: 80%;
    }

    .checkbox-container label {
        font-size: 10px;
        width: 50%;
    }

    .login-container button {
        font-size: 18px;
        font-weight: bold;
        padding: 12px;
    }

    .footer-text {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
        width: 80%;
    }

    .login-container h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .login-container input[type="text"],
    .login-container input[type="password"] {
        font-size: 15px;
        padding: 15px;
        width: 80%;
    }

    .checkbox-container {
        flex-direction: column;
        align-items: flex-start;

    }

    .checkbox-container label {
        font-size: 15px;
        width: 50%;
    }

    .login-container button {
        font-size: 18px;
        font-weight: bold;
        padding: 12px;
    }

    .footer-text {
        font-size: 15px;
    }
}

/* log in error ------------------------------------ */
.error-message {
    color: red;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* Button Styling */
.nav-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    transition: background 0.2s ease;
    border-radius: 4px;
}

.nav-button img {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    filter: brightness(0.9);
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* TIME AND DATE ON DASHBOARD ------------------------------------ */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

#date-time {
    font-size: 0.9em;
    color: #c4c4c4;
}

/* CHANGE PASSWORD FORM------------------------------------------------- */

.middle-section .container1 {
    width: 100%;
    max-width: 600px;
    max-height: 400px;
    background-color: #e4e4e4;
    background: #e0e5ec;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    margin-left: 400px;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    width: 100%;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    /* right padding for the icon */
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #333;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 6px #c8ccd1, inset -4px -4px 6px #f0f5fa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-wrapper input:focus,
.input-wrapper input:hover {
    background: #e0e5ec;
    box-shadow: inset 4px 4px 6px #c8ccd1, inset -4px -4px 6px #f0f5fa;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    cursor: pointer;
}



.password-form .button-group2 {
    display: flex;
    justify-content: flex-start;
    gap: 5px;

}

.password-form .button-group2 .btn1 {
    padding: 15px 20px;
    /* Reduced padding */
    margin: 0px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 6px 6px 10px #c2c8d0, -4px -4px 10px #ffffff;
}

.password-form .button-group2 .btn1.update {
    background-color: #242424;
    color: white;
    box-shadow: 6px 6px 10px #c2c8d0, -4px -4px 10px #ffffff;
}

.password-form .button-group2 .btn1.reset {
    background-color: #242424;
    color: white;
    box-shadow: 6px 6px 10px #c2c8d0, -4px -4px 10px #ffffff;
}


/* Responsive styles */
@media (max-width: 768px) {


    .middle-section .container1 {
        width: 80%;
        margin-left: 0;
    }

    .password-form .button-group2 {
        flex-direction: flex;
        gap: 5px;
    }

    .password-form .button-group2 .btn1 {
        width: 50%;
        font-size: 1.5em;
    }
}




/* ABOUT SOFTWARE --------------------------------------------- */

.about-container {
    width: 100%;
    max-width: 600px;
    max-height: 400px;
    background-color: #e4e4e4;
    background: #e0e5ec;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    margin-left: 400px;
    overflow-y: auto;
    box-sizing: border-box;
    /* Ensures padding does not overflow the container */
}

.about-container h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.about-container h5 {
    font-size: 1.2em;
    margin-top: 15px;
    margin-bottom: 8px;
    color: #333;
}

.about-container p {
    font-size: 1em;
    line-height: 1.5;
    color: #555;
}

.about-container a {
    color: #0066cc;
    text-decoration: none;
}

.about-container a:hover {
    text-decoration: underline;
}

/* Media query for smaller devices */
@media (max-width: 768px) {
    .about-container {
        margin-left: 20px;
        /* Adjust margin for smaller screens */
        max-width: 90%;
        /* Take up more width on smaller screens */
        max-height: 90%;
        /* Remove max-height to allow more content */
    }

    .about-container h2 {
        font-size: 1.5em;
    }

    .about-container h5 {
        font-size: 1.2em;
    }

    .about-container p {
        font-size: 1.0em;
        /* Slightly smaller text */
    }
}

/* Media query for very small screens (like mobile phones) */
@media (max-width: 480px) {
    .about-container {
        margin-left: 10px;
        max-width: 90%;
        padding: 15px;
    }

    .about-container h2 {
        font-size: 1.5em;
    }

    .about-container h5 {
        font-size: 1.2em;
    }

    .about-container p {
        font-size: 1.0em;
        /* Even smaller text for mobile */
    }
}



/* MANAGE USERS ------------------------------------------------------ */

.manage-users-form {
    grid-column: span 1;
    background: #e0e5ec;
    padding: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-height: 450px;
    min-height: 350px;
    overflow-y: auto;
}

.manage-users-form h2 {
    margin-bottom: 10px;
    font-size: 1.4em;
    color: #333;
}

.manage-users-form .form-group {
    margin-bottom: 10px;
}

.manage-users-form label {
    display: block;
    font-weight: lighter;
    margin-bottom: 5px;
    color: #333;
}

.manage-users-form input,
.manage-users-form select {
    width: 80%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    color: #333;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 6px #c8ccd1, inset -4px -4px 6px #f0f5fa;
    transition: all 0.3s ease;

}

/* Focus effect */
.manage-users-form input:focus,
.manage-users-form select:focus {
    outline: none;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 6px #c8ccd1, inset -4px -4px 6px #f0f5fa;
}

/* Hover effect */
.manage-users-form input:hover,
.manage-users-form select:hover {
    background: #e0e5ec;
    box-shadow: inset 4px 4px 6px #c8ccd1, inset -4px -4px 6px #f0f5fa;
}


.manage-users-form select#status {
    width: 50%;
}

.manage-users-form .form-buttons button {
    margin-right: 2px;
    padding: 12px 16px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;

}

.manage-users-form .form-buttons button:hover {
    background-color: #0056b3;
}

.manage-users-table {
    grid-column: span 2;
    background: #e0e5ec;
    padding: 0px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    width: 85%;
    max-height: 400px;
    min-height: 473px;
    overflow-x: auto;
    overflow-y: auto;

}

.manage-users-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.manage-users-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    /* Prevent text wrapping in header */
}

.manage-users-table table {
    width: 100%;
    border-collapse: collapse;
    max-height: 450px;
}

.manage-users-table th,
.manage-users-table td {
    padding: 3px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    border: none;
    white-space: nowrap;
    /* Prevent text wrapping in table cells */
}

.manage-users-table tr:hover {
    background: linear-gradient(135deg, #b091b6, #7e5a9b);
    transform: scale(1.01);
    /* Slightly enlarges the row for better visibility */
    transition: all 0.2s ease-in-out;
    /* Smooth transition effect */
}



@media (min-width: 768px) and (max-width: 1024px) and (max-width: 820px) {
    .manage-users-form select#status {
        width: 50%;
        max-width: 100px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (max-width: 820px) and (max-width: 1366px) {
    .manage-users-form select#prodcat {
        width: 50%;
        max-width: 100px;
    }
}

@media (max-width: 1024px) and (max-width: 1366px) {
    .manage-users-form select#prodcat {
        width: 50%;
        max-width: 200px;
    }
}

@media (max-width: 1024px) and (max-width: 1366px) {
    .manage-users-form select#status {
        width: 50%;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .middle-section {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .manage-users-form,
    .manage-users-table {
        grid-column: span 1;
        width: 97%;
        margin: -5px;
        gap: 2px;
    }

    .manage-users-form {
        max-height: 300px;
        min-height: 340px;
        overflow-y: auto;
        padding: 3px;
    }

    .manage-users-form select#status {
        width: 70%;
    }

    .manage-users-table {
        max-height: 210px;
        min-height: 250px;
        overflow-y: scroll;
        padding: 0px;
        border-collapse: collapse;
    }

    .manage-users-table td,
    .manage-users-table th {
        padding: 12px 8px;
        font-size: 14px;
        border: none;
    }

    .manage-users-table tr {
        border: none;
    }

    .manage-users-table th {
        background-color: #f4f4f4;
    }

    body {
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .manage-users-form .form-buttons button {
        margin-right: 2px;
        padding: 12px 16px;
        font-size: 1.5em;
    }
}


/* START SALES ------------------------------------------------- */


.cart-message {
    color: gray;
    font-style: italic;
    font-size: 16px;
    /* Default font size */
}

@media screen and (max-width: 768px) {
    .cart-message {
        font-size: 15px;
        /* Font size for mobile view */
    }
}

.left-section,
.right-section {
    background-color: #e4e4e4;
    background: #e0e5ec;
    padding: 20px;
    border-radius: 0px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 90%;
    min-height: 400px;
    max-height: 300px;
    max-width: 600px;
    min-width: 500px;
    margin-left: 20px;
    justify-content: center;
    align-items: center;
}





.left-section h2,
.right-section h2 {
    margin-bottom: 20px;
}

.left-section input[type="text"],
.right-section input[type="text"] {
    width: 40%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 6px #c8ccd1, inset -4px -4px 6px #f0f5fa;
    transition: all 0.3s ease;
}

/* Focus effect */
.left-section input[type="text"]:focus,
.right-section input[type="text"]:focus {
    outline: none;
    border: 1px solid rgba(37, 20, 53, 0.8);
    background: #e0e5ec;
    box-shadow: inset 4px 4px 6px #c8ccd1, inset -4px -4px 6px #f0f5fa;
}

/* Hover effect */
.left-section input[type="text"]:hover,
.right-section input[type="text"]:hover {
    background: #f9f9f9;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2), -3px -3px 8px rgba(255, 255, 255, 0.2);
}


.table-container {
    max-height: 200px;
    max-width: 600px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.left-section table,
.right-section table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.left-section table tr:nth-child(even),
.right-section table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.right-section .table-container {
    max-height: 150px;
    min-height: 150px;
    overflow-y: auto;

}

.left-section table th,
.left-section table td,
.right-section table th,
.right-section table td {
    padding: 6px;
    text-align: left;
    white-space: nowrap;
}

.left-section table th,
.right-section table th {
    background-color: #f8f7f7;
}

.left-section table th,
.right-section table th {
    position: sticky;
    top: 0;
    background-color: #f2f2f2;
    z-index: 1;
}

/* Apply smooth transition to all rows */
.left-section table tr,
.right-section table tr {
    transition: all 0.2s ease-in-out;
}

/* Hover effect for both left and right section tables */
.left-section table tr:hover,
.right-section table tr:hover {
    background: linear-gradient(135deg, #b091b6, #7e5a9b);
    transform: scale(1.01);
}


.total-amount,
.amount-input {
    margin-bottom: 5px;
}

.amount-input input[type="number"] {
    width: 30%;
    padding: 10px 12px;
    margin-right: 10px;
    margin-bottom: 3px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 6px #c8ccd1, inset -4px -4px 6px #f0f5fa;
    transition: all 0.3s ease;
}

/* Focus effect */
.amount-input input[type="number"]:focus {
    outline: none;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 6px #c8ccd1, inset -4px -4px 6px #f0f5fa;
}

/* Hover effect */
.amount-input input[type="number"]:hover {
    background: #f9f9f9;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2), -3px -3px 8px rgba(255, 255, 255, 0.2);
}


.buttons button {
    padding: 12px 20px;
    margin: 5px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin-top: 1px;
    font-weight: bold;

}



.sale-btn {
    background-color: #333333;
    color: white;
}

.reset-btn {
    background-color: #333333;
    color: white;
}

/* Responsive design */
@media (max-width: 768px) {

    .left-section,
    .right-section {
        width: 95%;
        /* Adjust width to make sections closer */
        padding: 5px;
        /* Reduce padding */
        margin-left: 3px;
        min-width: 300px;
        min-height: 300px;
        overflow-y: auto;
    }


    .table-container {
        max-height: 120px;
        /* Adjust max height for better fit */
        min-height: 180px;
        /* Adjust max height for better fit */
        max-width: 100%;
        /* Adjust max width to fit mobile screen */
        overflow-y: auto;
        margin-bottom: 5px;
    }


    .left-section {
        min-height: 100px;
    }

    .right-section {
        min-height: 100px;
    }

    .left-section h2,
    .right-section h2 {
        font-size: 1.4em;
        /* Reduce font size */
        margin-bottom: 5px;
        /* Reduce margin */
    }

    .left-section input[type="text"],
    .right-section input[type="text"] {
        width: 50%;
        /* Adjust width for input fields */
        padding: 8px;
        /* Reduce padding */
        margin-bottom: 10px;
        /* Reduce margin */
        font-size: 1.8em;
        /* Reduce font size */
    }

    .left-section table,
    .right-section table {
        width: 100%;
        /* Reduce width for tables */
        font-size: 1.9em;
        /* Reduce font size */
        margin: 0 auto;
        /* Center tables */

    }

    .left-section table th,
    .left-section table td,
    .right-section table th,
    .right-section table td {
        padding: 4px;
        /* Reduce padding */
        font-size: 0.9em;
        /* Reduce font size */
    }

    .right-section .table-container {
        max-height: 100px;
        /* Restrict right table height */
        min-height: 100px;
        /* Restrict right table height */
        overflow-y: auto;
        /* Enable scrolling if content overflows */
    }



    .total-amount,
    .amount-input {
        margin-bottom: 10px;
        /* Reduce margin */
        font-size: 1.8em;
        /* Reduce font size */
    }

    .amount-input input[type="number"] {
        width: 28%;
        /* Adjust width */
        padding: 8px;
        /* Reduce padding */
        margin-right: 5px;
        /* Reduce margin */
        margin-bottom: 1px;
        font-size: 0.8em;
        /* Reduce font size */
    }

    .buttons button {
        padding: 10px 15px;
        /* Reduce padding */
        margin-top: 1px;
        font-size: 1.5em;
        /* Reduce font size */
    }
}

/* search icons------------------------------------------------------------------- */

#searchProduct {
    background-image: url('IMAGES/search11.png');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: 10px center;
    padding-left: 40px;
    outline: none;
}

#search {
    background-image: url('IMAGES/search11.png');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: 10px center;
    padding-left: 40px;
    outline: none;
}

#searchcategory {
    background-image: url('IMAGES/search11.png');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: 10px center;
    padding-left: 40px;
    outline: none;
}

#searchProducts {
    background-image: url('IMAGES/search11.png');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: 10px center;
    padding-left: 40px;
    outline: none;
}

#searchOrder {
    background-image: url('IMAGES/search11.png');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: 10px center;
    padding-left: 40px;
    outline: none;
}

#searchOrdert2 {
    background-image: url('IMAGES/search11.png');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: 10px center;
    padding-left: 40px;
    outline: none;
}

/* undo refresh button ----------------------------------------------------------------------- */
.button-containertop {
    position: absolute;
    top: -3px;
    /* Adjust this to position vertically */
    right: 10px;
    /* Adjust this to position horizontally */
    display: flex;
    gap: 10px;
    /* Space between buttons */
}

.refresh-button,
.undo-button {
    padding: 4px 5px;
    font-size: 14px;
    background-color: #333333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    /* Centers the icon vertically */
    justify-content: center;
    /* Centers the icon horizontally */
    height: 40px;
    /* Ensures button height is consistent */
    width: 40px;
    /* Ensures button width is consistent */
}

.refresh-button img,
.undo-button img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* Media Query for Mobile Screens */
@media (max-width: 780px) {
    .button-containertop {
        position: absolute;
        top: 2px;
        /* Adjust this to position vertically */
        right: 2px;
        /* Adjust this to position horizontally */
        display: flex;
        margin-right: 8px;
    }

    .refresh-button,
    .undo-button {
        height: 30px;
        /* Smaller height */
        width: 30px;
        /* Smaller width */
    }

    .undo-button {
        margin-right: 3px;

    }

    .refresh-button img,
    .undo-button img {
        width: 10px;
        /* Smaller icon size */
        height: 10px;
        /* Smaller icon size */
    }
}

.refresh-button:hover {
    background-color: #333333;
}

/* =================================================================================================================== */
@media (max-width: 780px) {

    /* Targets screens smaller than 600px */
    #siteSelect {
        width: 90px;
        /* Reduce width */
        height: 35px;
        /* Reduce height */
        font-size: 14px;
        /* Slightly smaller font */
    }
}


/*ORDERS------------------------------------------------------------------------------------------------ */


#Order-table {
    width: 100%;
    border-collapse: collapse;
    display: block;
    max-height: 150px;
    /* Set max height for tbody to enable scrolling */
    overflow-y: auto;
    background: #e0e5ec;
}

#Order-table tr:nth-child(even),
#Order-table2 tr:nth-child(even) {
    background-color: #f9f9f9;
}


@media (max-width: 780px) {

    #Order-table {
        width: 100%;
        border-collapse: collapse;
        display: block;
        max-height: 250px;
        /* Set max height for tbody to enable scrolling */
        overflow-y: auto;
    }

    #Order-table th,
    #Order-table td {
        font-size: 16px;
        /* Increase the font size for better readability */
        padding: 12px;
    }
}

.Ordertable-container {
    margin: 20px;
}

#Order-table th {
    position: sticky;
    /* Make headers sticky */
    top: 0;
    /* Stick to the top */
    background-color: #ffffff;
    /* Set a distinct header background color */
    color: rgb(20, 20, 20);
    /* Text color for the header */
    z-index: 1;
    /* Ensure headers are above other content */
    padding: 6px;
    text-align: left;
}

#Order-table td {
    padding: 6px;
    text-align: left;
}

#Order-table tr:hover {
    background: linear-gradient(135deg, #b091b6, #7e5a9b);
    transform: scale(1.01);
    /* Slightly enlarges the row for better visibility */
    transition: all 0.2s ease-in-out;
    /* Smooth transition effect */
}



.read-only-row {
    background-color: #f0f0f0;
    /* Light gray background */
    color: #888;
    /* Gray text */
    cursor: not-allowed;
    /* Change cursor to indicate non-clickable */
}

.read-only-row:hover {
    background-color: #e0e0e0;
    /* Slightly darker gray on hover */
}

.switch-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 20px;
}

/* Bigger 3D switch */
.switch-button {
    width: 100px;
    height: 35px;
    background: linear-gradient(145deg, #d69200, #b57800);
    border-radius: 35px;
    position: relative;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2), -2px -2px 5px rgba(255, 255, 255, 0.3);
}

/* Active 3D effect */
.switch-container.active .switch-button {
    background: linear-gradient(145deg, #4CAF50, #388E3C);
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3), inset -2px -2px 5px rgba(255, 255, 255, 0.1);
}

/* 3D Circle */
.switch-button::before {
    content: "";
    width: 30px;
    height: 30px;
    background: linear-gradient(145deg, #ffffff, #e0e0e0);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    transition: left 0.3s, box-shadow 0.3s;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2), -2px -2px 5px rgba(255, 255, 255, 0.7);
}

/* Move the circle on active */
.switch-container.active .switch-button::before {
    left: 65px;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3), inset -2px -2px 5px rgba(255, 255, 255, 0.3);
}

/*SUMMARY-------------------------------------------------------------------  */

.manage-users-form2 {
    grid-column: span 1;
    background: #e0e5ec;
    padding: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-height: 450px;
    min-height: 350px;
    overflow-y: auto;
}

.manage-users-form2 h2 {
    margin-bottom: 10px;
    font-size: 1.4em;
    color: #333;
}

.manage-users-form2 .form-group {
    margin-bottom: 10px;
}

.manage-users-form2 label {
    display: block;
    font-weight: lighter;
    margin-bottom: 5px;
    color: #333;
}

.manage-users-form2 input,
.manage-users-form2 select {
    width: 70%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #333;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 6px #c8ccd1, inset -4px -4px 6px #f0f5fa;
    transition: all 0.3s ease;

}

/* Focus effect */
.manage-users-form2 input:focus,
.manage-users-form2 select:focus {
    outline: none;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 6px #c8ccd1, inset -4px -4px 6px #f0f5fa;
}

/* Hover effect */
.manage-users-form2 input:hover,
.manage-users-form2 select:hover {
    background: #e0e5ec;
    box-shadow: inset 4px 4px 6px #c8ccd1, inset -4px -4px 6px #f0f5fa;
}


.manage-users-form2 select#status {
    width: 50%;
}

.manage-users-form2 .form-buttons button {
    margin-right: 2px;
    padding: 12px 16px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;

}

.manage-users-form2 .form-buttons button:hover {
    background-color: #0056b3;
}

.manage-users-table2 {
    grid-column: span 2;
    background: #e0e5ec;
    padding: 0px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    width: 85%;
    max-height: 400px;
    min-height: 400px;
    overflow-x: auto;
    overflow-y: auto;
}

.manage-users-table2 tr:nth-child(even),
.manage-users-table tr:nth-child(even),
.manage-users-table3 tr:nth-child(even) {
    background-color: #f9f9f9;
}


.manage-users-table2 th {
    background-color: #f4f4f4;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    /* Prevent text wrapping in header */
}

.manage-users-table2 table {
    width: 100%;
    border-collapse: collapse;
    max-height: 450px;
    background: #e0e5ec;
}

.manage-users-table2 th,
.manage-users-table2 td {
    padding: 3px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    border: none;
    white-space: nowrap;
    /* Prevent text wrapping in table cells */
}

.manage-users-table2 tr:hover {
    background: linear-gradient(135deg, #b091b6, #7e5a9b);
    transform: scale(1.01);
    /* Slightly enlarges the row for better visibility */
    transition: all 0.2s ease-in-out;
    /* Smooth transition effect */
}



@media (min-width: 768px) and (max-width: 1024px) and (max-width: 820px) {
    .manage-users-form2 select#status {
        width: 50%;
        max-width: 100px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (max-width: 820px) and (max-width: 1366px) {
    .manage-users-form2 select#prodcat {
        width: 50%;
        max-width: 100px;
    }
}

@media (max-width: 1024px) and (max-width: 1366px) {
    .manage-users-form2 select#prodcat {
        width: 50%;
        max-width: 200px;
    }
}

@media (max-width: 1024px) and (max-width: 1366px) {
    .manage-users-form2 select#status {
        width: 50%;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .middle-section {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .manage-users-form2,
    .manage-users-table2 {
        grid-column: span 1;
        width: 97%;
        margin: -5px;
        gap: 2px;
    }

    .manage-users-form2 {
        max-height: 300px;
        min-height: 140px;
        overflow-y: auto;
        padding: 3px;
    }

    .manage-users-form2 select#status {
        width: 70%;
    }

    .manage-users-table2 {
        max-height: 210px;
        min-height: 380px;
        overflow-y: scroll;
        padding: 0px;
        border-collapse: collapse;
    }

    .manage-users-table2 td,
    .manage-users-table2 th {
        padding: 12px 8px;
        font-size: 14px;
        border: none;
    }

    .manage-users-table2 tr {
        border: none;
    }

    .manage-users-table2 th {
        background-color: #f4f4f4;
    }

    body {
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .manage-users-form2 .form-buttons button {
        margin-right: 2px;
        padding: 12px 16px;
        font-size: 1.5em;
    }
}

/* admin orders-------------------------------------------------- */

.manage-users-form3 {
    grid-column: span 1;
    background: #e0e5ec;
    padding: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-height: 450px;
    min-height: 350px;
    overflow-y: auto;
}

.manage-users-form3 h2 {
    margin-bottom: 10px;
    font-size: 1.4em;
    color: #333;
}

.manage-users-form3 .form-group {
    margin-bottom: 10px;
}

.manage-users-form3 label {
    display: block;
    font-weight: lighter;
    margin-bottom: 5px;
    color: #333;
}

.manage-users-form3 input,
.manage-users-form3 select {
    width: 70%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #333;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 6px #c8ccd1, inset -4px -4px 6px #f0f5fa;
    transition: all 0.3s ease;
}

/* Focus effect */
.manage-users-form3 input:focus,
.manage-users-form3 select:focus {
    outline: none;
    background: #e0e5ec;
    box-shadow: inset 4px 4px 6px #c8ccd1, inset -4px -4px 6px #f0f5fa;
}

/* Hover effect */
.manage-users-form3 input:hover,
.manage-users-form3 select:hover {
    background: #e0e5ec;
    box-shadow: inset 4px 4px 6px #c8ccd1, inset -4px -4px 6px #f0f5fa;/
}


.manage-users-form3 select#status {
    width: 50%;
}

.manage-users-form3 .form-buttons button {
    margin-right: 2px;
    padding: 12px 16px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;

}

.manage-users-form3 .form-buttons button:hover {
    background-color: #0056b3;
}

.manage-users-table3 {
    grid-column: span 2;
    background: #e0e5ec;
    padding: 0px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    width: 85%;
    max-height: 400px;
    min-height: 400px;
    overflow-x: auto;
    overflow-y: auto;
}

.manage-users-table3 th {
    background-color: #f4f4f4;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    /* Prevent text wrapping in header */
}

.manage-users-table3 table {
    width: 100%;
    border-collapse: collapse;
    max-height: 450px;
}

.manage-users-table3 th,
.manage-users-table3 td {
    padding: 3px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    border: none;
    white-space: nowrap;
    /* Prevent text wrapping in table cells */
}

.manage-users-table3 tr:hover {
    background: linear-gradient(135deg, #b091b6, #7e5a9b);
    transform: scale(1.01);
    /* Slightly enlarges the row for better visibility */
    transition: all 0.2s ease-in-out;
    /* Smooth transition effect */
}



@media (min-width: 768px) and (max-width: 1024px) and (max-width: 820px) {
    .manage-users-form3 select#status {
        width: 50%;
        max-width: 100px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (max-width: 820px) and (max-width: 1366px) {
    .manage-users-form3 select#prodcat {
        width: 50%;
        max-width: 100px;
    }
}

@media (max-width: 1024px) and (max-width: 1366px) {
    .manage-users-form3 select#prodcat {
        width: 50%;
        max-width: 200px;
    }
}

@media (max-width: 1024px) and (max-width: 1366px) {
    .manage-users-form3 select#status {
        width: 50%;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .middle-section {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .manage-users-form3,
    .manage-users-table3 {
        grid-column: span 1;
        width: 97%;
        margin: -5px;
        gap: 2px;
    }

    .manage-users-form3 {
        max-height: 300px;
        min-height: 100px;
        overflow-y: auto;
        padding: 3px;
    }

    .manage-users-form3 select#status {
        width: 70%;
    }

    .manage-users-table3 {
        max-height: 210px;
        min-height: 370px;
        overflow-y: scroll;
        padding: 0px;
        border-collapse: collapse;
    }

    .manage-users-table3 td,
    .manage-users-table3 th {
        padding: 12px 8px;
        font-size: 14px;
        border: none;
    }

    .manage-users-table3 tr {
        border: none;
    }

    .manage-users-table3 th {
        background-color: #f4f4f4;
    }

    body {
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .manage-users-form3 .form-buttons button {
        margin-right: 2px;
        padding: 12px 16px;
        font-size: 1.5em;
    }
}