html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
  background-color: #F4F6F9;
  color: #1A1A2E;
}

body {
  margin-bottom: 60px;
  overflow-x: hidden;
  max-width: 100vw;
  background-color: #F4F6F9;
  color: #1A1A2E;
}

/* Custom Input Focus Styles */
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus,
.form-control:focus {
  background-color: white !important;
  color: black !important;
  border-color: #A67C52 !important;
  outline: 0 !important;
  box-shadow: 0 0 0 0.25rem rgba(166, 124, 82, 0.3) !important;
}

/* Global Gold Theme Button Overrides */
.btn-primary {
  background-color: #152B22 !important;
  border-color: #152B22 !important;
  color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show>.btn-primary.dropdown-toggle {
  background-color: #0d2316 !important;
  border-color: #0d2316 !important;
  color: white !important;
  box-shadow: 0 0 0 0.25rem rgba(21, 43, 34, 0.3) !important;
}

.btn-outline-primary {
  color: #152B22 !important;
  border-color: #152B22 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  background-color: #152B22 !important;
  border-color: #152B22 !important;
  color: white !important;
  box-shadow: 0 0 0 0.25rem rgba(21, 43, 34, 0.3) !important;
}

/* Premium Navigation Highlight for Customer Review */
.nav-review-highlight {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 700 !important;
  letter-spacing: 1px;
  color: #E8B86D !important; /* Premium gold text color */
  background: rgba(232, 184, 109, 0.08) !important; /* Soft golden glow background */
  border: 1px solid rgba(232, 184, 109, 0.35) !important; /* Semi-transparent gold border */
  border-radius: 30px !important;
  padding: 6px 16px !important;
  margin: 4px 6px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 4px rgba(232, 184, 109, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  animation: nav-pulse-gold 2.5s infinite ease-in-out;
}

.nav-review-highlight:hover {
  color: #152B22 !important; /* Dark green text on hover to contrast with solid gold background */
  background: #E8B86D !important; /* Solid gold background on hover */
  border-color: #E8B86D !important;
  box-shadow: 0 4px 15px rgba(232, 184, 109, 0.45) !important;
  transform: translateY(-1px);
  text-decoration: none;
}

.nav-review-highlight .star-glow {
  color: #E8B86D;
  transition: all 0.3s ease;
  animation: star-pulse 2s infinite ease-in-out;
}

.nav-review-highlight:hover .star-glow {
  color: #152B22 !important; /* Match dark text on hover */
}

/* Hardware-accelerated animations that don't block layout or page rendering */
@keyframes nav-pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 184, 109, 0.45);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(232, 184, 109, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 184, 109, 0);
  }
}

@keyframes star-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
    filter: drop-shadow(0 0 2px #E8B86D);
  }
}

/* Mobile Navigation Highlight for Customer Review */
.nav-review-highlight-mobile {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #E8B86D !important; /* Gold text */
  background: rgba(232, 184, 109, 0.12) !important; /* Soft gold background */
  border: 1.5px solid rgba(232, 184, 109, 0.45) !important; /* Gold border */
  border-radius: 20px !important;
  padding: 4px 10px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 4px rgba(232, 184, 109, 0.25);
  animation: nav-pulse-gold-mobile 2.5s infinite ease-in-out;
  transition: all 0.2s ease-in-out !important;
}

.nav-review-highlight-mobile:hover,
.nav-review-highlight-mobile:active {
  background: #E8B86D !important;
  color: #152B22 !important; /* Dark green on hover */
  border-color: #E8B86D !important;
  box-shadow: 0 4px 12px rgba(232, 184, 109, 0.45) !important;
  text-decoration: none;
}

.nav-review-highlight-mobile .star-glow-mobile {
  color: #E8B86D;
  transition: all 0.2s ease;
  animation: star-pulse-mobile 1.8s infinite ease-in-out;
}

.nav-review-highlight-mobile:hover .star-glow-mobile,
.nav-review-highlight-mobile:active .star-glow-mobile {
  color: #152B22 !important;
}

/* 100% Responsive scaling for ultra-small mobile displays */
@media (max-width: 380px) {
  .nav-review-highlight-mobile {
    font-size: 0.62rem !important; /* Smaller, highly readable text */
    padding: 3px 8px !important; /* Compact padding to fit layout */
    gap: 2px !important; /* Tighten layout spacing */
  }
}

@keyframes nav-pulse-gold-mobile {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 184, 109, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(232, 184, 109, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 184, 109, 0);
  }
}

@keyframes star-pulse-mobile {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.22);
    filter: drop-shadow(0 0 2px #E8B86D);
  }
}

/* ── Mobile Horizontal Grid Scroll Fix ── */
.table-responsive {
  width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
  .dataTables_wrapper {
    width: 100%;
  }
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    margin-bottom: 0.5rem;
  }
  .dataTables_wrapper .dataTables_filter input {
    max-width: 180px;
  }
}