:root {
  --red: rgb(203, 95, 93);
  --white: rgb(255, 255, 255);
  --dark: rgb(26, 26, 26);
  --dark-gray: rgb(52, 52, 52);
  --blue: rgb(58, 175, 255);
  --pink: rgb(187, 125, 191);
  --green: rgb(34, 255, 169);
  --lavender: rgb(170, 175, 219);
  --yellow: rgb(189, 190, 130);
  --teal: rgb(143, 194, 187);
  --gray: rgb(173, 174, 178);
  --red2: rgb(255, 67, 119);
  --pink2: rgb(239, 106, 167);
  --purple: rgb(139, 108, 207);
  --brown: rgb(161, 120, 76);
}

[data-theme="dark"],
:root:not([data-theme="light"]) {
  --pico-background-color: #191818;
  /* --pico-color: #E0E2E1; */
  --pico-color: #F6F6F7;
  --pico-primary-background: #ECB845;
  --pico-primary-hover: #ECB845;
  --pico-primary: #ECB845;
  --pico-primary-hover-background: #ECB845;
  --pico-primary-inverse: #191818;
  --pico-card-background-color: #191818;
}

h1 {
  /* --pico-font-family: Pacifico, cursive; */
  /* --pico-font-weight: 400; */
  --pico-typography-spacing-vertical: 0.5rem;
}

/* Input styles */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Header styles */
.logo {
  max-height: 40px;
}

.profile-button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Menu styles */
.menu {
  flex: 3;
  overflow-y: auto;
}

.menu-category {
  --pico-typography-spacing-vertical: 1rem;
}

.menu-category h2 {
  --pico-typography-spacing-vertical: 0.5rem;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.3rem;
  border: 1px solid var(--pico-color);
  flex-wrap: nowrap;
}

.menu-item img {
  object-fit: contain;
  height: 80px;
  /* Slightly smaller for responsive view */
  width: auto;
  margin-right: 10px;
  /* Ensure consistent space between image and details */
}


.menu-item span {
  display: block;
}

.menu-item .item-name {
  font-weight: bold;
}

.menu-item .item-price {
  margin-top: 0.5rem;
}

.item-actions {
  display: flex;
  align-items: center;
  /* Ensure buttons stay aligned vertically */
  justify-content: flex-end;
  /* Align buttons to the right */
  flex-shrink: 0;
  /* Prevent shrinking */
  gap: 0.5rem;
  /* Adjust spacing between quantity and button */
}

.item-actions button {
  width: 24px;
  /* Smaller button */
  height: 24px;
  /* Make it square */
  padding: 0;
  /* Remove default padding */
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-details {
  flex-grow: 1;
  text-align: left;
  margin-right: 10px;
  /* Space between text and actions */
}

.quantity-indicator {
  font-size: 0.9rem;
  /* Adjust font size to be smaller */
  flex-shrink: 0;
  /* Keep it from shrinking */
  text-align: right;
}


.item-actions>* {
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

/* Featured video styles */
.featured-item {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.featured-item video {
  width: 100%;
  max-width: 800px;
  /* Set a max width so the video doesn't get too large */
  height: auto;
  border-radius: 10px;
  /* Rounded corners for a more elegant look */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  /* Adds some shadow to make it stand out */
}

.featured-item:after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: -1;
  background: rgba(255, 255, 255, 0.05);
  /* Soft background for added visual effect */
  border-radius: 12px;
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
  .featured-item video {
    max-width: 100%;
    border-radius: 5px;
  }
}

/* Recommended items video */
#orderPlacedModal video {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 1rem 0;
}

/* Cart styles */
.floating-cart-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
}

.cart-popup {
  position: fixed;
  bottom: 100px;
  left: 0;
  right: 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  border-radius: 10px;
}

.cart-popup.show {
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.5, 1);
}

.cart-popup ul li {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0rem 0;
  border-bottom: 1px solid var(--pico-color);
}

.cart-popup ul li span,
.cart-popup ul li button {
  text-align: right;
}

.cart-popup ul li button {
  border: none;
  padding: 0.5rem 0.5rem;
  cursor: pointer;
  border-radius: 5px;
}

.cart-popup footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0rem;
}

/* Responsive styles */
@media (max-width: 768px) {
  .cart-popup {
    bottom: 100px;
    left: 10px;
    right: 10px;
    margin: 0;
    width: auto;
  }
}

@media (max-width: 480px) {
  .menu-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem;
  }

  .item-actions {
    margin-top: 0.5rem;
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
  }

  .item-details {
    width: 100%;
    margin-right: 0;
  }

  .menu-item img {
    width: 100%;
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
  }

  .item-actions button {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }
}

@media (max-width: 350px) {
  .menu-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem;
  }

  .item-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    margin-top: 0.5rem;
  }

  .item-details {
    width: 100%;
  }

  .menu-item img {
    height: 40px;
    width: auto;
    margin-right: 0.5rem;
  }

  .item-actions button {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }
}

/* Hide images with empty src attribute */
.menu-item img[src=""] {
  display: none;
}

.cancelled {
  color: red;
  font-weight: bold;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.order-card-top {
  padding: 1rem;
  border-radius: 5px;
  background: #2f2f2f;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.order-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.table-color-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* Example color coding by table number */
.table-color-dot[data-table="1"] {
  background: var(--red);
}

.table-color-dot[data-table="2"] {
  background: var(--blue);
}

.table-color-dot[data-table="3"] {
  background: var(--green);
}

.table-color-dot[data-table="4"] {
  background: var(--yellow);
}

.table-color-dot[data-table="5"] {
  background: var(--pink);
}

.table-color-dot[data-table="6"] {
  background: var(--teal);
}

.order-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.5rem;
}

.order-details-table th,
.order-details-table td {
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid #444;
}

.order-total {
  margin-top: 0.5rem;
  text-align: right;
  font-weight: bold;
}

/* Existing styles for highlighting */
.table-highlight-border {
  border: 2px solid var(--pico-primary);
}

.table-no-border {
  border: none;
}

.item-delivered {
  border: none;
}

.item-undelivered {
  border: 2px solid var(--pico-primary);
}

.history-list article {
  border: 1px solid #333;
  margin-bottom: 1rem;
  padding: 0.5rem;
}

.history-list table {
  width: 100%;
}

.admin-item-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pico-primary);
  color: var(--pico-primary-inverse);
  border: none;
  border-radius: 3px;
  padding: 0.25rem 0.5rem;
  /* Reduce padding for smaller footprint */
  font-size: 0.85rem;
  /* Slightly smaller text */
  line-height: 1;
  /* Keep text centered */
  cursor: pointer;
  white-space: nowrap;
  /* Prevent label wrap */
}

.admin-item-actions button:hover {
  background: #f2c45b;
  /* Subtle hover effect */
}

.order-details-table td {
  vertical-align: middle;
  /* Added to vertically center cell contents */
}

/* Make the action buttons in the table stand out a bit */
.order-details-table th {
  background: #3a3a3a;
}