/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

a {
  color: white !important;
  text-decoration: none; /* Optional: removes underline */
  -webkit-tap-highlight-color: transparent;
}

a:visited, a:hover, a:active, a:focus {
  color: white;
  -webkit-tap-highlight-color: transparent;
}

a[href^="tel"], a[href^="mailto"] {
  color: white !important;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: black !important; /* Match the status bar */
}

/* Chrome, Safari, newer Edge */
html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none;
}

body {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: white;
  background: #000;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 120px; /* footer space */
  overflow-x: hidden;
  scrollbar-color: #111 #000;
  -webkit-text-size-adjust: none;
}

/* Disable body scroll when overlay is active */
body:has(#overlay-content.active) {
  overflow-y: hidden;
}

#app-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  top: 0;
}

/* Disable app-content scroll when overlay is active */
#app-content:has(+ #overlay-content.active) {
  overflow-y: hidden;
}

body.clock-page {
  padding-bottom: 0;
}

header {
  background: none;
  color: black;
  padding: 1rem 2rem;
  text-align: center;
}

nav {
  background: #333;
  color: white;
  padding: 0.5rem 1rem;
  text-align: center;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 1rem;
}

nav a:hover {
  text-decoration: underline;
}

main {
  flex: 1;
  padding: 1rem;
}

.header-container {
  width: 90px;
  margin: 50px auto 20px auto;
}

.header-container img {
  width:100%;
}

.container {
  max-width: 700px;
  margin: auto;
  width: 100%;
}

footer {
  background: black;
  color: white;
  text-align: center;
  padding: 1rem 1rem 2rem 1rem;
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  z-index: 1000;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 400px;
  line-height: 1rem;
}

.footer-link {
  display: block; /* Ensure the anchor tag wraps around the image */
  font-size: 0.65rem;
  font-weight: 400;
}

.footer-label {
  color: #777;
  display:block;
}

.footer-icon {
  width: 25px; /* Set size of the icons */
  object-fit: contain; /* Ensure image maintains its aspect ratio */
}

/* Mobile-first styles */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.card {
  background: #1d1e21;
  border-radius: 20px;
  padding: 1.5rem;
  text-align: left;
  position: relative;
  min-height: 15rem;
}

.card h2 {
  font-weight: bold;
  line-height: 1.5rem;
  position: absolute;
  bottom: 10%;
  font-size: 0.8rem;
}

.card img {
  max-width: 100%;
  border-radius: 8px;
}

.manager {
  background-image: url("/wp-content/uploads/2025/02/manager-card.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.application {
  background-image: url("/wp-content/uploads/2025/02/application-card.jpg");
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.inspection {
  background-image: url("/wp-content/uploads/2025/02/inspection-card.jpg");
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.regulation {
  background-image: url("/wp-content/uploads/2025/02/regulation-card.jpg");
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.ordering {
  background-image: url("/wp-content/uploads/2025/02/ordering-card.jpg");
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.training {
  background-image: url("/wp-content/uploads/2025/02/training-card.jpg");
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.login-card {
  grid-column: span 2;
  border:1px solid #222;
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  color: white;
  font-size: 0.83em;
  margin: 0 0 30px 0;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-card input {
  padding: 0.8rem;
  font-size: 0.85rem;
  border: 1px solid #ccc;
}

.login-username, .login-password {
  color: white;
}

/* Style the textboxes to have a white underline */
input[type="text"], input[type="password"] {
  border: none; /* Remove default border */
  border-bottom: 0.5px solid white; /* Add white underline */
  background-color: transparent; /* Remove background */
  color: white; /* Set text color to white */
  padding: 8px 0; /* Adjust padding */
  width: 100%; /* Full width */
}

/* Style the placeholder text color */
input[type="text"]::placeholder, input[type="password"]::placeholder {
  color: white; /* Change placeholder text color */
  font-weight: 100;
}

/* Optional: Focus effect to highlight input fields */
  input[type="text"]:focus, input[type="password"]:focus {
  outline: none; /* Remove default outline */
  border-bottom: 1px solid #93afff; /* Change underline color on focus */
}

.login-submit input[type="submit"] {
  padding: 0.8rem;
  font-size: 0.8rem;
  color: white;
  background: linear-gradient(to right, #9eccff, #687aff);
  box-shadow: 0 20px 20px rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  margin: 1rem 0 0 0;
}

/* Sub Page Header */
.back-button {
  width: 50px;
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: transparent;
  text-align: left;
}

.back-button img {
  width: 10px;
}

/* Report Page Style */

.todo-container {
  display: flex;
  flex-direction: column;  /* Stack checkboxes vertically */
  gap: 8px;  /* Adds space between each task */
  margin-bottom: 15px;
}

textarea {
  width: 100%;
  height: 60px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: block;
  margin-bottom: 15px; /* Ensures space between memo and button */
}

button {
  width: auto;
  padding: 20px;
  font-size: 1rem;
  font-weight: 500;
  background: #b50000;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}

input[name="sender_name"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
  display: block;
  color: black;
}

input[name="sender_name"]::placeholder {
  color: black;
  opacity: 0.5;
}

/* ================= Order Page Style =================== */

.accordion-wrapper {
  width: 100%;
  margin: auto;
}

.accordion-header {
  cursor: pointer;
  padding: 10px;
  background-color: black;
  border-bottom: 1px solid #373737;
  font-weight: bold;
  text-align: center;
}

.accordion-header.active {
  background-color: rgb(22, 22, 23);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

.order-category-section h3 {
  padding: 10px 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid #333;
}

.special-request-section h3 {
  padding: 10px 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid #333;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 2px;
  margin: 0 0 1px 0;
  border-bottom: 1px solid #333;
}

.order-inventory-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  text-align: center;
  background-color: #0c0c0c;
}

.order-inventory-item p {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.order-inventory-item img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
}

.order-inventory-item.ready {
  background-color: #1b1c1e; /* Dark background to indicate readiness */
  transition: background-color 0.3s ease; /* Smooth transition for better UX */
}

.order-inventory-item.ready input.qty-input {
  background-color: #1b1c1e;
  transition: background-color 0.3s ease; /* Smooth transition for better UX */
}

.order-inventory-item.ordered {
  background-color: #e0e0e0; /* Light grey to indicate "already ordered" */
  opacity: 0.7; /* Slight fade effect */
  pointer-events: none; /* Prevents interaction */
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.order-inventory-item.ordered .minus-btn,
.order-inventory-item.ordered .plus-btn,
.order-inventory-item.ordered .qty-input,
.order-inventory-item.ordered .size-select {
    cursor: not-allowed; /* Reinforces disabled state */
    background-color: #d0d0d0; /* Slightly darker grey for controls */
}

.item-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

.item-controls button {
  width: 45px;
  height: 25px;
  background: black;
  color: white;
  font-size: 0.85rem;
  border-radius: 5px;
  cursor: pointer;
  padding: 0;
  border: 1px solid #444;
}

.item-controls input {
  width: 30px;
  text-align: center;
  border: none;
  border-radius: 5px;
  padding: 3px;
  background-color: #0c0c0c;
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
}

.order-btn {
  text-align: center;
}

details {
  color: white; /* White text */
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  font-size: 0.7rem;
  align-items: center;
}

summary {
  list-style: none; /* Removes default arrow */
  text-align: center;
  width: 100%;
  display: block;
  cursor: pointer;
  padding: 10px 0 0 0;
  position: relative;
}

/* Additional Safari-specific fix */
summary::-webkit-details-marker {
  display: none; /* Hides the default Safari arrow */
}

summary::after {
  content: "";
  display: inline-block;
  width: 10px; /* Adjust size */
  height: 10px;
  background-image: url('/wp-content/uploads/2025/02/dropdown-arrow.png'); /* Path to your down arrow image */
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 3px; /* Spacing */
}

details[open] summary::after {
  background-image: url('/wp-content/uploads/2025/02/dropdown-arrow-up.png'); /* Path to your up arrow image */
}

.inventory-item details p {
  font-size: 0.7rem;
  padding: 5px;
  background: black; /* Light background for contrast */
}

.size-select-wrapper {
  position: relative;
  width: 100%;
  max-width: 134px;
}

.size-select {
  width: 100%;
  padding: 8px;
  font-size: 0.75rem;
  font-weight: 300;
  background-color: #000;
  color: white;
  border: 1px solid #444;
  border-radius: 5px;
  outline: none;
  text-align: center;
  margin-top: 5px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color 0.3s ease-in-out, border-width 0.3s ease-in-out; /* Fade animation */
}

.size-select-wrapper::after {
  content: '';
  position: absolute;
  right: 8%;
  top: 65%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-image: url('/wp-content/uploads/2025/02/dropdown-arrow.png');
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.size-select.error-border {
  border: 1px solid #b50000 !important;
}

.add-item-wrapper {
  font-size: 0.85rem;
  padding: 30px 0;
}

.add-item-wrapper a {
  text-decoration: underline;
  font-weight: 600;
}


/*  ================ Inventory Logs ================ */ 

.inventory-log-container {
  max-width: 800px;
  margin: 0 auto;
}

.status-ordered { background-color: #00d177; }
.status-processing { background-color: #df9800; }
.status-completed { background-color: #444; }
.status-dot { 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    display: inline-block; 
}

.log-back-btn {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 50px;
  height: 42px;
  z-index: 1003;
  background: none;
  border: none;
}

.log-item {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 300;
    padding: 10px;
    border-bottom: 1px solid #111;
    align-items: center;
}
.date-group {
    display: flex;
    align-items: center;
    gap: 5px; /* Tight space between date and time */
}
.date-wrapper {
  width: 140px; /* Fixed width for date + time */
}
.log-time {
    color: #aaa;
    font-size: 0.7rem;
}
.restaurant { 
    text-align: center; 
    flex-grow: 1; 
}
.status-wrapper {
  width: 50px;
  text-align: right;
}
.status-group {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
}
.total-qty {
    color: #aaa;
    font-size: 0.7rem;
}
.pagination { 
    text-align: center; 
    margin: 20px 0; 
}
.pagination a, .pagination span { 
    padding: 10px 15px;
    margin: 0 5px;
    font-size: 0.8rem;
    background-color: #1b1b1b;
    color: #fff;
    text-decoration: none;
}

.page-info {
    padding: 20px 15px;
    margin: 0 5px;
    font-size: 0.8rem;
    background-color: #000 !important;
    letter-spacing: 0.1rem;
}

.pagination .current { background: #b50000; }

.new-order {
  display: block;
  width: 60px;
  height: 60px;
  background-color: darkred;
  position: absolute;
  bottom: 30px;
  right: 30px;
  padding: 14px;
  font-size: 1.25rem;
  font-weight: 300;
  border-radius: 50%;
  text-align: center;
}


/* ================ Inventory Log - Detail ================= */

.inventory-container {
  max-width: 800px;
  margin:0 auto;
}

.log-category-section h4 {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 25px 0 0 0;
}

.special-request-section h4 {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 25px 0 0 0;
}

.special-request-section .item-name {
  font-weight: 400;
  color:#eee;
}

.special-request-section p {
  font-size: 0.9rem;
  margin-top: 10px;
}

.detail-inventory-header {
  font-size: 0.8rem;
}

.special-request-input {
  /* Reset defaults */
  appearance: none;            /* Remove browser-specific styling */
  -webkit-appearance: none;    /* Safari/Chrome */
  -moz-appearance: none;       /* Firefox */
  border: none;                /* Strip default border */
  outline: none;               /* Remove focus outline */
  padding: 0;                  /* Remove default padding */
  margin: 0;                   /* Remove default margin */
  box-shadow: none;            /* No shadow effects */

  /* Your custom styles */
  background-color: #111;    /* Dark gray background */
  color: #fff;               /* White text */
  padding: 10px;               /* Controlled padding */
  resize: none;                /* No resizing */
  width: 100%;                 /* Full container width */
  min-height: 100px;           /* Enough height for content */
  line-height: 1.5;            /* Better readability for line breaks */
  font-size: 0.9rem;

  border: none;      /* Subtle dark gray border */

  scrollbar-width: thin;       /* Firefox: slim scrollbar */
  scrollbar-color: #777 #333;  /* Firefox: white thumb, dark track */
}
.special-request-input::-webkit-scrollbar { width: 8px; }
.special-request-input::-webkit-scrollbar-track { background: #333; }
.special-request-input::-webkit-scrollbar-thumb { background: #fff; border-radius: 4px; }
.special-request-input:focus { outline: none; border: none;}

.detail-inventory-item {
  position: relative;
  overflow: hidden;
}

.detail-inventory-status {
  display:flex;
  justify-content: space-between;
  align-items: center; /* Vertically align dot/text/button */
}

.status-group {
  display: flex;
  align-items: center;
  gap: 5px; /* Tighten spacing between Status:/dot/text */
}

.vendor-filter {
  margin: 10px 0;
}

#vendor-filter {
  width: 100%;
  max-width: 200px;
  padding: 5px;
  font-size: 0.85rem;
  background: #333;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  appearance: none; /* Remove default arrow */
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); /* Custom arrow */
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

.vendor-section h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 0 0;
}

.submit-vendor-btn {
  font-size: 0.75rem;
  padding: 5px 10px;
  width: auto;
}

.checkbox-label {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.received-toggle {
  position: absolute;
  width: 44px;
  height: 44px;
  opacity: 0;
  top: -10px;
  right: -10px;
  z-index: 2;
  cursor: pointer;
  padding: 20px;
}

.checkbox-custom {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #222;
  background: #fff;
  z-index: 1;
}

.received-toggle:checked + .checkbox-custom {
  border-color: #00a15b;
  background: #00a15b;
}

.received-toggle:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  z-index: 1;
}

.log-details-order-submitted {
  display: inline-block;
  color: #28a745; /* Green text */
  font-size: 14px;
  margin-left: 10px;
  vertical-align: middle;
}

.log-details-checkmark {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #28a745; /* Green background */
  position: relative;
  vertical-align: middle;
  margin-left: 5px;
}

.log-details-checkmark::before {
  content: '';
  position: absolute;
  top: 3px; /* Adjusted for 15px size */
  left: 5px; /* Adjusted for 15px size */
  width: 3px; /* Scaled down */
  height: 6px; /* Scaled down */
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Swipe animation via JS class */
.item-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Full item height */
  background: linear-gradient(to right, #000, #00664c); /* Black to green */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  z-index: -1;
}

.item-header.swipe-checked::before {
  transform: scaleX(1); /* Green swipe */
}

.detail-inventory-item.received {
  opacity: 0.5;
}

.status-dot.status-new { background: #00d177; }
.status-dot.status-partial { background: #df9800; }
.status-dot.status-completed { background: #444; }

.detail-inventory-item.hidden {
  display: none; /* Hide filtered items */
}

.detail-inventory-item {
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid #333;
  cursor: pointer;
}

.detail-inventory img {
  width: 10px;
}

.item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  position: relative; /* Contain animation */
}

.item-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 10px;
}

.detail-inventory-item.expanded .item-details {
  max-height: 150px; /* Increased for content */
}

.item-name {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
}

.item-name details {
  display: inline-block;
  cursor: pointer;
  margin: 0;
  padding: 0;
  font-size: 0.9rem; /* Adjust as needed */
}

.item-name summary {
  list-style: none; /* Remove default arrow */
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.item-name summary::-webkit-details-marker {
  display: none; /* Hide Safari arrow */
}

/* Custom arrow via ::after */
.item-name summary::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-image: url('/wp-content/uploads/2025/02/dropdown-arrow.png');
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 3px;
}

.item-name details[open] summary::after {
  background-image: url('/wp-content/uploads/2025/02/dropdown-arrow-up.png');
}

.qty-wrapper {
  display: flex;
  align-items: center;
  gap: 10px; /* Space from qty */
  position: relative; /* For animation */
}

.qty-display {
  width: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: #fff;
}

.qty-input {
  width: 40px;
  text-align: center;
  background: #f5f5f5;
  border: none;
  font-size: 0.85rem;
  color: #000;
  margin: 0 2px;
  padding: 0.45rem;
  vertical-align: middle;
  transition: border-color 0.3s ease-in-out, border-width 0.3s ease-in-out; /* Fade animation */
}

.qty-input[readonly] {
  background: #f5f5f5;
}

.qty-input.error-border {
  border: 1px solid #b50000 !important; /* Matches your request, overrides any border: none */
}

.edit-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  justify-content: space-between;
}

.qty-btn {
  display: none;
  padding: 0.5rem;
  font-size: 0.85rem;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  width: auto; /* Override global */
  vertical-align: middle;
}

.edit-btn {
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  width: 20px; /* Specific width */
}

.edit-btn img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.save-btn {
  display: none;
  width: 80px; /* Specific width */
  padding: 0.5rem;
  background: #009f7a;
  color: #fff;
  border: none;
  border-radius: 4px;
  margin-left: 10px;
  font-size: 0.85rem;
  cursor: pointer;
  vertical-align: middle;
}

.cancel-btn {
  display: none;
  width: 80px; /* Specific width */
  padding: 0.5rem;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  vertical-align: middle;
}

.delete-btn {
  display: none;
  width: 16px; /* Specific width */
  height: 16px;
  background: red;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}

.delete-btn::before {
  content: "−";
}

.delete-btn:hover {
  background: #c9302c;
}

.status-btn {
  padding: 5px 15px;
  font-size: 0.75rem;
  width: auto;
}

.log-back-btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  z-index: 1003;
  background: none;
  border: none;
  cursor: pointer;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
    
/* ================= Login Page ================= */

.login-container {
  text-align: center;
  background: black;
  padding: 40px;
}
.login-container img {
  width: 150px;
  margin-bottom: 20px;
}
.login-container form {
  display: flex;
  flex-direction: column;
}
.login-container input {
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 5px;
  text-align: center;
  font-size: 16px;
}
.login-container input[type="text"], 
.login-container input[type="password"] {
  background: black;
  color: white;
  border-bottom: 1px solid #333;
  border-radius: 0;
}
.login-container input[type="submit"] {
  width: 100%;
  padding: 20px;
  font-size: 1rem;
  font-weight: 500;
  background: #b50000;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}
.login-container input[type="submit"]:hover {
  background: #a70000;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px black inset !important;
    box-shadow: 0 0 0px 1000px black inset !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border-bottom: 1px solid #333 !important;
}

.remember-me input[type="checkbox"] {
  display: none;
}

.remember-me label {
  font-weight: 400;
  font-size: 0.85rem;
}

#remember {
  border: none;
  vertical-align: middle;
  margin: 0 5px 0 0;
}

/* Custom checkbox styling */
.remember-me {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.5;
  padding: 10px 0 30px 0;
}

/* Create the circular appearance */
.remember-me .checkmark {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: transparent;
  border: 1px solid #555;
  display: inline-block;
  transition: background-color 0.3s, border-color 0.3s;
  vertical-align: middle;
  margin: 0 5px 0 0;
}

/* When the checkbox is checked */
input[type="checkbox"]:checked + .checkmark {
  background-color: red; /* Red background when checked */
  border-color: red;
}

/* Hover effect for the checkbox */
.remember-me:hover .checkmark {
  border-color: #999;
}


/* ============= Manage Inventory ============== */

.inventory-upload {
  padding: 10px 10px 50px 10px;
}

.inventory-upload h1 {
  padding: 0 0 10px 0;
}

.inventory-image-upload {
  padding: 20px 0;
  font-size: 0.75rem;
  font-weight: 300;
}

.inventory-vendor-upload  {
  padding: 20px 0 0 0;
}

.inventory-upload input {
  background: black;
  color: white;
  border-bottom: 1px solid #333;
  border-radius: 0;
  outline: none;
  box-shadow: none;
}

.inventory-upload input:focus {
  border-bottom: 1px solid #333 !important; /* Forces border color to stay the same */
  -webkit-box-shadow: none;
  box-shadow: none;
}


.inventory-upload input[type="file"] {
  border: none;
}

.inventory-upload button {
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
}

.inventory-wrapper {
  position: relative;
  border-bottom: 0.5px solid #555;
  padding: 10px 0 5px;
  font-weight: 300;
}

.inventory-data {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
}

.inventory-data p {
  margin: 0;
  padding: 0;
  line-height: 0.85rem;
}

.inventory-data-delete button {
  position: absolute;
  width: 20px;
  height: 20px;
  padding: 0;
  top: 35%;
  right: 0;
  font-size: 0.75rem;
}

.inventory-data-description p strong {
  font-weight: 900;
}

#item_restaurant-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #1a1a1a;
  padding: 12px;
  border-radius: 8px;
  margin: 20px 0 0 0;
}

#item_restaurant-wrapper label {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 300;
  color: white;
  cursor: pointer;
}

#item_restaurant-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  appearance: none;
  border: 2px solid white;
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#item_restaurant-wrapper input[type="checkbox"]:checked {
  background-color: white;
  border-color: white;
}

#item_restaurant-wrapper input[type="checkbox"]:checked::after {
  content: '✓';
  display: block;
  color: #333;
  font-size: 14px;
  text-align: center;
  line-height: 16px;
  font-weight: bold;
}

#item_vendor {
  width: 100%;
  padding: 12px;
  font-size: 0.75rem;
  font-weight: 300;
  background-color: #1a1a1a;
  color: white;
  border: none;
  outline: none;
  appearance: none; /* Removes default browser styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

/* Optional: Add a custom dropdown arrow */
.inventory-vendor-upload {
  position: relative;
  width: 100%;
}

.inventory-vendor-upload::after {
  content: ''; /* Remove the Unicode arrow */
  position: absolute;
  right: 15px;
  top: 68%;
  transform: translateY(-50%);
  width: 12px; /* Adjust size as needed */
  height: 12px;
  background-image: url('/wp-content/uploads/2025/02/dropdown-arrow.png'); /* Replace with your image URL */
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none; /* Prevent interaction */
}


/* ====================  Profile Page  ==================== */

.profile-wrapper {
  padding: 50px 0 0 0;
}

.profile-details {
  padding: 190px 10px 50px 10px;
  text-align: center;
  margin: 120px auto 15px auto;
  background: #141516;
  color: #fff;
  border-radius: 25px;
  position: relative;
  width: 90%;
  max-width: 400px;
}

.profile-details p {
  margin: 10px 0;
}

.profile-username {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
  padding: 10px 0;
}

.profile-title {
  font-size: 0.85rem;
  font-weight: 300;
}

.profile-picture {
  margin: 0 auto;
  display: block;
  position: absolute;
  top: -80px;
  left: 0;
  width: 100%;
}

.profile-picture img {
  width: 250px; /* Fixed pixel size */
  height: 250px;
  border-radius: 50%; /* Optional: circular */
}

.profile-point-wrapper {
  display: flex;
  padding: 20px 0;
  border-radius: 20px;
  box-shadow: 20px 18px 30px 0px #000;
  margin: 15px auto 30px;
  width: 90%;
}

.profile-point-wrapper p {
  margin: 0;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.15rem;
  text-align: center;
}

.profile-point-wrapper h4 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  line-height: 4rem;
  font-size: 4rem;
}

.profile-point {
  padding: 10px;
  position: relative;
  width: 50%;
}

.profile-point:nth-child(1) {
  border-right: 1px dotted #aaa;
}

.profile-edit {
  width: 90%;
  margin: 40px auto 0 auto;
  padding: 10px 0;
  background-color: black;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
}

.qr-code { 
  margin: 20px 0;
  text-align: center;
  position: relative;
  z-index: 0;
}

.qr-code-canvas-wrapper {
  width: 250px;
  height: 250px;
  margin: 0 auto;
  border-radius: 15px;
  position: relative;
}

.qr-code-canvas-wrapper::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 16px;
  z-index: 1;
  animation: ripple 1.25s ease-out infinite;
}

#qr-code-canvas {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  display: block;
  position: relative;
  z-index: 2;
}

@keyframes ripple {
  0% {
      transform: scale(1);
      opacity: 1;
  }
  100% {
      transform: scale(1.1);
      opacity: 0;
  }
}

.clock-status {
  text-align: center;
    font-size: 0.85rem;
    font-weight: 300;
    padding: 15px;
    display: flex;
    max-width: 255px;
    margin: 30px auto 40px;
    border: 1px solid #222;
    border-radius: 10px;
    justify-content: space-between;
    align-items: center;
}
.clock-status h2 {
  margin: 10px 0;
}
.clock-status ul {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}
.clock-status li {
  margin: 10px 0;
}

.profile-clock-status {
  font-size: 0.65rem;
  vertical-align: middle;
}


/* ==================== Payroll Manager Page ================= */

.delete-log {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-color: #b50000;
  border-radius: 50%;
  cursor: pointer;
}
.delete-log::before,
.delete-log::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 2px;
  background-color: white;
  transform: translate(-50%, -50%) rotate(45deg);
}

.delete-log::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.add-log {
  width: 30px;
  height: 30px;
  margin-top: 10px;
  padding: 0;
  cursor: pointer;
  font-size: 0.85rem;
}

.pay-period {
  font-size: 0.75rem;
  color: #555;
  margin: 30px 0 10px 0;
  text-align: right;
}

#payroll-container {
  max-width: 800px;
  margin: 0 auto;
}

.payroll-archive-container {
  max-width: 800px;
  margin: 0 auto;
}


.payroll-totals {
  display: flex;
  margin-top: 20px;
  justify-content: space-between;
}

.payroll-category {
  margin-bottom: 20px;
  display:flex;
  align-items: center;
  justify-content: space-between;
}

.payroll-table {
  width: 100%;
  border-collapse: collapse;
  color: white;
  margin-top: 10px;
  font-size: 0.8rem;
  text-align: left;
}

.payroll-table strong {
  font-weight: 800;
}

.payroll-table thead {
  background-color: #191c23;
  color: #858ea3;
  font-weight: 500;
}

.payroll-table tfoot {
  background-color: #191c23;
  color: #858ea3;
  font-weight: 500;
}

.payroll-table tbody tr {
  background-color: #373c4a;
}

.payroll-table tbody tr:nth-child(even){
  background-color:#484e60;
}

.employee-section { 
  transition: all 0.3s ease;
  margin-bottom: 10px; 
  border-bottom: 1px solid #111;
}

.employee-header {
  font-size: 14px;
  font-weight: 300;
  display: flex; 
  align-items: center; 
}

.employee-header button {
  font-size: 0.85rem;
  font-weight: 300;
  padding: 15px 0;
}

.employee-details { 
  height: 0; /* Start collapsed */
  overflow: hidden; /* Clip during slide */
  transition: height 0.15s ease-out; /* Simple slide */
  color: white; 
  margin: 0 0 10px 0;
  font-size: 0.85rem;
}

.employee-details td { 
  position: relative;
}

.employee-info {
  margin-top: 20px;
}

.toggle-logs { 
  width: 100%;
  padding: 10px 0;
}

.toggle-details{
  width: auto;
}

#export-csv {
  width: 100%;
  max-width: 150px;
  padding: 10px 0;
  font-size: 0.8rem;
  font-weight: 300;
}

#property-filter {
  width: 100%;
  padding: 12px 50px 12px 12px;
  font-size: 0.75rem;
  font-weight: 300;
  background-color: #1a1a1a;
  color: white;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.property-filter-upload {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.property-filter-upload::after {
  content: ''; /* Remove the Unicode arrow */
  position: absolute;
  right: 15px;
  top: 55%;
  transform: translateY(-50%);
  width: 12px; /* Adjust size as needed */
  height: 12px;
  background-image: url('/wp-content/uploads/2025/02/dropdown-arrow.png'); /* Replace with your image URL */
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none; /* Prevent interaction */
}

.edit-form {
  position: fixed; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%); 
  background: white; 
  color: black;
  border: none;
  padding: 30px 10px; 
  z-index: 1003;
  text-align: center;
  width: 80%;
}

.edit-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 50% opacity black */
  z-index: 1002; /* Below form, above everything else */
  pointer-events: auto; /* Blocks interaction */
}

.edit-cancel {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #b50000;
  border-radius: 50%;
  position: absolute;
  top: -8px;
  right: -8px;
  cursor: pointer;
}

.edit-cancel::before,
.edit-cancel::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background-color: white;
  transform: translate(-50%, -50%) rotate(45deg);
}

.edit-cancel::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.save-time {
  width: 60%;
  padding: 8px;
}

.edit-form input[type="datetime-local"] {
  width: 60%;
  padding: 8px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.payroll-mobile-card {
  display: flex;
  justify-content: space-between;
  padding: 25px;
  background: #15171c;
  border-radius: 15px;
  margin: 10px 0;
  color: #565d6c;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1rem;
}

.payroll-mobile-card h3 {
  font-weight: 600;
  font-size: 14px;
  color: white;
}

.payroll-mobile-right {
  align-content: end;
}

/* ==================== Scanner ==================== */


#scanner-container { 
  min-height: 100vh; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  flex-direction: column; 
  padding: 20px; 
  position: relative;
  text-align: center;
}

#scanner-video { 
  width: 80%; 
  max-width: 450px; 
  margin: 20px auto; 
  border: 2px solid #fff;
  border-radius: 15px;
}

#start-scanner {
  padding: 40px;
  font-size: 24px;
  font-weight: 300;
  background: linear-gradient(90deg, #5A0000, #d70c0c, #5A0000, #d70c0c, #5A0000);
  background-size: 500% 100%;
  color: #fff;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  animation: gradientShift 20s infinite linear;
  width: 80%;
  max-width: 600px;
  position: relative; /* For ::after positioning */
}

#start-scanner:active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 100px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 1); /* Subtle dark shadow */
  animation: shadowPulse 0.2s ease-out;
}

@keyframes gradientShift {
  0% { background-position: 0% 0; }
  100% { background-position: 63% 0; }
}

@keyframes shadowPulse {
  0% { box-shadow: inset 0 0 0 rgba(0, 0, 0, 0); }
  100% { box-shadow: inset 0 0 10px rgba(0, 0, 0, 1); }
}

#qr-guide {
  position: absolute; 
  top: 0; 
  left: 50%; 
  transform: translateX(-50%); 
  text-align: center; 
  color: #fff;
}

#qr-guide p {
  margin: 0;
}

#qr-guide img {
  width: 20px; 
  height: 10px; 
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

#clock-button {
  padding: 20px; 
  font-size: 16px;
  margin-top: 20px;
  background-color: #b50000;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

#break-button {
  padding: 20px; 
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 20px;
  background-color: #ee9a00;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;

}

#confirm-cancel {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #2d2d2d;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
}

#cancel-scanner {
  max-width: 450px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #2d2d2d;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

#scan-result {
  min-width: 450px;
  margin-top: 20px;
  color: #fff;
}

#scan-result strong{
  font-size: 1.85rem;
  font-weight: 800;
  display: block;
  margin-bottom: 10px;
}

#scan-result p{
  font-size: 1rem;
  font-weight: 300;
}

.checkmark-clock {
  position: absolute;
  top: -50px; /* Position above message */
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #28a745; /* Green background */
  animation: checkmarkFade 2s ease-in-out forwards;
}

.checkmark-clock::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 16px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

@keyframes checkmarkFade {
  0% { opacity: 0; transform: translateX(-50%) scale(0); }
  20% { opacity: 1; transform: translateX(-50%) scale(1.2); }
  50% { opacity: 1; transform: translateX(-50%) scale(1); }
}

.bottom-logo {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: auto;
    z-index: 10;
}


/* ======= Overlay for SPA ========= */

.overlay {
  position: fixed;
  top: 0;
  right: -100%; /* Start off-screen right */
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1001; /* Above footer */
  transition: right 0.2s ease-in-out;
  overflow-y: auto;
}

.overlay.active {
  right: 0; /* Slide in */
}

.overlay.initial-load.active {
  transition: none; /* Skip animation on refresh */
}

.overlay-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  border-bottom: 1px solid #111;
  z-index: 1002;
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.close-overlay-btn {
  background: none;
  width: auto;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  top: 0;
  position: absolute;
}

.close-overlay-btn img {
  vertical-align: middle;
  width: 7px;
}

.close-overlay-btn:hover {
  background: none;
}

.overlay-title {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  text-align: center;
  flex-grow: 1;
}

#overlay-inner {
  padding: 60px 15px 10px; /* Top for header */
  overflow-y: auto;
  height: 100%;
}

.notify-x {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 172, 136, 0.9);
  border: 1px solid #30ffbd;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  z-index: 1003;
  font-size: 0.85rem;
  width: 85%;
  max-width: 300px;
  font-weight: 400;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease-out;  
}

.notify-x.notify-error {
  background-color: rgba(137, 0, 0, 0.9);
  color: white;
  border: 1px solid #c80014;
}

.notify-x.deleted {
  background-color: rgba(138, 21, 46, 0.9);
  color: white;
  border: 1px solid #be0039;
}

/* =============== Loading Overlay =============== */

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #fff;
  border-top: 4px solid #00a15b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#loading-overlay span {
  color: #fff;
  font-size: 1.2rem;
  margin-top: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ======== 888 Central Kitchen Order ======== */

.restaurant-section { margin-bottom: 20px; }
.print-ticket-btn { margin-top: 10px; font-size: 0.85rem; padding: 5px 15px; width: 150px; }
.print-invoice-btn { font-size: 0.85rem; padding: 5px 15px; width: auto; }

.central-restaurant-button {
  align-content: center;
}

.central-category-section h4 {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 25px 0 0 0;
}
 
.invoice-print {
  display: none;
  position: absolute;
  left: -9999px;
}

.central-restaurant-wrapper {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.central-restaurant-header p {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #888;
  font-weight: 300;
}

/* ================ Profile Picture =================== */

.profile-picture img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

/* ================ Message Page =================== */

#chat { padding: 20px; }
#messages { max-height: 300px; overflow-y: auto; margin-bottom: 30px; font-size: 0.85rem; }
#messages div { padding: 5px; border-bottom: 1px solid #eee; }
#messages div:nth-child(even) { background: #1a1a1a; } /* Alternate colors */
#message-input { width: 70%; padding: 5px; margin-right: 10px; }
#send-message { padding: 5px; width: 25%; }