body {
    font-family: 'Poppins', sans-serif;
    background: #28282B;
    color: #fff;
    padding: 10px;
}

header {
    display: flex;
    background: #033c3b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #B2AC88;
    padding: 10px;
}

footer {
    display: flex;
    background: #033c3b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #B2AC88;
    padding: 10px;
}

.footer-left,
.footer-right {
    padding: 10px;
}

.footer-left {
    width: 75%;
    text-align: left;
}

.footer-right {
    width: 25%;
    text-align: right;
}

header .brand {
    text-align: left;
    padding-left: 10px;
}

header .brand-description {
    font-size: 1.1rem;
    color: #ddd7d7;
    margin-top: 2px;
    margin-bottom: 5px;
    padding-left: 10px;
}

header .brand-hashtags {
    font-size: 1.1rem;
    color: #a99bf3;
    margin-top: 2px;
    margin-bottom: 5px;
    padding-left: 10px;
}

#brand-logo {
    width: 200px;
    /* or any size you prefer */
    height: auto;
    /* maintains the aspect ratio */
    padding: 0;
    margin: 0;
}

.product,
.order-table-wrapper {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.product {
    display: inline-block;
    width: 200px;
    margin: 5px;
    text-align: left;
    position: relative;
    padding-top: 30px;
    padding-bottom: 30px;
}

.product .product-name {
    font-size: 1rem;
    color: #242ae9;
    margin-top: 2px;
    margin-bottom: 5px;
}

.product .product-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
    margin-bottom: 5px;
}

.product .product-ingredients {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
    margin-bottom: 5px;
}

.product .product-price {
    font-size: 1rem;
    color: #242ae9;
    margin-top: 10px;
    margin-bottom: 10px;
}

.product img {
    max-height: 120px;
}

.type-logo {
    position: absolute;
    right: 10px;
    top: 10px;
    height: 30px;
    /* Adjust size as needed */
    width: 25px;
    /* Maintain aspect ratio */
}

button {
    background-color: #ded8cb;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    /*margin-top: 10px;*/
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button.add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button.add-to-cart i.fa-plus {
    color: black;
    margin: auto;
}

button.interested {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button.interested i.fa-heart {
    color: rgb(189, 79, 79);
    margin: auto;
}

button.remove-item i.fa-trash {
    color: black;
}

#interested-section h2,
#order-summary h2 {
    padding-top: 20px;
}

#interested-section ul {
    list-style: none;
    padding: 0;
}

#interested-section li {
    margin: 5px 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-right: 20px;
}

#interested-section li button {
    margin-left: 20px;
}

.customer-form input,
.customer-form button {
    width: 30%;
    padding: 8px;
    margin-top: 12px;
    border-radius: 4px;
}

.customer-form input.form-input,
.customer-form select.form-input {
    width: 50%;
    padding: 8px;
    margin-top: 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #28282B;
    color: #fff;
}

::placeholder {
    color: #fff;
    opacity: 1;
}

::-ms-input-placeholder {
    color: #fff;
}

.customer-form input.error,
.customer-form select.error {
    border: 2px solid red;
    background: #28282B;
}

.customer-form input[data-error]:hover::after {
    content: attr(data-error);
    color: #fff;
    position: absolute;
    background-color: red;
    padding: 4px 8px;
    border-radius: 4px;
    top: 100%;
    left: 0;
    white-space: nowrap;
    z-index: 10;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="select"] {
    border: 1px solid #ccc;
    background: #28282B;
    color: #fff;
}

#place-order-btn {
    width: auto;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    background-color: #dfa06b;
}

#place-order-btn:hover {
    background-color: #ad805b;
}

.separator {
    border-color: #e1e6e8;
    /* Light Grey Color for Separator */
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
}

.order-table-wrapper {
    overflow-x: auto;
    /* Ensures table is scrollable on small screens */
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px;
}

input[type=number] {
    width: 60px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    text-align: center;
}

button.remove-item {
    cursor: pointer;
    border: none;
    color: black;
}

.error-message {
    color: red;
    font-size: 16px;
    margin-top: 5px;
}

.increase-quantity,
.decrease-quantity {
    border: none;
    background-color: #ded8cb;
    color: black;
    padding: 5px 10px;
    /* Suitable for touch devices */
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.increase-quantity {
    margin-left: 5px;
    /* Give some spacing between the quantity number and increase button */
}

.decrease-quantity {
    margin-right: 5px;
    /* Give some spacing between decrease button and the quantity number */
}

#prepSummaryBtn {
    background-color: #dfa06b;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

#prepSummaryBtn:hover {
    background-color: #ad805b;
}

/* Orders Table Specific Styles - Minimal additions to existing CSS */
.orders-row {
    border-bottom: 1px solid #eee;
}

.orders-row:hover {
    background-color: #f8f9fa;
}

.orders-row:last-child {
    border-bottom: none;
}

.orders-customer-cell {
    font-weight: 600;
    color: #242ae9;
    padding: 12px 8px;
    vertical-align: top;
}

.orders-delivery-cell {
    font-size: 0.8rem;
    padding: 12px 8px;
    vertical-align: top;
}

.orders-items-cell {
    padding: 12px 8px;
    vertical-align: top;
    max-width: 250px;
}

.orders-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.orders-items-list li {
    padding: 2px 0;
    font-size: 0.8rem;
    color: #555;
}

.orders-amount-cell {
    font-weight: 700;
    color: #c1464c;
    text-align: right;
    padding: 12px 8px;
    vertical-align: top;
}

.orders-status-cell {
    text-align: center;
    padding: 12px 8px;
    vertical-align: top;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-cooking { background: #d1ecf1; color: #0c5460; }
.status-packed { background: #f8d7da; color: #721c24; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f5c6cb; color: #721c24; }

.orders-actions-cell {
    text-align: center;
    padding: 12px 8px;
    vertical-align: top;
}

.orders-action-buttons {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Reuse existing small-button class with color overrides */
.orders-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
}

.orders-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.orders-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bg-blue { background: #3498db; }
.bg-brown { background: #8b4513; }
.bg-green { background: #27ae60; }
.bg-red { background: #e74c3c; }

#ordersTable th {
    text-align: left;
}

#ordersTable td {
    text-align: left;
}

/* General table styles */
table {
    width: 100%;
    border-collapse: collapse;
    /* Ensures borders between cells are shared */
    table-layout: auto;
    /* Adjust columns based on content length */
    margin-top: 20px;
    background-color: #fff;
    /* Light background for the table */
    color: #333;
    /* Dark text color */
}

/* Header and cell styles */
th,
td {
    padding: 8px 12px;
    /* Consolidated padding */
    text-align: left;
    border-bottom: 1px solid #ddd;
    /* Adds a subtle line between rows */
    min-width: 50px;
    /* Minimum width for columns */
    max-width: 300px;
    /* Maximum width for columns */
    word-wrap: break-word;
    /* Wrap long words to the next line */
}

/* Header specific styles */
th {
    background-color: #8fbc8f;
    color: #fff;
    cursor: pointer;
}

/* Data cell specific styles */
td {
    color: #333;
    /* Dark text color for table data */
}

/* Sticky header styles */
thead th {
    position: sticky;
    top: 0;
    background-color: #8fbc8f;
    /* Keeps header background consistent when scrolling */
}

/* Footer styles */
tfoot {
    font-weight: bold;
    background-color: #f4f4f9;
    color: #333;
}

tfoot td {
    padding: 12px 12px;
}

form {
    margin-top: 20px;
}

.error {
    color: red;
}

/* Toggle icon styles */
.action-icons {
    cursor: pointer;
    margin-right: 10px;
    font-size: 1.2em;
    transition: transform 0.2s ease;
}

/* .action-icons:hover {
    transform: scale(1.2);
} */

/* Products table wrapper styling (similar to order-table-wrapper) */
.products-table-wrapper {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    max-height: 60vh;
    /* Adjust height as needed */
    overflow-y: auto;
    /* Enable vertical scrolling */
    overflow-x: auto;
    /* Enable horizontal scrolling if needed */
}

/* Keep the header row visible while scrolling */
.products-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.products-table-wrapper thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #8fbc8f;
    /* Match your existing header color */
}

/* Ensure the background color fills the header cells completely */
.products-table-wrapper th {
    background-clip: padding-box;
}

.product-toggle-active {
    color: #48c774;
    /* Green for active/available */
}

.product-toggle-inactive {
    color: #f14668;
    /* Red for inactive/unavailable */
}

th.product-sortable {
    position: relative;
    cursor: pointer;
}

th.product-sortable::after {
    content: "";
    position: absolute;
    right: 8px;
    color: rgba(255, 255, 255, 0.5);
}

th.product-sort-asc::after {
    content: "↑";
    color: white;
}

th.product-sort-desc::after {
    content: "↓";
    color: white;
}

th[data-sort-order]:not([data-sort-order=""]):before {
    content: attr(data-sort-order);
    position: absolute;
    left: 4px;
    top: 4px;
    background: rgba(255, 255, 255, 0.7);
    color: #333;
    font-size: 10px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    color: #333;
}

.product-filter-group {
    display: flex;
    align-items: center;
}

.product-filter-group label {
    margin-right: 8px;
    font-weight: bold;
}

.product-filter-group select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.product-btn-reset-filters {
    padding: 8px 16px;
    background-color: #dfa06b;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.product-btn-reset-filters:hover {
    background-color: #ad805b;
}

.product-error-message {
    color: #ff3860;
    font-size: 0.8rem;
    margin-top: 5px;
}

.product-error-field {
    border: 1px solid #ff3860 !important;
    background-color: #ffeef1;
}

.product-price-input {
    width: 100px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

#productAddProductBtn {
    background-color: #dfa06b;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

#productAddProductBtn:hover {
    background-color: #ad805b;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 10px;
}

.modal-content {
    background-color: #1f1f1f;
    margin: 2% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    color: #ffffff;
    border-radius: 10px;
}

.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content label {
    margin-top: 10px;
}

.modal-content input,
.modal-content select {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #ffffff;
}

.modal-content .separator {
    border: 0;
    height: 1px;
    background: #444;
    margin: 20px 0;
}

.modal-content .button-group {
    display: flex;
    justify-content: flex-start;
}

.modal-content .button-group button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.modal-content .button-group .save-btn {
    background-color: #dfa06b;
    color: #ffffff;
}

.modal-content .button-group .save-btn:hover {
    background-color: #ad805b;
}

.modal-content .button-group .cancel-btn {
    background-color: rgb(189, 79, 79);
    color: #ffffff;
}

.modal-content .button-group .cancel-btn:hover {
    background-color: rgb(150, 50, 50);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Table image styles */
.product-image-column {
    width: 80px;
    min-width: 80px;
}

.product-table-img-cell {
    padding: 5px !important;
    text-align: center;
    vertical-align: middle;
}

.product-table-img-wrapper {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    margin: 0 auto;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.product-table-img-wrapper:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.product-table-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-no-img-placeholder {
    width: 60px;
    height: 60px;
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #888;
    margin: 0 auto;
    border-radius: 4px;
}

/* Enlarged image modal */
.product-enlarged-image-modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product-enlarged-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: white;
    padding: 5px;
    border-radius: 5px;
}

.product-enlarged-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    pointer-events: none;
    /* Prevents download */
    display: block;
}

.product-enlarged-image-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.product-enlarged-image-close:hover {
    color: #f8f8f8;
    transform: scale(1.1);
}

.storeclosed-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    text-align: center;
}

.storeclosed-container img {
    max-width: 100%;
    height: auto;
    max-height: 50vh;
    /* Ensure the image doesn't exceed 50% of the viewport height */
    width: auto;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-top: 5px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #59d1a5;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Admin dashboard specific styles */
.admin-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 15px;
    width: 100%;
    max-width: 620px; 
    margin: 0 auto;
    margin-top: 20px;
    padding: 0 15px; 
    box-sizing: border-box;
    overflow: hidden; /* Prevent spillover */
}

.admin-tile {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 160px; 
    position: relative;
}

.admin-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Icon section */
.admin-tile i:first-child {
    font-size: 1.5rem;
    color: #dfa06b;
    margin-bottom: 8px;
    flex-shrink: 0;
}

/* H3 section */
.admin-tile h3 {
    font-size: 0.95rem;
    margin: 0 0 12px 0;
    color: #333;
    flex-shrink: 0;
}

/* Content section */
.admin-tile p {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.2;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Toggle container - specific layout */
.toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: auto; /* Push to bottom area */
}

.toggle-container p {
    margin: 0;
    font-size: 0.75rem;
    color: #666;
}

.store-status-toggle {
    font-size: 1.2rem;
    cursor: pointer;
}

#storeStatusToggle.fa-toggle-on {
    color: #8fbc8f !important;
    /* Force green for 'on' state */
}

#storeStatusToggle.fa-toggle-off {
    color: #cc0000 !important;
    /* Force red for 'off' state */
}

.admin-tile i.store-status-toggle {
    color: inherit;
    /* Override the general icon color */
}

.toggle-container i.store-status-toggle {
    color: #8fbc8f;
    /* Default color for 'on' state */
}

.toggle-container i.store-status-toggle.fa-toggle-off {
    color: #cc0000;
    /* Color for 'off' state */
}

#admin-dashboard .section-title {
    font-size: 1.5rem;
    text-align: center;
    margin: 1.5rem 0 3rem 0;
    color: #ccc;
    font-weight: 500;
}

/* Stock Management Styles */

#stockAddItemBtn {
    background-color: #dfa06b;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

#stockAddItemBtn:hover {
    background-color: #ad805b;
}

.stock-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    color: #333;
}

.stock-filter-group {
    display: flex;
    align-items: center;
}

.stock-filter-group label {
    margin-right: 8px;
    font-weight: bold;
}

.stock-filter-group select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.stock-btn-reset-filters {
    padding: 8px 16px;
    background-color: #dfa06b;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.stock-btn-reset-filters:hover {
    background-color: #ad805b;
}

.stock-error-message {
    color: #ff3860;
    font-size: 0.8rem;
    margin-top: 5px;
}

.stock-error-field {
    border: 1px solid #ff3860 !important;
    background-color: #ffeef1;
}

th.stock-sortable {
    position: relative;
    cursor: pointer;
}

th.stock-sortable::after {
    content: "";
    position: absolute;
    right: 8px;
    color: rgba(255, 255, 255, 0.5);
}

th.stock-sort-asc::after {
    content: "↑";
    color: white;
}

th.stock-sort-desc::after {
    content: "↓";
    color: white;
}

th[data-sort-order]:not([data-sort-order=""]):before {
    content: attr(data-sort-order);
    position: absolute;
    left: 4px;
    top: 4px;
    background: rgba(255, 255, 255, 0.7);
    color: #333;
    font-size: 10px;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#stockExpirationDate {
    background-color: #333;
    color: #fff;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
}

/* Make sure date picker arrow appears properly */
#stockExpirationDate::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Expiry date cell styling for consistent icon placement */
.expiry-date-cell {
    display: flex;
    align-items: center;
}

.expiry-date {
    min-width: 100px;
    /* Set a minimum width for date text */
}

.expiry-icon {
    width: 30px;
    /* Fixed width area for the icon */
    text-align: center;
}

/* Expiration warning styles */
@keyframes blink-warning {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.expiry-warning-soon {
    color: #ffaa00;
    /* Yellow warning triangle */
    /* animation: blink-warning 1.5s infinite; */
}

.expiry-warning-expired {
    color: #d92c2c;
    /* Red circle for expired */
    /* animation: blink-warning 1.5s infinite; */
}

/* Search input styling */
.search-container {
    position: relative;
    width: 250px;
    margin-left: auto;
    /* This pushes it to the right */
    order: 999;
    /* High order value ensures it appears at the end in flex containers */
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.search-input {
    width: 100%;
    padding: 8px 8px 8px 35px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    color: #333;
}

.search-input:focus {
    outline: none;
    border-color: #dfa06b;
    box-shadow: 0 0 5px rgba(223, 160, 107, 0.5);
}

/* Variations styling */

.variations-section {
    margin: 15px 0;
    padding: 15px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid #444;
}

.variations-section>label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #dfa06b;
}

/* Add some spacing between the variations container and the add button */
.variations-section .variations-container {
    margin-bottom: 15px;
}

.variations-container {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.variation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.variation-inputs {
    display: flex;
    flex: 1;
    gap: 10px;
}

.variation-type {
    flex: 1;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    margin-right: 10px;
}

.variation-name {
    flex: 2;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
}

.variation-name[readonly] {
    background-color: #444;
    opacity: 0.7;
}

.price-input-group {
    flex: 1;
    display: flex;
    align-items: center;
}

.currency-symbol {
    margin-right: 5px;
}

.variation-price {
    color: #242ae9;
}

.btn-outline {
    background: none;
    border: 1px solid #dfa06b;
    color: #dfa06b;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-outline:hover {
    background-color: rgba(223, 160, 107, 0.1);
}

.btn-icon {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
}

.btn-icon:hover {
    color: #ff6b6b;
}

.delete-variation {
    padding: 5px;
}

/* Product front-end variations styling */
.product-variations {
    margin-top: 10px;
}

.variation-selector {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #333;
    color: #fff;
    margin-bottom: 10px;
}

/* Variations view modal styling */
.variations-view-modal .modal-content {
    max-width: 90% !important;
    width: 550px !important; 
    padding: 20px !important;
}

.variations-view-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.variations-view-table th,
.variations-view-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.variations-view-table th {
    background-color: #f2f2f2;
    color: #333;
}

.variation-type-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.view-variations {
    cursor: pointer;
    color: #dfa06b;
    margin-right: 5px;
    font-size: 1.2em;
}

.view-variations:hover {
    color: #ad805b;
}

.has-variations {
    cursor: pointer;
}

.default-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: gold;
    font-size: 1.2em;
}

.default-badge:hover {
    color: #ffd700;
}

/* Style for type column with icon */
td .view-variations {
    margin-left: 5px;
    cursor: pointer;
    color: #dfa06b;
    font-size: 0.9em;
    vertical-align: middle;
}

/* Make sure the icons align properly */
td .fa-info-circle {
    vertical-align: middle;
}

.variation-link {
    color: #2f2cff;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.variation-link:hover {
    color: #d124c0;
    text-decoration: underline;
}

.has-variations {
    cursor: pointer;
}

.selection-instruction {
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #aaa;
}

/* VARIATION SELECTION MODAL STYLES */

.variation-selection-modal .modal-content {
    max-width: 90%;
    width: 600px; 
    padding: 20px;
}

/* Modal content is dark (default theme) */
.variation-selection-modal h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.variation-selection-modal .selection-instruction {
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #aaa;
}

/* Light table container */
.light-table-container {
    background: #f9f9f9;
    border-radius: 5px;
    padding: 10px;
    margin: 15px 0;
    overflow-x: auto;
    /* Allow horizontal scroll if needed */
}

/* Table structure */
.light-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background-color: white;
    color: #333;
}

/* Define column widths using colgroup */
.light-table .col-checkbox {
    width: 10%;
}

.light-table .col-name {
    width: 25%;
}

.light-table .col-type {
    width: 25%;
}

.light-table .col-price {
    width: 15%;
}

.light-table .col-quantity {
    width: 25%;
}

/* Header and cell styling */
.light-table th,
.light-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    text-overflow: ellipsis;
}

.light-table th {
    background-color: #f0f0f0;
    font-weight: 600;
    color: #555;
    position: sticky;
    top: 0;
}

.light-table th:first-child {
    text-align: center;
}

.light-table td:first-child {
    text-align: center;
}

/* Checkbox styling */
.light-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Row hover effect */
.light-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Quantity controls in table */
.quantity-controls {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.qty-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #e0e0e0;
    border: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

.qty-btn:hover {
    background-color: #d0d0d0;
}

/* Simplified quantity input */
.qty-input-simple {
    width: 40px; 
    height: 22px; 
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
    padding: 0 3px; 
    font-size: 13px; 
    box-shadow: none;
    appearance: none;
}

/* Improved hover/focus styles for better user experience */
.qty-input-simple:hover,
.qty-input-simple:focus {
    border-color: #dfa06b;
    outline: none;
}

/* Remove spinner buttons from number inputs */
.qty-input-simple::-webkit-inner-spin-button, 
.qty-input-simple::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    margin: 0;
}

.qty-input-simple {
    -moz-appearance: textfield;
}

/* Button styling */
.variation-controls {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.cancel-selection-btn {
    padding: 8px 16px;
    background-color: #333;
    border: 1px solid #555;
    color: #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.cancel-selection-btn:hover {
    background-color: #444;
}

.confirm-selection-btn {
    padding: 8px 16px;
    background-color: #dfa06b;
    border: none;
    color: #333;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.confirm-selection-btn:hover {
    background-color: #c78b59;
}

/* Mobile responsive */
@media (max-width: 700px) {

    .light-table th,
    .light-table td {
        padding: 8px 4px;
        font-size: 0.9em;
    }

    .quantity-controls {
        flex-wrap: nowrap;
    }

    .qty-btn {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 12px;
    }

    .qty-input {
        width: 30px;
        font-size: 12px;
    }
}

.type-logo-cell {
    text-align: center;
}

.type-logo-small {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

/* Target the quantity input specifically in the variation table with higher specificity */
.light-table td .qty-input-simple,
.variation-table td .qty-input-simple,
.light-table-container .qty-input-simple {
    width: 40px !important;
    height: 22px !important;
    text-align: center !important;
    background: #d7f1f5 !important;
    border: 1px solid #ddd !important;
    color: #333 !important;
    border-radius: 4px !important;
    padding: 0 3px !important;
    font-size: 13px !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    margin: 0 !important;
}

/* Hover and focus states */
.light-table td .qty-input-simple:hover,
.variation-table td .qty-input-simple:hover,
.light-table-container .qty-input-simple:hover,
.light-table td .qty-input-simple:focus,
.variation-table td .qty-input-simple:focus,
.light-table-container .qty-input-simple:focus {
    border-color: #dfa06b !important;
    outline: none !important;
}

/* Remove spinner buttons from number inputs */
.light-table .qty-input-simple::-webkit-inner-spin-button, 
.light-table .qty-input-simple::-webkit-outer-spin-button,
.variation-table .qty-input-simple::-webkit-inner-spin-button,
.variation-table .qty-input-simple::-webkit-outer-spin-button { 
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Toast notification */
.toast {
    visibility: hidden;
    min-width: 200px;
    background-color: #dfa06b;
    color: #333;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

/* Page Actions Button (matching products page style) */
.page-actions {
    margin: 20px 0;
    text-align: center;
}

.btn.btn-secondary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn.btn-secondary:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn.btn-secondary i {
    font-size: 1rem;
}

/* Prep Summary Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.prep-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prep-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #3498db;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 20px;
    align-items: center;
    min-height: 70px;
}

.prep-item:hover {
    background: #f1f3f5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.prep-item-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.3;
}

.prep-item-details {
    font-size: 1rem;
    color: #7f8c8d;
    margin: 0;
    font-weight: 500;
    text-align: left;
}

.prep-item-quantity {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 12px 20px;
    border-radius: 25px;
    text-align: center;
    border: 2px solid rgba(231, 76, 60, 0.2);
    justify-self: center;
    min-width: 60px;
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .search-container {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .admin-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 15px;
    }
    
    .admin-tile {
        height: 100px;
        padding: 12px;
    }
    
    .admin-tile i:first-child {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }
    
    .admin-tile h3 {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .admin-tile p {
        font-size: 0.7rem;
    }
    
    .toggle-container p {
        font-size: 0.7rem;
    }
    
    .store-status-toggle {
        font-size: 1.1rem;
    }
    
    .page-actions {
        margin: 15px 0;
    }
    
    .btn.btn-secondary {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .prep-item {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
        padding: 16px;
    }
    
    .prep-item-name {
        font-size: 1.1rem;
    }
    
    .prep-item-details {
        font-size: 0.9rem;
    }
    
    .prep-item-quantity {
        font-size: 1.3rem;
        padding: 10px 16px;
        justify-self: center;
    }

    .orders-action-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .orders-action-buttons {
        gap: 2px; /* Reduced from 4px */
    }
    
    /* Reduce padding in table cells on mobile */
    .orders-customer-cell,
    .orders-delivery-cell,
    .orders-items-cell,
    .orders-amount-cell,
    .orders-status-cell,
    .orders-actions-cell {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    /* Make items column narrower on mobile */
    .orders-delivery-cell {
        max-width: 50px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 5% auto;
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 12px;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    .prep-item {
        padding: 10px;
    }
}