/* Bith Brand Color Variables */
:root {
  --bith-primary: #C4956A;
  --bith-primary-dark: #A07850;
  --bith-primary-light: #F3C5A6;
  --bith-black: #000000;
  --bith-charcoal: #2A2A2A;
  --bith-gray: #999999;
}

/* === Light mode: brand primary + font only (Metronic handles the rest) === */
:root {
  --bs-primary:                   #C4956A;
  --bs-primary-rgb:               196, 149, 106;
  --bs-primary-light:             #f5e6d8;   /* warm peach tint for light bg */
  --bs-primary-inverse:           #FFFFFF;
  --bs-primary-active:            #A07850;
  --bs-body-font-family:          'Space Grotesk', Inter, sans-serif;
}

/* === Dark mode: full BITH dark palette === */
[data-bs-theme="dark"] {
  /* Primary / accent */
  --bs-primary:                   #C4956A;
  --bs-primary-rgb:               196, 149, 106;
  --bs-primary-light:             #2a1f15;
  --bs-primary-inverse:           #EDEDEC;
  --bs-primary-active:            #A07850;

  /* Page & surface backgrounds */
  --bs-body-bg:                   #111111;
  --bs-body-bg-rgb:               17, 17, 17;
  --bs-app-bg-color:              #111111;
  --bs-page-bg:                   #111111;
  --bs-app-sidebar-base-bg-color: #0D0D0D;
  --bs-app-header-base-bg-color:  #0D0D0D;
  --bs-app-footer-bg-color:       #0D0D0D;
  --bs-app-sidebar-minimize-bg-color: #0D0D0D;

  /* Card / component backgrounds */
  --bs-card-bg:                   #1C1C1C;
  --bs-modal-bg:                  #1C1C1C;
  --bs-tooltip-bg:                #1C1C1C;
  --bs-dropdown-bg:               #1C1C1C;

  /* Body text */
  --bs-body-color:                #EDEDEC;
  --bs-body-color-rgb:            237, 237, 236;
  --bs-heading-color:             #EDEDEC;
  --bs-text-muted:                #AAAAAA;

  /* Links — lighten default blue so it's readable on dark bg
     #4D9FE8 ≈ 5.8:1 on #111111  ✓ AA */
  --bs-link-color:                #4D9FE8;
  --bs-link-color-rgb:            77, 159, 232;
  --bs-link-hover-color:          #7DB8EE;
  --bs-link-hover-color-rgb:      125, 184, 238;

  /* Info (Bootstrap blue used for badges, alerts, text) */
  --bs-info:                      #4D9FE8;
  --bs-info-rgb:                  77, 159, 232;
  --bs-info-text-emphasis:        #7DB8EE;
  --bs-info-bg-subtle:            #0d2035;
  --bs-info-border-subtle:        #1a3d5c;

  /* Borders */
  --bs-border-color:              #2E2E2E;
  --bs-border-color-translucent:  rgba(255, 255, 255, 0.10);

  /* Input */
  --bs-input-bg:                  #2A2A2A;
  --bs-input-border-color:        #3A3A3A;
  --bs-input-color:               #EDEDEC;
  --bs-input-placeholder-color:   #888888;
  --bs-input-solid-bg:            #2A2A2A;
  --bs-input-solid-bg-focus:      #333333;
  --bs-input-solid-color:         #EDEDEC;
  --bs-input-solid-placeholder-color: #888888;

  /* Gray scale — remapped for legibility on dark surfaces
     gray-100..300 = surfaces/borders  |  gray-400..900 = readable text tones
     All text grays ≥ 4.5:1 contrast against card-bg #1C1C1C */
  --bs-gray-100:  #1C1C1C;   /* card surface */
  --bs-gray-200:  #242424;   /* subtle dividers */
  --bs-gray-300:  #2E2E2E;   /* borders */
  --bs-gray-400:  #808080;   /* disabled / decorative    — 4.7:1 ✓ */
  --bs-gray-500:  #8A8A8A;   /* muted labels             — 5.3:1 ✓ */
  --bs-gray-600:  #AAAAAA;   /* secondary / helper text  — 7.9:1 ✓ */
  --bs-gray-700:  #C2C2C2;   /* table data, form labels  — 10.7:1 ✓ */
  --bs-gray-800:  #D8D8D8;   /* subdued headings         — 13.1:1 ✓ */
  --bs-gray-900:  #EDEDEC;   /* primary text / headings  — 16.5:1 ✓ */

  /* Table */
  --bs-table-bg:           transparent;
  --bs-table-striped-bg:   rgba(255, 255, 255, 0.03);
  --bs-table-hover-bg:     rgba(196, 149, 106, 0.08);
  --bs-table-border-color: #2E2E2E;

  /* Font */
  --bs-body-font-family:   'Space Grotesk', Inter, sans-serif;
}

.preloader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: #111111;
  display: none; /* Hidden by default for static UI preview */
  justify-content: center;
  align-items: center;
}

/* Spinner - Bith branded */
.spinner {
  border: 16px solid #f3f3f3;
  border-top: 16px solid var(--bith-primary);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  animation: spin 2s linear infinite;
}

/* Keyframes for spin animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Pagination Styles */
.pagination-container {
  justify-content: center;
  margin: 5px;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
}

.page-link {
  display: inline-block;
  padding: 8px;
  margin: 0 4px;
  color: var(--bith-primary);
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.page-link.active,
.page-link:hover {
  background-color: var(--bith-primary);
  color: #fff;
}

.page-link i {
  font-size: 16px;
}

.disabled {
  pointer-events: none; /* Disable all click events */
  opacity: 0.5; /* Dim the button to indicate it's disabled */
  cursor: not-allowed; /* Change cursor to indicate it's not clickable */
}

/* Container for the progress bar */
.progress-container {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  display: none;
}

/* Progress bar itself */
.progress-bar {
  height: 30px; /* Adjust height as needed */
  width: 100%; /* Start with 0% width */
  background-color: #76c7c0; /* Customize the color */
  transition: width 0.5s ease; /* Smooth transition effect */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Text inside the progress bar */
.progress-text {
  color: white;
  font-weight: bold;
  font-size: 14px; /* Adjust font size as needed */
}

.admin-logo {
  max-width: 300px; /* Make sure the logo scales with the parent container */
  height: auto; /* Maintain the aspect ratio of the logo */
  display: block; /* Remove any inline spacing */
  margin: 0 auto; /* Center the logo horizontally */
}

@media (max-width: 768px) {
  .admin-logo {
    margin-bottom: -100px; /* Reduce the space between the logo and the next element */
    margin-top: -100px;
  }
}

/* Media query for larger screens */
@media (min-width: 768px) {
  .admin-logo {
    max-width: 200px; /* Adjust size for larger screens */
  }
}

/* Media query for very large screens */
@media (min-width: 1200px) {
  .admin-logo {
    max-width: 500px; /* Increase size for ultra-large screens */
  }
}

/* General styles for order status badges */
.status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 5px; /* Rounded corners */
  font-size: 14px;
  font-weight: bold;
  color: #fff; /* Default text color */
  text-align: center;
}

/* Specific statuses */
.pending {
  background-color: #ffc107; /* Yellow */
  color: #212529; /* Dark text */
}

.confirmed {
  background-color: #17a2b8; /* Cyan */
}

.delivered {
  background-color: #007bff; /* Blue */
}

.completed {
  background-color: #28a745; /* Green */
}

.cancelled {
  background-color: #dc3545; /* Red */
}

.failed {
  background-color: #6c757d; /* Gray */
}

.notification-banner {
  background-color: #007bff;
  color: white;
  font-size: 16px;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  border-radius: 5px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
  from {
    top: -100px;
  }
  to {
    top: 0;
  }
}

.clickable-notify {
  transition: transform 0.2s ease-in-out;
}

.clickable-notify:hover {
  transform: scale(1.02); /* Slight zoom effect on hover */
  background-color: #f0f0f0; /* Optional: Change background color */
}

.barcode-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border: 1px solid #ccc;
  padding: 10px;
  min-height: 50px;
  align-items: center;
  font-family: Arial, sans-serif;
}

.barcode-tag {
  display: inline-flex;
  align-items: center;
  background-color: #007bff;
  color: #fff;
  border-radius: 3px;
  padding: 5px 10px;
  font-size: 14px;
}

.barcode-tag button {
  margin-left: 5px;
  background: none;
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.barcode-tag button:hover {
  color: #ff0000;
}

.continue-shopping-button {
  background-color: white;
  color: var(--bith-primary);
  border: 1px solid var(--bith-primary);
  padding: 10px;
  margin: 10px 10px 0 10px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.continue-shopping-button:hover {
  background-color: var(--bith-primary);
  color: white;
}

.view-cart-checkout-button {
  background-color: var(--bith-primary);
  color: white;
  border: 1px solid var(--bith-primary);
  padding: 10px;
  margin: 10px 10px 0 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.view-cart-checkout-button:hover {
  background-color: var(--bith-primary-dark);
  color: white;
}


#stockInputs > * {
  margin-bottom: 10px; /* Adjust as needed */
}




