/* 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: 14px;
    cursor: pointer;
    border-radius: 5px;
    background: linear-gradient(145deg, #4b4b4b, #333333);
    color: white;
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.2), -4px -4px 6px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;

}


/* Optional: Add hover effect for a pressed look */
button:hover {
    background: linear-gradient(145deg, #333333, #4b4b4b);
    box-shadow: inset 4px 4px 6px rgba(0, 0, 0, 0.3), inset -4px -4px 6px rgba(255, 255, 255, 0.1);

}

/* Optional: Add focus style */
button:focus {
    outline: none;
}


/*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;
        font-size: 12px;
    }

    .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;
}

.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));
    border-radius: 50px 0px 0px 50px;
    color: #ffffff;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2), -3px -3px 6px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* 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;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    background: linear-gradient(145deg, #ff4d4d, #ff1a1a);
    transform: translateY(2px);
    transition: all 0.2s ease-in-out;
}

.notif-badge:hover {
    transform: translateY(1px) scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25), 0 6px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .notif-badge {
        top: 10px;
        left: 10px;
        font-size: 14px !important;
        width: 15px;
        height: 15px;
    }
}


.bottom-menu {
    display: none;
}

.hamburger-menu {
    cursor: pointer;
    margin-bottom: 20px;
    margin-left: 16px;
}

.hamburger-menu:hover {
    transform: scale(1.2);
}

.menu-icon {
    width: 10px;
    height: 10px;
}

.button-icon:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .sidebar {
        display: flex;
        width: 100%;
        height: 48px;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        left: 0;
        bottom: 0;
        padding: 6px 0;
        background-color: #1e1c31;
        z-index: 100;
    }

    /* Sidebar buttons (icons only in mobile) */
    .sidebar-button {
        flex: 1;
        justify-content: center;
        margin: 0px;
        padding: 8px 4px;
        border-radius: 0;
    }

    .sidebar-button span {
        display: none;
        /* hide text */
    }

    .button-icon {
        width: 18px;
        height: 18px;
        margin-right: 5px;
        transition: transform 0.3s ease;
    }

    /* Keep hamburger at right end */
    .hamburger-menu {
        order: 99;
        /* pushes it to the end */
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        background: #292742;
        padding: 8px;
        border-radius: 50%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
        z-index: 200;
        margin-right: 10px;
        margin-top: 15px;
    }

    .hamburger-menu .menu-icon {
        width: 24px;
        height: 24px;
    }

    /* Bottom slide-up menu */
    .bottom-menu {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100%;
        background-color: #1e1c31;
        display: flex;
        flex-direction: column;
        transition: bottom 0.3s ease;
        z-index: 150;
        padding: 10px 0;
    }

    .bottom-menu.show {
        bottom: 60px;

    }

    .bottom-menu .menu-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 20px;
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        cursor: pointer;
        font-size: 12px;
    }

    .bottom-menu .menu-item img {
        width: 24Px;
        height: 24px;
    }

    .bottom-menu .menu-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .sidebar-button.active {
        border-radius: 50px;
        padding: 5px 5px;
    }

}

/* Middle Section Styling------------------------------------------- */
.middle-section {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 12px;
    background-color: #1e1c31;
    justify-items: center;
    background-size: cover;
    overflow-x: hidden;
    /* keep */
}

.middle-section>* {
    max-width: 100%;
    /* prevent children from overflowing */
}


.dashboard {
    padding: 12px;
    background: #1e1c31;
    width: 100%;
    overflow-x: hidden;
}


/* Row 1 */
.top-cards {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
    width: 100%;
}

.card {
    flex: 1;
    background: #e7e7e7;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border-radius: 0px;
    display: flex;
    align-items: center;

}

.user-card {
    display: flex;
    align-items: center;
    gap: 18px;

}

.sales-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
}

.stock-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
}

.sales-card-content,
.stock-card-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.sales-card #date {
    margin-bottom: 2px;
    font-size: 14px;
}

.sales-card h3,
.stock-card h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.2;
}

.sales-card .amount,
.stock-card .amount {
    margin-top: 2px;
    font-size: 20px;
}

.user-icon {
    width: 35px;
    height: 35px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-details h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.user-details p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.subscription-bar {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* center everything */
    min-width: 100px;
}

.sub-text {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 8px;
    color:  green;
    text-align: center;
}

.circle-container {
    --size: 80px; /* circle size */
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: conic-gradient(
        var(--progress-color) calc(var(--percent) * 1%), 
        #ddd 0
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circle-inner {
    width: 80%;
    height: 80%;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    color: #333;
    font-weight: bold;
    line-height: 1.2;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .subscription-bar {
        min-width: 80px; /* reduce overall container */
    }

    .circle-container {
        --size: 60px; /* smaller circle */
    }

    .circle-inner {
        width: 85%;
        height: 85%;
        font-size: 11px; /* smaller text inside */
    }

    .sub-text {
        font-size: 10px; /* reduce label size */
    }
}


.amount {
    font-weight: bold;
    color: green;
}

.totals-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 15px 0;
    padding: 10px 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
    /* makes it stack nicely on small screens */
}

/* .total-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 19px;
    color: #333;
} */

.total-item .label {
    font-weight: 600;
}

.total-item .amount {
    font-weight: bold;
    font-size: 19px;
    color: green;
}

@media (max-width: 768px) {
    .totals-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
        padding: 12px;
    }

    .total-item {
        font-size: 14px;
    }

    .total-item .amount {
        font-size: 14px;
    }

    .total-item .label {
        font-weight: 400;
    }
}

/* Row 2 */
.menu-row {
    display: flex;
    margin: 12px 0;
    background: #e7e7e7;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border-radius: 0px;
}

.menu-item {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    border-right: 1px solid #858585;
    text-decoration: none;
    color: #1d7200;
    font-weight: bold;
}

.menu-item:last-child {
    border-right: none;
}

.menu-item h3 {
    font-size: 15px;
    margin-bottom: 2px;
}

.menu-icon {
    width: 35px;
    height: 35px;
}

/* Row 3 */
.bottom-row {
    display: flex;
    gap: 15px;
    width: 100%;
    /* overflow-x: auto; */
}

.stats-card {
    flex: 1;
    background: #e7e7e7;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border-radius: 0px;
}

.stats-card h3 {
    font-size: 25px;
    margin-bottom: 5px;
}

.stats-card h2 {
    font-size: 15px;
    margin-bottom: 10px;
}

.search-box {
    width: 30%;
    padding: 6px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 0px;
}

.bar-graph {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 150px;
    margin-top: 10px;
}

.bar {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.bar-fill {

    border-radius: 3px 3px 0 0;
    width: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bar span {
    font-size: 18px;
    margin-top: 0px;
}

/* Table */
.stats-table {
    flex: 1;
    background: #e7e7e7;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    border-radius: 0px;
    overflow: auto;
    max-height: 300px;
}

.stats-table table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    border-bottom: 1px solid #ddd;
    padding: 6px;
    text-align: center;
    font-size: 19px;
}

.stats-table th {
    background-color: #eaeaea;
}

#tableLabel {
    font-weight: bold;
    font-size: 16px;
}


.hidden {
    display: none;
}

.table-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 10px 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

#tableLabel {
    font-weight: 600;
    font-size: 18px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-nav button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.table-nav button:hover {
    background: #0056b3;
}

.table-nav button:disabled {
    background: #ccc;
    cursor: not-allowed;
}


hr {
    margin: 8px 0;
    border: 0;
    border-top: 1px solid #ddd;
}

@media (max-width: 768px) {

    /* Top cards stacked */
    .top-cards {
        flex-direction: column;
        gap: 5px;
    }

    /* Menu row: scroll instead of squish */
    .menu-row {
        gap: 5px;
        padding: 6px;
        justify-content: flex-end;
    }

    .menu-item {
        padding: 6px;
    }

    .menu-item h3 {
        font-size: 12px;
    }

    .menu-icon {
        width: 24px;
        height: 24px;
    }

    /* Align hamburger menu to the right */
    .hamburger-menu {
        margin-left: auto;
    }

    .bottom-row {
        flex-direction: column;
        gap: 6px;
        overflow-x: auto;
        /* allow horizontal scroll if needed */
    }

    .stats-card,
    .stats-table {
        width: 100%;
        min-width: 40px;
    }

    /* Table scroll */
    .stats-table {
        overflow-x: auto;
    }

    .stats-table table {
        width: 100%;
        min-width: 40px;
    }

    .stats-table th,
    .stats-table td {
        padding: 6px;
        font-size: 16px;
    }

    /* Reduce font size in stats-card */
    .stats-card h3 {
        font-size: 18px;
    }

    .stats-card .amount {
        font-size: 18px;
    }



    .switch-table {
        width: 100%;
        border-collapse: collapse;
        margin: 10px 0;
    }

    .switch-table th,
    .switch-table td {
        border: 1px solid #ccc;
        padding: 8px;
        text-align: center;
    }



    /* Bar graph height smaller on mobile */
    .bar-graph {
        height: 120px;
        overflow-x: auto;
        /* scroll if bars overflow */
    }

    .bar-graph .bar {
        min-width: 40px;
        /* ensure bars don’t shrink too much */
    }

    .bar span {
        font-size: 12px;
    }

    /* Canvas scroll if needed */
    #salesChart {
        min-width: 40px;
        display: block;
        overflow-x: auto;
    }
}

/* Media  Responsiveness for dashboard------------------------------------------- */

/* Default Mobile Adjustments */
@media (max-width: 768px) {

    /* 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: 100px;
        margin-left: 8px;
    }


    /* Middle section should be displayed when sidebar is shown */
    .middle-section.show {
        display: flex;
    }

    /* Apply the reduced font size globally on the page */

    .top-nav,
    .sidebar-button,
    .sidebar-button span {
        font-size: 10px;
    }
}


/* 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;
}

.login-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 50%;
    box-shadow: 4px 4px 8px #c2c8d0, -4px -4px 8px #ffffff;
    background: #e0e5ec;
    padding: 10px;
}

.shop-name {
    display: block;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333333;
}


@media (max-width: 768px) {


    .shop-name {
        font-size: 20px;
    }


}

.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%;
    min-width: 500px;
    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;
        max-width: 90%;
        max-height: 90%;
        min-width: 220px;
    }

    .about-container h2 {
        font-size: 2em;
    }

    .about-container h5 {
        font-size: 1.7em;
    }

    .about-container p {
        font-size: 1.5em;
        /* 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;
        min-width: 220px;
    }

    .about-container h2 {
        font-size: 2em;
    }

    .about-container h5 {
        font-size: 1.7em;
    }

    .about-container p {
        font-size: 1.5em;
        /* Even smaller text for mobile */
    }
}

/* MANAGE USERS ------------------------------------------------------ */

.manage-users-form {
    grid-column: span 1;
    background: #2a2640;
    padding: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    width: 97%;
    max-height: 450px;
    min-height: 450px;
    overflow-y: auto;
}

.manage-users-form h2 {
    margin-bottom: 10px;
    font-size: 1em;
    color: #ffffff;
}

.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: 2px;
    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: 6px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-height: 470px;
    min-height: 470px;
    overflow-x: auto;
    overflow-y: auto;

}

.manage-users-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.manage-users-table th {
    background: #2a2640;
    color: white;
    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: 100%;
        margin: 2px;
        gap: 3px;
    }

    .manage-users-form {
        max-height: 340px;
        min-height: 340px;
        overflow-y: auto;
        padding: 3px;
    }

    .manage-users-form select#status {
        width: 70%;
    }

    .manage-users-table {
        max-height: 250px;
        min-height: 250px;
        overflow-y: scroll;
        padding: 0px;
        width: 100%;
        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;
    }

    body {
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .manage-users-form .form-buttons button {
        margin-right: 2px;
        padding: 10px 12px;
        font-size: 1.2em;
    }
}


/* START SALES ------------------------------------------------- */

.cart-message {
    color: gray;
    font-style: italic;
    font-size: 16px;
    /* Default font size */
}

.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: 500px;
    max-height: 500px;
    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: 2px;
    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: 320px;
    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: 250px;
    min-height: 250px;
    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: #1e1c31;

}

.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) {

    .mobile-tabs {
        display: flex;
        gap: 10px;

    }

    .mobile-tabs button {
        flex: 1;
        background: #1e1c31;
        color: #fff;
        border: none;
        cursor: pointer;
        transition: background 0.4s ease;
    }

    .mobile-tabs button.active {
        background: #3a3a5c;
    }

    .middle-section,
    .left-section,
    .right-section,
    .table-container {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .middle-section {
        display: flex;
        flex-direction: column;
        padding-bottom: 8px;
        overflow-x: hidden;
    }


    .left-section,
    .right-section {
        margin: 0;
        padding: 10px;
        display: none;
        overflow-x: auto;
    }

    .right-section {
        overflow-y: auto;
    }

    .left-section.active,
    .right-section.active {
        display: block;
    }

    .left-section table tr,
    .right-section table tr {

        transition: all 0.2s ease-in-out;
    }

    #searchProduct {
        width: 300px;
        max-width: 100%;
        margin-top: -40px;
    }

    /* Number inputs */
    input[type="number"] {
        font-size: 16px;
        padding: 10px;
        width: 100%;
        box-sizing: border-box;
        border: 1px solid #999;
    }


    label {
        font-size: 16px;
        font-weight: bold;
    }

    .buttons button,
    .mobile-tabs button {
        font-size: 12px;
        padding: 10px 18px;
        margin-bottom: 2px;
    }

    .buttons button img,
    .mobile-tabs button img {
        width: 22px;
        height: 22px;
    }

    .cart-message {
        font-size: 14px;
    }

    .total-amount {
        font-size: 15px;
        font-weight: bold;
        text-align: center;
        margin-top: 0;
    }

    .total-amount span {
        font-size: 20px;
        font-weight: bold;
    }

    .amount-input input {
        font-size: 14px;
        padding: 12px;
        font-weight: bold;
        text-align: right;
        width: 50%;
        box-sizing: border-box;
    }

    .amount-input span {
        font-size: 18px;
        font-weight: bold;
    }
}


/* Hide mobile tabs on PC */
@media (min-width: 769px) {
    .mobile-tabs {
        display: none;
    }

    .left-section,
    .right-section {
        display: block;
        width: 48%;
        margin: 10px;
        float: left;
    }
}


/* 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 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------------------------------------------------------------------------------------------------ */

.form-groupProducts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.form-groupProducts {
    flex: 1 1 calc(50% - 6px);
    min-width: 120px;
}

.form-groupProducts input {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.search-fields-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.search-fields-container .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Align left and right */
.search-text {
    order: 1;
    /* left */
    width: 500px;
}

.search-date {
    order: 2;
    width: 50px;
}

.search-fields-container input {
    width: 90%;
    padding: 8px;
    font-size: 14px;
    box-sizing: border-box;
    gap: 1px;
    margin-bottom: -10px;
}

.search-fields-container label {
    font-size: 14px;
    margin-bottom: 3px;
    font-weight: bold;
}

#Order-table {
    width: 100%;
    display: block;
    max-height: 200px;
    min-height: 200px;
    overflow-y: auto;
    background: #e0e5ec;
}

#Order-table tr:nth-child(even),
#Order-table2 tr:nth-child(even) {
    background-color: #f9f9f9;
}

.Ordertable-container {
    margin-left: 20px;
}

.manage-users-form,
.manage-users-form3,
.manage-users-table,
.manage-users-table3 {
    min-height: 520px;
    box-sizing: border-box;
    margin-left: 5px;
}


#Order-table th {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    color: rgb(20, 20, 20);
    z-index: 1;
    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);
    transition: all 0.2s ease-in-out;
}

.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 */
}

@media (max-width: 768px) {

    /* Tabs */
    .mobile-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: -5px;
        margin-top: -6px;
    }

    .mobile-tabs button {
        flex: 1;
        padding: 8px;
        font-size: 14px;
        background: #1e1c31;
        color: #fff;
        border: none;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .mobile-tabs button.active {
        background: #3a3a5c;
    }

    /* Sections: forms and tables */
    .manage-users-form,
    .manage-users-table {
        width: 100%;
        box-sizing: border-box;
        min-height: 520px;
        margin-left: 5px;
    }

    .manage-users-form3,
    .manage-users-table3 {
        margin: 5 auto;
        width: 100%;
        box-sizing: border-box;
    }


    #OrderForm,
    #Orders-table3 {
        margin: 0 auto;
        width: 100%;
    }

    /* Hide inactive section by default */
    .manage-users-form,
    .manage-users-form3,
    .manage-users-table,
    .manage-users-table3 {
        display: none;
    }

    .manage-users-form.active,
    .manage-users-form3.active,
    .manage-users-table.active,
    .manage-users-table3.active {
        display: block;
    }

    /* Table styles */
    .table-container {
        overflow-x: auto;
        overflow-y: auto;
        border: 1px solid #ccc;
        margin-bottom: 12px;
    }

    /* .table-container table { */
    /* width: 100%; */
    /* border-collapse: collapse; */
    /* min-width: 500px; */
    /* min-height: 400px; */
    /* } */

    .table-container thead {
        position: sticky;
        top: 0;
        background: #f8f8f8;
        z-index: 10;
    }

    .table-container th,
    .table-container td {
        padding: 12px;
        font-size: 16px;
        text-align: left;
        white-space: nowrap;
        margin: 8px;
    }


    .form-groupProducts-container {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .form-groupProducts {
        flex: 1 1 calc(50% - 6px);
        min-width: 120px;

    }

    .form-groupProducts input {
        width: 90%;
        padding: 8px;
        font-size: 14px;
        box-sizing: border-box;
    }

    .search-fields-container {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
    }

    .search-fields-container .form-group {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* Align left and right */
    .search-text {
        order: 1;
    }

    .search-date {
        order: 2;
    }

    .search-fields-container input {
        width: 90%;
        padding: 8px;
        font-size: 14px;
        box-sizing: border-box;
        gap: 1px;
        margin-bottom: -10px;
    }

    .search-fields-container label {
        font-size: 14px;
        margin-bottom: 3px;
        font-weight: bold;
    }

    /* Buttons in form */
    .form-buttons button {
        padding: 8px;
        font-size: 13px;
        margin-right: 4px;
        margin-bottom: 8px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }
}

/* =============================================================== */

.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);
}

/* admin orders-------------------------------------------------- */

.manage-users-form3 {
    grid-column: span 1;
    background: #2a2640;
    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;
    }
}

/* ========================subscription================================= */
#subscriptionOverlay {
    display: none;
    /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* semi-transparent black */
    z-index: 9999;
    text-align: center;
    color: white;
    font-family: Arial, sans-serif;
}

#subscriptionOverlay .overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
}

.phone-numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.phone-number {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    color: #2575fc;
    font-weight: 600;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.2);
    border: 2px solid #2575fc;
}

.phone-number:hover {
    background: #2575fc;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 117, 252, 0.4);
}

.phone-number i {
    margin-right: 10px;
    font-size: 1.4rem;
}

/* Popup styles */
#numPadModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.numPadContent {
    background: #1e1c31;
    margin: 10% auto;
    padding: 20px;
    border-radius: 12px;
    width: 250px;
    text-align: center;
}

.num-display {
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 20px;
    margin-bottom: 10px;
    min-height: 30px;
}

.num-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.num-grid button {
    padding: 12px;
    font-size: 18px;
    border: none;
    border-radius: 6px;
    background: #202020;
    cursor: pointer;
}

.num-grid button:hover {
    background: #1e1c31;
}