/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #000000;
    text-align: center;
    padding: 5%;
    background-color: #ffffff;
}

/* Header Styles */
h1 {
    margin-top: 0px; /* Reduce space above header */
    margin-bottom: 5px; /* Reduce space below header */
    font-size: 24px; /* Optional: Adjust font size */
}

/* Link Styles */
a, .back-link {
    color: #000000;
    text-decoration: underline;
    font-weight: bold;
}

a:hover, .back-link:hover {
    text-decoration: none;
    color: #333333;
}

/* Locker Container and Button Styles for index.html and for the pop up in outstanding orders on the dashboard */
.locker-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Arrange in 3 columns */
    gap: 10px; /* Space between buttons */
    padding: 10px 0; /* Add some separation from the header */
}

.locker-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px; /* Fixed width */
    height: 40px; /* Fixed height */
    padding: 0; /* Remove extra padding */
    margin: 5px; /* Consistent spacing */
    background-color: #000000; /* Black button background */
    color: #ffffff; /* White text */
    border-radius: 5px; /* Rounded corners */
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}


.locker-button:hover {
    background-color: #333333; /* Dark gray hover effect */
}

.locker-button:active {
    background-color: #444444; /* Slightly lighter black when clicked */
}

/* Tab Styles */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
    padding: 10px 0;
}

.tab {
    padding: 10px;
    cursor: pointer;
    font-weight: normal;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    color: #000000;
}

.tab.active {
    font-weight: bold;
    background-color: #000000;
    color: #ffffff;
    border-bottom: 2px solid #000000;
}

.tab:hover {
    background-color: #4b4a4a;
}

/* Input Styles */
.input-container {
    display: none;
    margin-bottom: 20px;
}

.input-container.active {
    display: block;
}

input, textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 5px 0;
    font-size: 1em;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Textarea Styles */
textarea {
    resize: vertical; /* Allow vertical resizing but prevent horizontal */
}

/* Button Styles */
button {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 1em;
    background-color: #000000;
    color: #ffffff;
    border: none;
    cursor: pointer;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-bottom: 15px;
}

button:hover {
    background-color: #333333;
}

button:last-of-type {
    margin-bottom: 0;
}

/* Order List Styles */
ul#orders-list {
    list-style: none;
    padding: 0;
}

ul#orders-list li {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center all items (checkbox + text) */
    gap: 5px; /* Add spacing between lines */
    margin-bottom: 15px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    text-align: center; /* Center-align text */
}

ul#orders-list input[type="checkbox"] {
    align-self: center; /* Center the checkbox horizontally */
    margin-bottom: 10px; /* Add space below the checkbox */
    width: 1.5em; /* Adjust size for visibility */
    height: 1.5em;
}

ul#orders-list label {
    display: block; /* Ensure the text spans the full width */
    font-size: 16px; /* Adjust text size for readability */
    margin: 0;
    text-align: center; /* Center the label text */
}

/* Line Items List Styles */
ul#line-items-list {
    list-style: none;
    padding: 0;
    margin-top: 10px; /* Space above the list */
}

ul#line-items-list li {
    margin-bottom: 5px; /* Space between line items */
    text-align: left; /* Align items to the left for better readability */
}

/* Summary Section Styles */
#order-summary p {
    margin: 10px 0;
    font-size: 1.1em;
    font-weight: bold;
}

/* Hidden Container */
.hidden {
    display: none;
}

.logo {
    width: 75px;
    height: 75px;
}


/*below code covers styling for the dashboard page */
        /* Locker Dashboard Grid */
        .locker-grid {
            display: grid;
            grid-template-rows: repeat(3, 1fr); /* 3 rows */
            grid-auto-flow: column; /* Force grid to fill columns top-to-bottom */
            gap: 5px; /* Space between lockers */
            max-width: 700px; /* Limit the grid width */
            margin: 0 auto; /* Center the grid horizontally */
            padding: 5px 0; /* Add spacing around the grid */
            align-items: start; /* Align cells to the top */
        }
                
        /* Locker Cell Styles */
        .locker {
            display: block; /* Default block layout for top alignment */
            border: 2px solid #ccc; /* Add border for clarity */
            border-radius: 5px; /* Rounded corners */
            padding: 5px; /* Add padding for spacing */
            text-align: center; /* Center text horizontally */
            font-size: 14px; /* Set default font size */
            height: 100%; /* Ensure cells are consistent in height */
            box-sizing: border-box; /* Include padding in height calculation */
        }

        /* Header for Locker */
        .locker h3 {
            margin-bottom: 0px; /* Space between locker header and content */
            font-size: 18px; /* Larger font for locker number */
            font-weight: bold;
        }
        /* Color coding for sharpening statuses */
        .ready-for-pickup {
            background-color: #f5f5f5 !important; /* Light gray */
        }

        .not-started {
            background-color: #fffbe5 !important; /* Light yellow */
        }

        /* Order Details */
        .order-details {
            text-align: center; /* Center text horizontally */
            margin-bottom: 5px; /* Add space between multiple orders */
            font-size: 14px; /* Adjust font size for readability */
        }
        /* Order Summary Styles */
        .order-summary {
            cursor: pointer;
            padding: 5px;
            margin-bottom: 5px;
            background-color: #f9f9f9;
            border: 1px solid #ddd;
            border-radius: 3px;
        }

        .order-summary:hover {
            background-color: #f0f0f0;
        }

        /* Pop-Up Styles */
        .popup {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
            z-index: 1000; /* Ensure it appears above other elements */
        }

        .popup-content {
            position: relative;
            background: white;
            padding: 20px;
            border-radius: 5px;
            text-align: left;
            max-width: 400px;
            margin: auto;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        }          

        .ready-for-pickup-btn {
            display: block;
            margin: 10px auto;
            padding: 10px 20px;
            background-color: #000; /* Black button */
            color: white; /* White text */
            font-size: 16px;
            font-weight: bold;
            border: none;
            border-radius: 5px; /* Rounded corners */
            cursor: pointer;
            text-align: center;
            transition: background-color 0.3s;
          }
          
          .ready-for-pickup-btn:hover {
            background-color: #333; /* Slightly lighter black */
          }
          

        /* This section handles styling for the list of orders on the dashboard below the locker grid */
        .order-list {
            margin-top: 20px; /* Spacing below the locker grid */
            padding: 10px;
            border: 1px solid #ddd; /* Optional border for clarity */
            border-radius: 5px;
            background-color: #f9f9f9;
            max-width: 700px; /* Match locker grid width */
            margin: 20px auto; /* Center the section horizontally */
        }
        

        .order-list h2 {
            font-size: 20px;
            margin-bottom: 10px;
            text-align: center; /* Center the header */
        }
        

        /* Individual Order Items */
        .order-item {
            display: block; /* Ensure each order gets full-width styling */
            margin-bottom: 10px;
            padding: 10px; /* Adjust padding for spacing */
            background-color: #fff; /* Maintain white background for contrast */
        }
        
        .order-main,
        .order-details {
            display: flex;
            flex-direction: column; /* Keep customer name and details stacked */
        }
        

        .order-main h3 {
            display: inline-block; /* Inline layout with the amount */
            margin: 0;
        }

        .order-details {
            display: inline-block; /* Treat entire content as inline */
            text-align: center; /* Center the content */
            font-size: 14px; /* Adjust font size if needed */
            color: #555; /* Match the overall theme */
        }
        
        .order-details span {
            display: inline-block; /* Ensure proper spacing */
            margin: 0 5px; /* Add spacing around the separator */
        }
        
        
        .order-container {
            display: flex; /* Flexbox for alignment */
            justify-content: flex-start; /* Align text group to the left */
            align-items: center; /* Vertically align text and button */
            gap: 10px; /* Add space between the text and the button */
            width: 100%; /* Use full width of the container */
            padding: 10px; /* Add vertical padding */
            background-color: #fff; /* White background for contrast */
        }
        
        .order-main {
            flex-grow: 1; /* Take up all available space except for the button */
            text-align: center; /* Center the text within its section */
        }
        
        .assign-locker-btn {
            max-width: 90px; /* Keep the button compact */
            flex-shrink: 0; /* Prevent the button from shrinking */
            padding: 5px 10px; /* Compact padding */
            font-size: 14px; /* Consistent size */
            font-weight: bold; /* Bold text */
            color: #fff; /* White text */
            background-color: #000; /* Black button */
            border: none;
            border-radius: 5px; /* Rounded corners */
            cursor: pointer; /* Pointer cursor on hover */
            text-align: center; /* Center the button text */
            transition: background-color 0.3s; /* Smooth hover effect */
        }
        
        .assign-locker-btn:hover {
            background-color: #333; /* Slightly lighter black on hover */
        }
        