html {
  scroll-behavior: smooth;
}
@keyframes scroll-x {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* Move half the track width for seamless loop */
}

/* Optional: A subtle wiggle or bounce as items appear/disappear */
@keyframes flip-in {
  0% {
    transform: rotateY(90deg) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: rotateY(-90deg) scale(0.8);
    opacity: 0;
  }
}

.animate-scroll-x {
  animation: scroll-x 35s linear infinite; /* Adjusted duration for more icons */
}

.icon-animate {
  animation: flip-in 1.5s ease-out forwards; /* Applied dynamically if using JS */
  /* For a simpler, constant rotation that always happens, you could use:
       animation: spin 5s linear infinite; 
       @keyframes spin { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }
       But this might not look as dynamic with the horizontal scroll.
    */
}

/*
    The mask-image provides the fade effect at the edges.
    Note: For Safari compatibility, you might need to add -webkit-mask-image.
  */
.mask-fade {
  mask-image: linear-gradient(
    to right,
    transparent,
    black 20%,
    black 80%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 20%,
    black 80%,
    transparent
  );
}
@keyframes spin-y {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

.animate-spin-y {
  animation: spin-y 8s linear infinite; /* Each icon spins independently */
  transform-style: preserve-3d; /* Important for 3D rotation */
  perspective: 1000px; /* Optional: adds a subtle 3D perspective */
}

.animate-scroll {
  animation: scroll 30s linear infinite;
}

:root {
  --primary-color: #00c896;
  --primary-dark-color: #029e6aff;
  --secondary-color: #a0a0a0;
  --bg-color: #0d1117;
  --gray-color: #2f3641ff;
  --dark-gray-color: rgba(38, 42, 48, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  font-family: "Lato", sans-serif;
  padding: 16px;
}

.font-lato {
  font-family: "Lato", sans-serif;
}

/* Main Container - Rounded with margins */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  background: #0a0a0a;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero Section with Natural Green Gradient */
.hero-section {
  min-height: calc(100vh - 100px);
  position: relative;
  background: radial-gradient(ellipse at bottom, #0f1419 0%, #050508 100%);
  overflow: hidden;
}

/* Smooth Natural Green Gradient - Right Side */
.hero-section::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 70%;
  height: 120%;
  background: radial-gradient(
    ellipse at center right,
    rgba(0, 200, 150, 0.35) 0%,
    rgba(0, 200, 150, 0.22) 20%,
    rgba(0, 200, 150, 0.15) 35%,
    rgba(0, 200, 150, 0.08) 50%,
    rgba(0, 200, 150, 0.04) 65%,
    transparent 80%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

/* Additional smooth glow */
.hero-section::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 5%;
  width: 50%;
  height: 60%;
  background: radial-gradient(
    circle at center,
    rgba(0, 200, 150, 0.25) 0%,
    rgba(0, 200, 150, 0.12) 30%,
    transparent 60%
  );
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

/* Starfield */
#stars,
#stars2,
#stars3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  background: transparent;
  z-index: 0;
}

#stars {
  box-shadow: 100px 200px #fff, 200px 300px #fff, 300px 100px #fff,
    400px 400px #fff, 500px 150px #fff, 600px 350px #fff, 700px 250px #fff,
    800px 450px #fff, 900px 100px #fff, 1000px 300px #fff, 1100px 500px #fff,
    1200px 200px #fff, 50px 500px #fff, 150px 600px #fff, 250px 700px #fff;
  animation: animStar 50s linear infinite;
}

#stars2 {
  width: 2px;
  height: 2px;
  box-shadow: 200px 100px #fff, 400px 250px #fff, 600px 400px #fff,
    800px 200px #fff, 1000px 450px #fff, 300px 600px #fff;
  animation: animStar 100s linear infinite;
}

#stars3 {
  width: 3px;
  height: 3px;
  box-shadow: 300px 300px #fff, 600px 100px #fff, 900px 500px #fff,
    400px 700px #fff, 700px 300px #fff;
  animation: animStar 150s linear infinite;
}

@keyframes animStar {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-2000px);
  }
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
}

/* Feature Badge */
.feature-badge {
  background: rgba(12, 12, 12, 0.6);
  border: 1px solid rgba(0, 200, 150, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-badge:hover {
  border-color: var(--primary-color);
  background: rgba(0, 200, 150, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 200, 150, 0.2);
}

.btn-gray {
  background-color: var(--gray-color);
  transition: all 0.3s ease;
}

.btn-gray:hover {
  background-color: var(--dark-gray-color);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(47, 54, 65, 0.5);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark-color)
  );
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 200, 150, 0.6);
}

.header-btn-login {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 9px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.header-btn-login:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.header-btn-register {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark-color)
  );
  color: white;
  padding: 9px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.header-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 200, 150, 0.5);
}

@media (max-width: 768px) {
  body {
    padding: 8px;
  }
  .main-container {
    border-radius: 16px;
  }
  .nav-links {
    display: none;
  }
  .header-btn-login {
    display: none;
  }
}
/* CSS for Continuous Scroll Loop */
@keyframes scroll-x-loop {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-scroll-x-container {
  /* The main container for the scrolling elements */
  animation: scroll-x-loop 30s linear infinite; /* Adjust speed as needed */
  white-space: nowrap; /* Prevent items from wrapping */
  animation-play-state: running;
  display: flex; /* Use flexbox for horizontal alignment */
  align-items: center; /* Vertically align items */
  gap: 3rem; /* Tailwind's gap-12 equivalent for spacing between platform blocks */
}

.animate-scroll-x-container:hover {
  animation-play-state: paused;
}

/* Style for each individual platform block */
.platform-block {
  flex-shrink: 0; /* Prevent items from shrinking */
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Tailwind's gap-3 for spacing between icon and text */
  padding: 0.5rem 1rem; /* Adjust padding as desired for the "block" look */
  /* Optional: Add background, border, or rounded corners for a card-like effect if wanted */
  /* background-color: rgba(255, 255, 255, 0.05); */
  /* border-radius: 0.5rem; */
}

/* Specific styling for the SVG icons within platform blocks */
.platform-block svg {
  height: 2.5rem; /* Equivalent to h-10 */
  width: 2.5rem; /* Equivalent to w-10 */
}

/* Specific styling for the platform names within platform blocks */
.platform-block span {
  font-size: 1.5rem; /* Equivalent to text-2xl */
  font-weight: 500; /* Medium font weight */
  color: #fff; /* Ensure text is white for contrast */
}

.bg-custom-dark-grey {
  background: linear-gradient(145deg, #1e293b, #334155);
}

.text-custom-green {
  color: var(--primary-color);
}

.shadow-green {
  box-shadow: 0 10px 40px rgba(0, 200, 150, 0.3);
}

.shadow-green-lg {
  box-shadow: 0 20px 60px rgba(0, 200, 150, 0.4);
}

.feature-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 200, 150, 0.1);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 200, 150, 0.4);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.service-item {
  background: linear-gradient(
    90deg,
    rgba(0, 200, 150, 0.1) 0%,
    rgba(2, 158, 106, 0.05) 100%
  );
  border-left: 3px solid var(--primary-color);
}

/* {# frequently asked questions styling #} */

.faq-item {
  background: linear-gradient(145deg, #1e293b, #334155);
  border: 1px solid rgba(0, 200, 150, 0.2);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 10px 40px rgba(0, 200, 150, 0.3);
  border-color: var(--primary-color);
}

.faq-answer {
  color: var(--secondary-color);
}

.accordion-icon.rotate {
  transform: rotate(-180deg);
}

/* 
{# for footer css  #} */

.footer-gradient {
  background: linear-gradient(
    180deg,
    rgba(0, 200, 150, 0.03) 0%,
    transparent 100%
  );
}

.platform-card {
  background: linear-gradient(
    145deg,
    rgba(30, 41, 59, 0.5),
    rgba(15, 23, 42, 0.8)
  );
  border: 1px solid rgba(0, 200, 150, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.platform-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 60px rgba(0, 200, 150, 0.2);
  background: linear-gradient(
    145deg,
    rgba(30, 41, 59, 0.8),
    rgba(15, 23, 42, 0.9)
  );
}

.platform-icon {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark-color)
  );
  transition: all 0.3s ease;
}

.platform-card:hover .platform-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(0, 200, 150, 0.4);
}

.footer-link {
  color: var(--secondary-color);
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.footer-link:hover::after {
  width: 100%;
}

.cta-button {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark-color)
  );
  box-shadow: 0 10px 30px rgba(0, 200, 150, 0.3);
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 200, 150, 0.5);
}

.social-icon-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-15px) rotate(5deg);
  }
  66% {
    transform: translateY(-8px) rotate(-5deg);
  }
}

.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 200, 150, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
}

.glow-effect:hover::before {
  opacity: 1;
  animation: glow-rotate 3s linear infinite;
}

@keyframes glow-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.divider-gradient {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
}

@media (max-width: 768px) {
  .platform-card {
    margin-bottom: 1rem;
  }
}

.sidebar-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.sidebar-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(160, 160, 160, 0.3);
  border-radius: 3px;
}
.sidebar-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(160, 160, 160, 0.5);
}

.body .modal .modal-content {
  background: #fff;
  color: black;
}

.modal-header h5 {
  color: black;
}
.modal-footer a {
  color: #fff;
}
.modal-header {
  border-bottom: none;
}
.modal-footer {
  border-top: none;
}

/* ========================================
   Select2 Theme Override - Light & Dark Mode
   ======================================== */

/* Base Selection Box */
.select2-container--default .select2-selection--single {
  background-color: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.75rem !important;
  height: auto !important;
  padding: 0.75rem 1.25rem !important;
  transition: all 0.2s ease !important;
}

.dark .select2-container--default .select2-selection--single {
  background-color: #1a1f26 !important;
  border-color: #4b5563 !important;
}

/* Hover State */
.select2-container--default .select2-selection--single:hover {
  border-color: #00c896 !important;
}

.dark .select2-container--default .select2-selection--single:hover {
  border-color: #00c896 !important;
}

/* Focus/Open State */
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #00c896 !important;
  box-shadow: 0 0 0 2px rgba(0, 200, 150, 0.15) !important;
}

/* Selected Text */
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #111827 !important;
  line-height: 1.5 !important;
  padding-left: 0 !important;
}

.dark
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #fff !important;
}

/* Arrow */
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100% !important;
  right: 12px !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: #6b7280 transparent transparent transparent !important;
}

.dark
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: #9ca3af transparent transparent transparent !important;
}

.select2-container--default.select2-container--open
  .select2-selection--single
  .select2-selection__arrow
  b {
  border-color: transparent transparent #00c896 transparent !important;
}

/* Placeholder */
.select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: #9ca3af !important;
}

.dark
  .select2-container--default
  .select2-selection--single
  .select2-selection__placeholder {
  color: #6b7280 !important;
}

/* ========================================
   Dropdown Panel
   ======================================== */
.select2-dropdown {
  background-color: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15) !important;
  overflow: hidden !important;
  margin-top: 4px !important;
}

.dark .select2-dropdown {
  background-color: #1a1f26 !important;
  border-color: #374151 !important;
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.5) !important;
}

/* ========================================
   Search Box
   ======================================== */
.select2-container--default .select2-search--dropdown {
  padding: 10px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.5rem !important;
  color: #111827 !important;
  padding: 10px 12px !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

.dark
  .select2-container--default
  .select2-search--dropdown
  .select2-search__field {
  background-color: #2f3641 !important;
  border-color: #4b5563 !important;
  color: #fff !important;
}

.select2-container--default
  .select2-search--dropdown
  .select2-search__field:focus {
  border-color: #00c896 !important;
  box-shadow: 0 0 0 2px rgba(0, 200, 150, 0.15) !important;
}

.select2-container--default
  .select2-search--dropdown
  .select2-search__field::placeholder {
  color: #9ca3af !important;
}

/* ========================================
   Results / Options
   ======================================== */
.select2-results__option {
  color: #374151 !important;
  padding: 12px 16px !important;
  font-size: 0.875rem !important;
  transition: all 0.15s ease !important;
}

.dark .select2-results__option {
  color: #d1d5db !important;
}

/* Hover State */
.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #00c896 !important;
  color: #fff !important;
}

/* Selected State */
.select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: rgba(0, 200, 150, 0.1) !important;
  color: #00c896 !important;
}

.dark
  .select2-container--default
  .select2-results__option[aria-selected="true"] {
  background-color: rgba(0, 200, 150, 0.15) !important;
  color: #00c896 !important;
}

/* Hover on Selected */
.select2-container--default
  .select2-results__option--highlighted[aria-selected="true"] {
  background-color: #00c896 !important;
  color: #fff !important;
}

/* Disabled Option */
.select2-container--default .select2-results__option[aria-disabled="true"] {
  color: #9ca3af !important;
  background-color: transparent !important;
}

.dark
  .select2-container--default
  .select2-results__option[aria-disabled="true"] {
  color: #6b7280 !important;
}

/* ========================================
   Optgroup Headers (Category Names)
   ======================================== */
.select2-results__group {
  color: #00c896 !important;
  font-weight: 700 !important;
  font-size: 0.7rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 14px 16px 8px !important;
  background-color: #f9fafb !important;
  border-top: 1px solid #e5e7eb !important;
}

.dark .select2-results__group {
  background-color: #1a1f26 !important;
  border-top-color: #374151 !important;
}

/* ========================================
   Scrollbar
   ======================================== */
.select2-results__options {
  max-height: 300px !important;
  overflow-y: auto !important;
}

.select2-results__options::-webkit-scrollbar {
  width: 6px;
}

.select2-results__options::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}

.dark .select2-results__options::-webkit-scrollbar-track {
  background: #1a1f26;
}

.select2-results__options::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.dark .select2-results__options::-webkit-scrollbar-thumb {
  background: #4b5563;
}

.select2-results__options::-webkit-scrollbar-thumb:hover {
  background: #00c896;
}

/* ========================================
   No Results Message
   ======================================== */
.select2-results__message {
  color: #6b7280 !important;
  padding: 12px 16px !important;
  font-size: 0.875rem !important;
}

.dark .select2-results__message {
  color: #9ca3af !important;
}

/* ========================================
   Loading Indicator
   ======================================== */
.select2-container--default .select2-results__option--load-more,
.select2-container--default .select2-results__option--loading {
  color: #9ca3af !important;
}

/* ========================================
   Fix Width & Z-index
   ======================================== */
.select2-container {
  width: 100% !important;
}

.select2-container--open .select2-dropdown {
  z-index: 9999 !important;
}

/* ========================================
   Clear Button (if allowClear: true)
   ======================================== */
.select2-container--default
  .select2-selection--single
  .select2-selection__clear {
  color: #9ca3af !important;
  font-size: 1.25rem !important;
  margin-right: 8px !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__clear:hover {
  color: #ef4444 !important;
}

/* ========================================
   Multiple Select (if needed)
   ======================================== */
.select2-container--default .select2-selection--multiple {
  background-color: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.75rem !important;
  padding: 0.5rem !important;
  min-height: 48px !important;
}

.dark .select2-container--default .select2-selection--multiple {
  background-color: #1a1f26 !important;
  border-color: #4b5563 !important;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background-color: #00c896 !important;
  border: none !important;
  border-radius: 0.375rem !important;
  color: #fff !important;
  padding: 4px 8px !important;
  margin: 2px !important;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove {
  color: #fff !important;
  margin-right: 4px !important;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice__remove:hover {
  color: #fecaca !important;
}

.form-group {
  margin-bottom: 1.5rem;
}

/* Style labels */
.control-label {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  margin-left: 0.25rem;
  display: block;
}

/* Style inputs */
.form-control {
  width: 100%;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  color: #111827;
  font-size: 1rem;
  transition: all 0.2s;
}

/* Dark mode for inputs (if needed) */
.form-control:focus {
  outline: none;
  border-color: #00c896;
  box-shadow: 0 0 0 1px #00c896;
}

/* Style the description box */
#service_description {
  background-color: rgba(0, 200, 150, 0.05);
  border: 1px solid rgba(0, 200, 150, 0.2);
  border-radius: 0.75rem;
  padding: 1.25rem;
  color: #4b5563;
  position: relative;
  overflow: hidden;
  min-height: 100px;
  border-left: 4px solid #00c896;
}

/* Help text styling */
.help-block {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

/* Readonly input styling */
.form-control:disabled,
.form-control[readonly] {
  background-color: #e5e7eb;
  color: #6b7280;
  cursor: not-allowed;
}

/* Min–Max helper text */
.help-block.min-max {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: #9ca3af; /* gray-400 */
}

/* Tooltip icon spacing (average time) */
.fa-circle-question {
  font-size: 0.7rem;
  color: #9ca3af;
}

/* Optional: dark mode support if you use a .dark class on body */
.dark .control-label {
  color: #9ca3af;
}

.dark .form-control {
  background-color: rgb(26 31 38 / var(--tw-bg-opacity, 1));
  border-color: #1f2933;
  color: #e5e7eb;
}

.dark #service_description {
  background: rgba(15, 23, 42, 0.9); /* #1a1f26-ish */
  border-color: rgba(0, 200, 150, 0.2);
  color: #e5e7eb;
}

/* Custom Dropdown Styles */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 12px 40px 12px 15px;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-select:hover {
  border-color: #aaa;
}

.custom-select:focus {
  outline: none;
  border-color: #007bff; /* Change to your theme's primary color */
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* Custom Arrow */
.custom-select-wrapper::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #666;
  pointer-events: none;
}

/* Style the options */
.custom-select option {
  padding: 10px;
  background: #fff;
  color: #333;
}

.custom-select option:hover {
  background: #007bff;
  color: #fff;
}

/* ========================================
   Search Services - Light & Dark Mode
   ======================================== */

/* Search Input Container */
.form-group .search-input-wrapper {
  position: relative;
}

/* Search Input */
#service-search {
  width: 100%;
  background-color: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.75rem !important;
  padding: 1rem 1rem 1rem 2.75rem !important;
  color: #111827 !important;
  font-size: 0.875rem !important;
  transition: all 0.2s ease !important;
}

.dark #service-search {
  background-color: #1a1f26 !important;
  border-color: #4b5563 !important;
  color: #fff !important;
}

#service-search::placeholder {
  color: #9ca3af !important;
}

.dark #service-search::placeholder {
  color: #6b7280 !important;
}

#service-search:focus {
  outline: none !important;
  border-color: #00c896 !important;
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.15) !important;
}

/* Search Icon */
.form-group .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.dark .form-group .search-icon {
  color: #6b7280;
}

/* ========================================
   Search Results Dropdown
   ======================================== */
.body .form-group .search-results,
.search-results {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  max-height: 350px !important;
  margin-top: 8px !important;
  padding: 8px 0 !important;
  border-radius: 0.75rem !important;
  overflow-y: auto !important;
  z-index: 1000 !important;

  /* Light mode */
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15),
    0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.dark .body .form-group .search-results,
.dark .search-results {
  background: #1a1f26 !important;
  border-color: #374151 !important;
  box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.5),
    0 4px 6px -2px rgba(0, 0, 0, 0.3) !important;
}

/* ========================================
   Search Result Items
   ======================================== */
.search-results .search-result-item,
.search-results a,
.search-results li,
.search-results .result-item {
  display: block !important;
  padding: 12px 16px !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  border-bottom: 1px solid transparent !important;

  /* Light mode */
  color: #374151 !important;
  background: transparent !important;
}

.dark .search-results .search-result-item,
.dark .search-results a,
.dark .search-results li,
.dark .search-results .result-item {
  color: #d1d5db !important;
}

/* Hover State */
.search-results .search-result-item:hover,
.search-results a:hover,
.search-results li:hover,
.search-results .result-item:hover {
  background-color: rgba(0, 200, 150, 0.1) !important;
  color: #00c896 !important;
}

.dark .search-results .search-result-item:hover,
.dark .search-results a:hover,
.dark .search-results li:hover,
.dark .search-results .result-item:hover {
  background-color: rgba(0, 200, 150, 0.15) !important;
  color: #00c896 !important;
}

/* Active/Selected State */
.search-results .search-result-item.active,
.search-results a.active,
.search-results li.active,
.search-results .result-item.active {
  background-color: #00c896 !important;
  color: #fff !important;
}

/* ========================================
   Service ID Badge
   ======================================== */
.search-results .service-id,
.search-results .result-id {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;

  /* Light mode */
  background-color: #f3f4f6;
  color: #6b7280;
}

.dark .search-results .service-id,
.dark .search-results .result-id {
  background-color: #374151;
  color: #9ca3af;
}

.search-results .search-result-item:hover .service-id,
.search-results .result-item:hover .result-id {
  background-color: rgba(0, 200, 150, 0.2);
  color: #00c896;
}

/* ========================================
   Service Price
   ======================================== */
.search-results .service-price,
.search-results .result-price {
  float: right;
  font-weight: 600;

  /* Light mode */
  color: #00c896;
}

.dark .search-results .service-price,
.dark .search-results .result-price {
  color: #00c896;
}

/* ========================================
   Category Headers in Results
   ======================================== */
.search-results .category-header,
.search-results .result-category {
  padding: 10px 16px 6px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  cursor: default !important;

  /* Light mode */
  color: #00c896 !important;
  background-color: #f9fafb !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.dark .search-results .category-header,
.dark .search-results .result-category {
  background-color: #1a1f26 !important;
  border-bottom-color: #374151 !important;
}

/* ========================================
   No Results Found
   ======================================== */
.search-results .no-results,
.search-results .empty-message {
  padding: 20px 16px !important;
  text-align: center !important;
  font-size: 0.875rem !important;

  /* Light mode */
  color: #9ca3af !important;
}

.dark .search-results .no-results,
.dark .search-results .empty-message {
  color: #6b7280 !important;
}

/* ========================================
   Loading State
   ======================================== */
.search-results .loading,
.search-results .searching {
  padding: 20px 16px !important;
  text-align: center !important;
  color: #00c896 !important;
}

.search-results .loading::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid #00c896;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   Scrollbar for Search Results
   ======================================== */
.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}

.dark .search-results::-webkit-scrollbar-track {
  background: #1a1f26;
}

.search-results::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.dark .search-results::-webkit-scrollbar-thumb {
  background: #4b5563;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: #00c896;
}

/* ========================================
   Highlight Matched Text
   ======================================== */
.search-results .highlight,
.search-results mark {
  background-color: rgba(0, 200, 150, 0.25) !important;
  color: inherit !important;
  padding: 1px 2px !important;
  border-radius: 2px !important;
}

.dark .search-results .highlight,
.dark .search-results mark {
  background-color: rgba(0, 200, 150, 0.3) !important;
}

/* ========================================
   Service Info Row (ID + Name + Price)
   ======================================== */
.search-results .service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-results .service-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========================================
   Mobile Responsive
   ======================================== */
@media (max-width: 640px) {
  .body .form-group .search-results,
  .search-results {
    position: fixed !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-height: 60vh !important;
    border-radius: 1rem !important;
  }

  .search-results .search-result-item,
  .search-results a,
  .search-results li {
    padding: 14px 16px !important;
  }

  .search-results .service-price {
    display: block;
    float: none;
    margin-top: 4px;
    font-size: 0.8rem;
  }
}

/* ========================================
   Search Input Wrapper Fix
   ======================================== */

/* Container */
#new-order-search {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
}

#new-order-search .input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Search Input - add padding for icons */
#new-order-search #searchServicesInputField {
  width: 100%;
  padding-left: 2.75rem !important;
  padding-right: 2.75rem !important;
}

/* Search Icon (Left) - Fix Position */
#new-order-search .input-wrapper__prepend,
#searchServicesButtonIcon {
  position: absolute !important;
  left: 0.875rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
}

#new-order-search .input-wrapper__prepend .icon,
#searchServicesButtonIcon .icon {
  color: #9ca3af;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.dark #new-order-search .input-wrapper__prepend .icon,
.dark #searchServicesButtonIcon .icon {
  color: #6b7280;
}

#searchServicesInputField:focus ~ #searchServicesButtonIcon .icon,
#new-order-search:focus-within .input-wrapper__prepend .icon {
  color: #00c896;
}

/* Clear Button (X - Right) - Fix Position */
#new-order-search .input-wrapper__append,
#searchServicesInputClearButton {
  position: absolute !important;
  right: 0.875rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  background: none !important;
  border: none !important;
  padding: 4px !important;
  margin: 0 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #9ca3af;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
}

.dark #searchServicesInputClearButton {
  color: #6b7280;
}

#searchServicesInputClearButton:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
}

.dark #searchServicesInputClearButton:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.2);
}

/* Hide X button when input is empty (optional - JS handles this) */

/* ========================================
   Remove extra dropdown arrow from Category
   ======================================== */
.custom-select-wrapper::after {
  display: none !important;
}
