/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}


.logo2 a {
    color: #ffffff;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
}

.logo2 .green {
    color: green;
}
.navbar {
    background-color: #333;
    overflow: hidden;
    width: 100%; /* Ensures navbar does not exceed screen width */
    max-width: 100%; /* Prevents it from going beyond 100% */
    margin: 0 auto; /* Centers the navbar if there's extra space */
    box-sizing: border-box; /* Includes padding and border in total width */
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 5px;
    width: 100%; /* Ensure the container fills the navbar width */
    max-width: 100%; /* Optional: Set a max-width for better layout on large screens */
    margin: 0 auto; /* Centers the content inside the navbar */
}

.nav-links {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin-left: 5px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 5px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
    white-space: wrap; /* Prevents text from wrapping */
	 font-size: 18px;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: #00FF00;
    color: #333;
    border-radius: 4px;
}

.menu-icon {
    display: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide nav links by default on small screens */
        flex-direction: column;
        width: 100%; /* Ensure it fills the navbar width */
    }

    .nav-links li {
        margin-left: 0; /* Reset margin for smaller screens */
    }

    .nav-links a {
        padding: 10px 5px;
    }

    .menu-icon {
        display: block; /* Show menu icon on small screens */
    }

    .nav-links.active {
        display: flex; /* Show nav links when active */
        flex-direction: column;
    }
}


.menu-icon {
    display: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

/* Content Section */
.content-section {
    padding: 20px;
}

.hidden {
    display: none;
}

/* Password Prompt */
.password-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #f5f5f5;
}

.password-prompt input {
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
}

.password-prompt button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.password-prompt button:hover {
    background-color: #00FF00;
    color: #333;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea,
.form-group checkbox{
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

/* Buttons */
button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #00FF00;
    color: #333;
}

/* Footer Link */
#admin-link {
    position: fixed;
    bottom: 0;
    right: 10px;
    z-index: 1000;
    text-decoration: none;
    font-size: 14px;
    color: #000;
}

#ordersContainer {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 8px;
	margin0-top: 100px;
}

.tableOrders{
	padding: 15px;
	border: 1px solid #ddd;
	background-color: #f9f9f9;
	border-radius: 8px
}
.tableOrders h2 {
	margin: 0 0 10px;
	font-size: 1.2em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-links li {
        margin-left: 0;
    }

    .nav-links a {
        padding: 10px 10px;
    }

    .menu-icon {
        display: block;
    }
}

.nav-links.active {
    display: flex;
}

/* --- Manage Menus Section --- */
#manage-menus {
    width: 100%;
    padding: 20px;
}

#manage-menus h2 {
    text-align: left;
    font-size: 24px;
}

/* Menu List */
#manage-menus #menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Header Row (Hidden on Small Screens) */
#manage-menus .header-row {
    display: grid;
    grid-template-columns: 0.5fr 0.5fr 2fr 3fr 1fr 1fr 1fr;
    font-weight: bold;
    background-color: #f0f0f0;
    border-bottom: 2px solid #333;
    text-align: left;
    padding: 10px 0;
}

/* Menu Item Row */
#manage-menus .menu-item {
    display: grid;
    grid-template-columns: 0.5fr 0.5fr 1.5fr 3fr 0.75fr 0.75fr 0.5fr;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

/* Menu Headers */
#manage-menus .menu-header {
    padding: 0 10px;
    text-align: left;
}

/* Alignments */
#manage-menus .text-container {
    display: flex;
    align-items: center;
}

/* Button Styling */
#manage-menus .delete-button,
#manage-menus .save-button {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    text-align: center;
}

#manage-menus .delete-button:hover,
#manage-menus .save-button:hover {
    background-color: #c0392b;
}

/* Checkbox Styling */
#manage-menus input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0 auto;
}

/* Input Fields */
#manage-menus input[type="text"],
#manage-menus input[type="time"] {
    width: 100%;
    padding: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Add New Menu Styling */
#manage-menus .menu-item span[style*="cursor: pointer"] {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin-right: 10px;
}

#manage-menus .menu-item .save-button {
    display: none;
    background-color: #2ecc71;
}

#manage-menus .menu-item .save-button:hover {
    background-color: #27ae60;
}

/* --- Manage Menus Days Container --- */
#manage-menus .days-container,
#manage-menus .new-days-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

#manage-menus .days-container label,
#manage-menus .new-days-container label {
    display: flex;
	gap: 3px;
    align-items: center;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

#manage-menus .days-container label input[type="checkbox"],
#manage-menus .new-days-container label input[type="checkbox"] {
    margin-right: 5px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Responsive Styling for Small Screens */
@media (max-width: 768px) {
 #manage-menus .menu-item {
        display: flex;
        flex-wrap: wrap;
        padding: 10px 0;
        align-items: center; /* Align items vertically */
    }

    /* Menu Name, Active, and Edit checkboxes on the same line */
    #manage-menus .text-container {
        flex: 2 1 60%; /* Allocate more space for the menu name */
        margin-right: 5px; /* Space between menu name and checkboxes */
        text-align: left; /* Align to the left */
        display: flex;
        align-items: center; /* Center the content vertically */
    }

    /* Add labels for active and edit checkboxes */
    #manage-menus .menu-item input.active-checkbox::before,
    #manage-menus .menu-item input.edit-checkbox::before {
        content: attr(data-label); /* Use the data-label attribute for content */
        display: inline-block;
        margin-right: 100px;
        font-weight: bold;
        font-size: 12px;
    }

    /* Ensure labels appear only on small screens */
    #manage-menus .menu-item input.active-checkbox::before,
    #manage-menus .menu-item input.edit-checkbox::before {
        display: inline-flex; /* Ensure the label is shown on small screens */
    }

    /* Active and Edit checkboxes */
    #manage-menus .menu-item > input[type="checkbox"] {
        flex: 0 1 90px; /* Allow checkboxes to adjust without wrapping */
        margin-right: 5px; /* Add space between checkboxes */
        display: inline-flex;
    }

    /* Days container - ensure it doesn't spread out too much */
    #manage-menus .days-container {
        flex: 1 1 100%; /* Full width */
        display: flex;
        justify-content: flex-start; /* Align days to the left */
        flex-wrap: wrap;
        gap: 5px; /* Adjust the space between labels */
        margin-bottom: 5px;
    }

    #manage-menus .days-container label {
        flex: 0 1 auto; /* Adjust to prevent excessive space allocation */
        margin-bottom: 0;
        display: flex;
        align-items: center; /* Center-align label and input */
        font-size: 12px;
        white-space: nowrap; /* Ensure the labels stay on one line */
        margin-right: 3px; /* Reduce space between each day label */
    }

    /* Add a smaller space between the label text and checkbox */
    #manage-menus .days-container label input[type="checkbox"] {
        margin-left: 2px; /* Slight space between the label text and checkbox */
        cursor: pointer;
    }

    /* Start and End time inputs on the same line */
    #manage-menus input[type="time"] {
        flex: 1 1 45%; /* Adjust to fit two per line */
        margin-bottom: 5px;
    }

    /* Delete button on its own line */
    #manage-menus .delete-button {
        flex: 1 1 100%; /* Full width */
        margin-top: 5px;
        text-align: center;
    }

    /* Hide headers on small screens */
    #manage-menus .header-row {
        display: none;
    }
}

/* General Styling for Manage Servers Section */
#manage-servers {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

#manage-servers h2 {
    text-align: left;
    font-size: 24px;
}

/* Server List */
#manage-servers #server-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Header Row Styling */
#manage-servers .server-item.header {
    display: flex;
    justify-content: space-between;
    background-color: #f0f0f0;
    font-weight: bold;
    padding: 10px;
}

#manage-servers .header-text {
    flex: 1;
    text-align: left;
    padding: 0 10px;
}

/* Server Item Styling */
#manage-servers .server-item {
    display: flex;
    justify-content: space-between;
    align-items: left;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

#manage-servers .server-item span {
    flex: 1;
    text-align: left;
    padding: 0 10px;
}

#manage-servers .server-item input,
#manage-servers .server-item button {
    flex: 1;
    margin: 0 5px;
    padding: 5px;
}

/* Color Indicator */
#manage-servers .server-item span[style*="background-color"] {
    flex: 0 0 25%;
    margin-right: 5px;
}

.menu-header-item.header,
.menu-header-item {
    display: grid;
    grid-template-columns: 50px 1fr 1.5fr 1fr 1fr 1fr 1fr 50px; /* Adjusted column widths */
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    gap: 10px; /* Gap between grid items */
}

.menu-header-item.header {
    background-color: #f0f0f0;
    font-weight: bold;
    padding: 10px;
}
/* Style for the days container */
.menu-header-item .days-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* One column for each day */
    gap: 8px;
    width: 100%; /* Full width */
}

.menu-header-item .days-container .day {
    display: flex;
    flex-direction: column; /* Label on top, checkbox below */
    align-items: center;
}

#menu-header-list {
    display: grid;
    grid-template-columns: 1fr; /* Single column for rows */
}


/* Responsive Styling for Small Screens */
@media (max-width: 768px) {
    .menu-header-item {
        display: flex;
        flex-wrap: wrap;
        padding: 10px 0;
        align-items: center; /* Align items vertically */
    }

    /* Active checkbox and Menu Header Name */
    .menu-header-item > input[type="checkbox"],
    .menu-header-item .text-container {
        flex: 1 1 48%; /* Take 48% of the row width */
        margin-bottom: 5px; /* Space between rows */
    }

    .menu-header-item .text-container {
        display: flex;
        align-items: center;
		
    }

    /* Days container */
.menu-header-item .days-container {
    flex: 1 1 100%; /* Full width */
    display: flex;
    justify-content: flex-start; /* Align days to the left */
    flex-wrap: wrap;
    gap: 5px; /* Space between each day */
    margin-bottom: 5px;
}

.menu-header-item .days-container .day {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 12px;
    width: 12%; /* Adjust width for even distribution */
}

.menu-header-item .days-container .day label {
    margin-right: 4px; /* Add space between the label and the checkbox */
}

    /* Submenu and Printer dropdowns */
    .menu-header-item select.submenu-select,
    .menu-header-item select.printer-select {
        flex: 1 1 48%; /* Half of the row width */
        margin-bottom: 5px; /* Space between dropdowns */
    }

    /* Color button, Delete button, and Sort icons */
    .menu-header-item span[style*="background-color"],
    .menu-header-item .delete-button,
    .menu-header-item .sort-order-container {
        flex: 1 1 30%; /* Adjust width for even distribution */
        margin-bottom: 5px; /* Space between elements */
        text-align: center;
    }

    .menu-header-item .sort-order-container {
        display: flex;
        justify-content: space-between;
        width: 20%; /* Full width */
    }

    /* Hide header row on small screens */
    .menu-header-item.header {
        display: none;
    }
}

/* Normal Screen Styles */
.option-group-item.header,
.option-group-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Columns for Name, Required, Actions */
    align-items: center; /* Center-align vertically */
    justify-items: start; /* Align items to the left */
    padding: 10px;
    border-bottom: 1px solid #ddd;
    gap: 10px;
}

.option-group-item.header {
    font-weight: bold;
    background-color: #f0f0f0;
    text-align: left; /* Align text to the left */
}

.option-group-item .text-container {
    display: flex;
    align-items: center; /* Center-align vertically */
    justify-content: flex-start;
}

.option-group-item .group-name {
    margin-right: 5px;
    cursor: pointer;
    text-align: left; /* Align text to the left */
}

.option-group-item input[type="text"] {
    width: 100%; /* Full width */
    text-align: left; /* Align text to the left */
}

.option-group-item input.group-required {
    margin: 0 10px; /* Space around the checkbox */
}

.option-group-item .delete-button {
    padding: 5px 10px;
    cursor: pointer;
    background-color: #d9534f;
    color: #fff;
    border: none;
    border-radius: 3px;
    text-align: center; /* Center-align text inside the button */
}

/* Ensure the header columns are aligned with the content */
.option-group-item.header span,
.option-group-item span {
    text-align: left; /* Align text to the left */
}
/* Normal Screen Styles */
.option-name-item.header,
.option-name-item {
    display: grid;
    grid-template-columns: 3fr 3fr 1fr 1fr 1fr; /* Match columns for Option Group, Option Name, Price, Active, Actions */
    align-items: center; /* Center-align vertically */
    justify-items: start; /* Align items to the left */
    padding: 10px;
    border-bottom: 1px solid #ddd;
    gap: 10px;
    width: 100%; /* Ensure full width */
    box-sizing: border-box; /* Include padding and border in total width */
}

/* Header Styling */
.option-name-item.header {
    font-weight: bold;
    background-color: #f0f0f0;
    text-align: left; /* Align text to the left */
    width: 100%; /* Full width */
}

/* Header Labels */
.option-name-item.header span {
    text-align: left; /* Align text to the left */
    display: block; /* Ensure the span takes the space of its grid cell */
    width: 100%; /* Full width */
}

/* Content Rows */
.option-name-item .text-container {
    display: contents; /* Use 'contents' to align items with the grid */
}

.option-name-item .option-group,
.option-name-item .option-name,
.option-name-item .option-price,
.option-name-item .option-active,
.option-name-item .delete-button {
    text-align: left; /* Align text to the left */
    display: block;
    width: 100%; /* Full width for each grid cell */
}

/* Input Fields */
.option-name-item input[type="text"],
.option-name-item input[type="number"] {
    width: 100%; /* Full width */
    padding: 5px;
    box-sizing: border-box; /* Include padding in total width */
}

.option-name-item input.option-active {
    margin: 0 auto;
    display: block;
    justify-content: center;
}

/* Button Styling */
.option-name-item .delete-button {
    padding: 5px 10px;
    cursor: pointer;
    background-color: #d9534f;
    color: #fff;
    border: none;
    border-radius: 3px;
    text-align: center;
    width: 100%; /* Full button width */
}

/* Global container styling */
#option-name-list {
    width: 100%; /* Full width of the screen */
    margin: 0 auto; /* Center the list if necessary */
    padding: 0; /* Remove any extra padding */
}


/* General Styling for Menu Items */
.menu-item.header,
.menu-item {
    display: grid;
    grid-template-columns: 50px 1.5fr 2fr 2fr 0.5fr 50px 50px 1.5fr 50px 0.5fr 1.5fr 0.5fr 25px; /* Columns for each element */
    align-items: center; /* Center-align items vertically */
    padding: 10px;
    border-bottom: 1px solid #ddd;
    gap: 10px;
    width: 100%; /* Full width */
    box-sizing: border-box; /* Include padding and border in total width */
}

/* Header Styling */
.menu-item.header {
    font-weight: bold;
    background-color: #f0f0f0;
    text-align: left; /* Align text to the left */
    width: 100%; /* Full width */
}

/* Header Labels */
.menu-item.header span {
    text-align: left; /* Align text to the left */
    display: block; /* Ensure the span takes the space of its grid cell */
    width: 100%; /* Full width */
}

/* Input and Checkbox Styling */
.menu-item input[type="text"],
.menu-item input[type="number"],
.menu-item textarea,
.menu-item select {
    width: 100%; /* Full width */
    padding: 5px;
    font-size: 14px;
    box-sizing: border-box; /* Include padding in total width */
}

.menu-item input[type="checkbox"] {
    margin: 0 auto;
    display: block;
    cursor: pointer;
}

/* Button Styling */
.menu-item .delete-button {
    padding: 5px 10px;
    background-color: #d9534f;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-align: center;
    width: 100%; /* Full width */
}

.menu-item .sort-order-container {
    display: flex;
    justify-content: space-between;
    width: 100%; /* Full width */
}

/* Dropdown Styling */
.menu-item select {
    width: 100%; /* Full width */
}

/* Text Span Styling */
.menu-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    
}

/* Allergen Select Styling */
.menu-item select[multiple] {
    height: 50px; /* Adjust the height for better visibility */
}

/* Adjustments for Item Descriptions */
.menu-item .item-description {
    text-align: left; /* Align text to the left */
    overflow: hidden;
    text-overflow: ellipsis;
    
}/* Responsive Styling for Small Screens */
@media (max-width: 768px) {
    .menu-item {
        display: grid;
        grid-template-columns: 50px 1fr 1fr 1fr 50px; /* Stack items vertically */
        gap: 10px;
        padding: 10px;
        border-bottom: 1px solid #ddd;
        width: 100%; /* Full width */
        box-sizing: border-box; /* Include padding and border */
    }

    /* Row 1: Active, Heading dropdown, Item name, and Description */
    .menu-item .item-active,
    .menu-item .item-heading,
    .menu-item .item-name,
    .menu-item .item-description {
        display: block;
        width: 100%; /* Full width */
        margin-bottom: 5px; /* Space between rows */
    }

    /* Row 2: Price, Veg & Vegan checkboxes, and Allergens */
    .menu-item .item-price,
    .menu-item .item-checkbox.vegetarian,
    .menu-item .item-checkbox.vegan,
    .menu-item select[multiple] {
        display: flex; /* Display as flex for alignment */
        align-items: center; /* Center vertically */
        width: 100%; /* Full width */
        margin-bottom: 5px; /* Space between elements */
    }

    .menu-item .item-checkbox.vegetarian::before,
    .menu-item .item-checkbox.vegan::before,
    .menu-item .item-checkbox.favourite::before {
        content: attr(data-label); /* Display the label from a data attribute */
        display: flex; /* Keep labels inline with the checkbox */
        margin-right: 8px; /* Add space between the label and checkbox */
        font-size: 14px; /* Adjust font size */
        font-weight: bold;
    }

    /* Row 3: Favourite checkbox, Count, and Options dropdown */
    .menu-item .item-checkbox.favourite,
    .menu-item .item-count,
    .menu-item .item-options {
        display: flex; /* Use flex to align items */
        align-items: center; /* Center vertically */
        width: 100%; /* Full width */
        margin-bottom: 5px; /* Space between elements */
    }

	/* Style for checkboxes with labels */
.menu-item .item-checkbox.vegetarian,
.menu-item .item-checkbox.vegan,
.menu-item .item-checkbox.favourite {
    display: flex; /* Ensure the label and checkbox align horizontally */
    align-items: center; /* Center-align vertically */
}

/* Labels for the checkboxes */
.menu-item .item-checkbox.vegetarian::before,
.menu-item .item-checkbox.vegan::before,
.menu-item .item-checkbox.favourite::before {
    content: attr(data-label); /* Display the label from a data attribute */
    display: inline; /* Ensure the label is inline */
    margin-right: 8px; /* Space between label and checkbox */
    font-size: 14px; /* Adjust font size */
    font-weight: bold;
}

/* Ensure the checkboxes remain inline */
.menu-item input[type="checkbox"] {
    display: inline-block; /* Inline to be on the same line as the label */
    margin: 0; /* Remove default margin */
    cursor: pointer;
}
    /* Row 4: Delete button and Sort buttons */
    .menu-item .delete-button,
    .menu-item .sort-order-container {
        display: block;
        width: 100%; /* Full width */
        margin-bottom: 5px; /* Space between elements */
        text-align: center; /* Center align buttons */
    }

    /* Ensure spans and input fields do not overflow */
    .menu-item span,
    .menu-item input[type="text"],
    .menu-item input[type="number"],
    .menu-item textarea,
    .menu-item select {
        font-size: 14px; /* Adjust font size */
        width: 100%; /* Full width */
        box-sizing: border-box; /* Include padding */
    }

    /* Center checkboxes */
    .menu-item input[type="checkbox"] {
        margin: 0; /* Remove default margin */
        display: inline-block;
        cursor: pointer;
    }

    /* Hide header row on small screens */
    .menu-item.header {
        display: none;
    }
}

/* Main container */
.center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

/* Logo Styling */
.logo {
    position: absolute;
    top: 20px;
    text-align: center;
}

/* Active Menu Styling */
#active-menu {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 10px 30px;
    text-align: center;
    text-decoration: none;
    display: none;
    font-size: 36px;
    cursor: pointer;
    border-radius: 12px;
    font-weight: bold;
 /*   margin-top: 80px; /* Space below logo */
}



#servesmart-logo {
    max-width: 200px;
    display: block;
    margin: 0 auto 10px;
}