/* Body */
body {
  background-color: #f5f7fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  margin: 0;
}

/* Top Tabs */
.nav-tabs .nav-link {
  color: #5a5a5a;
  font-weight: 500;
  transition: color 0.3s, background-color 0.3s;
}
.nav-tabs .nav-link.active {
  background-color: #3f51b5;
  color: #fff;
  font-weight: 600;
  border-color: #3f51b5 #3f51b5 #fff;
}
.nav-tabs .nav-link:hover:not(.active) {
  color: #3f51b5;
}

#cartPopupContent strong {
  font-size: 1.1rem;
}


.custom-tabs .nav-link {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem 0.5rem 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3f3f3f;
  transition: all 0.2s ease;
}

.custom-tabs .nav-link i {
  font-size: 1.2rem;
}

.custom-tabs .nav-link.active {
  background-color: #3f51b5;
  color: #fff !important;
  font-weight: 600;
  border: none;
}

.custom-tabs .nav-link:hover:not(.active) {
  background-color: #e8eaf6;
  color: #3f51b5;
}




/* Side Tabs */
.list-group-item {
  border: none;
  padding: 12px 16px;
  font-weight: 500;
  color: #444;
  transition: background 0.3s, color 0.3s;
}
.list-group-item:hover {
  background-color: #e0e7ff;
  color: #1a237e;
}
.list-group-item.active {
  background-color: #3f51b5;
  color: #fff;
  font-weight: 600;
}

/* Services Container */
#servicesTable {
  background-color: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.service-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eaeaea;
}
.service-row:last-child {
  border-bottom: none;
}
.service-row button {
  min-width: 100px;
}
.service-row {
    transition: background-color 0.2s ease-in-out;
}

.service-row:hover {
    background-color: #e8f0fe !important;
    color: #1a237e;
}


/* Cart Button (Bubble) */
#cartBubble {
  background: linear-gradient(135deg, #3f51b5, #1a237e);
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease-in-out;
  z-index: 10;
}
#cartBubble:hover {
  transform: scale(1.1);
}
#cartBubble span {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #ff1744;
  color: white;
  font-size: 12px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

/* Cart Popup */
#cartPopup {
  position: absolute;
  top: 60px;
  right: 0;
  width: 300px;
  max-height: 400px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  padding: 16px;
  z-index: 5;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  font-size: 14px;
}
#cartPopup .popup-header {
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* Choose Time Button */
#cartPopup button.btn-primary {
  background-color: #3f51b5;
  border-color: #3f51b5;
  transition: background-color 0.3s ease-in-out;
}
#cartPopup button.btn-primary:hover {
  background-color: #303f9f;
  border-color: #303f9f;
}

/* Scrollbar (Optional refinement) */
#cartPopup::-webkit-scrollbar {
  width: 8px;
}
#cartPopup::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}


#calendarGrid .calendar-day {
  width: 80px;
  height: 70px;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}
#calendarGrid .calendar-day.active {
  background-color: #3f51b5 !important;
  color: white !important;
  border-color: #3f51b5 !important;
}
a.text-primary:hover {
  color: #303f9f !important;
}



/* Time & Date Buttons - Unified Design */
.calendar-day,
.time-slot-btn {
  width: 90px;
  height: 70px;
  border: 2px solid #1a73e8;
  color: #1a73e8;
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  background-color: white;
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.calendar-day.active,
.time-slot-btn.active {
  background-color: #3f51b5;
  color: white;
  border-color: #3f51b5;
}

.time-slot-btn:hover:not(.active):not(:disabled) {
  background-color: #1a73e8;
  border-color: #1a73e8;
  color: white !important;
  cursor: pointer;
}


#timeSlots {
  gap: 10px;
}

#timeSlots .time-slot-btn {
  padding: 6px;
}
a.text-primary:hover {
  color: #303f9f !important;
}


#cartArea {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

#inlineChooseTimeBtn {
  transition: opacity 0.3s ease, transform 0.3s ease;
}


/* Wrapper for top tabs (scrollable on mobile) */
.top-tabs-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.top-tabs-wrapper::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.custom-tabs {
  flex-wrap: nowrap;
  width: max-content;
  margin: 0 auto;
  padding: 0;
  gap: 0;
}

/* ----------------------
   MOBILE VIEW (up to 768px)
------------------------ */
@media (max-width: 768px) {
  .col-md-3 {
    display: block !important;
    width: 100% !important;
  }

  #sideTabsMobile {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    width: 100% !important;
    gap: 10px;
    padding: 10px;
    scroll-snap-type: x mandatory;
  }

#sideTabsMobile .list-group-item {
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  max-width: 100%;
  scroll-snap-align: start;
  white-space: nowrap;
  text-align: center;
  border-radius: 8px;
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  padding: 8px 12px;
  transition: all 0.2s ease;
  color: #333;
}


  #sideTabsMobile .list-group-item.active {
    background-color: #3f51b5 !important;
    color: white !important;
    border-color: #3f51b5 !important;
    font-weight: 600;
  }

  #sideTabsMobile .list-group-item:hover {
    background-color: #e8f0fe;
    color: #1a237e;
  }

  #sideTabsMobile::-webkit-scrollbar {
    height: 6px;
  }

  #sideTabsMobile::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
  }

  .custom-tabs .nav-link {
    width: 120px;
    height: 90px;
  }

  .custom-tabs .nav-link .tab-content {
    gap: 12px;
    font-size: 0.75rem;
  }

  .custom-tabs .nav-link .tab-content i {
    font-size: 1.8rem;
  }
}

/* ----------------------
   DESKTOP SIDE TABS
------------------------ */
@media (min-width: 768px) {
  #sideTabsDesktop {
    background-color: #ffffff;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  #sideTabsDesktop .list-group-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 10px 16px;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    color: #333;
  }

  #sideTabsDesktop .list-group-item:hover {
    background-color: #e8eaf6;
    color: #3f51b5;
  }

  #sideTabsDesktop .list-group-item.active {
    background-color: #3f51b5;
    color: white;
    font-weight: 600;
    border: 1px solid #3f51b5;
  }
}

/* ----------------------
   STICKY CART BAR
------------------------ */
#stickyCartBar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: #ffffff;
  padding: 12px 20px;
  margin-bottom: 16px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

/* ----------------------
   TOP TABS STYLES
------------------------ */
#topTabsContainer {
  background-color: #ffffff;
  padding: 12px;
  padding-bottom: 2px;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 16px;
}

#topTabsContainer #sideTabsMobile {
  margin-top: 12px;
  padding: 0 10px;
  gap: 10px;
}

.top-tabs-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.top-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.custom-tabs {
  display: flex;
  flex-wrap: nowrap !important;
  white-space: nowrap;
  min-width: max-content;
  justify-content: center;
}


.custom-tabs .nav-link {
  flex: 0 0 auto;
  padding: 0.75rem 0.5rem;
  width: 140px;
  height: 100px;
  border-radius: 12px 12px 0 0;
  border: 1px solid #ddd !important;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease-in-out;
}

.custom-tabs .nav-link .tab-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-size: 0.80rem;
  line-height: 1.1;
  font-weight: 500;
}

.custom-tabs .nav-link .tab-content i {
  font-size: 2.2rem;
  color: #3f3f3f;
}

.custom-tabs .nav-link.active {
  background-color: #3f51b5;
  color: white !important;
  font-weight: 600;
  border-color: #3f51b5 !important;
}

.custom-tabs .nav-link.active .tab-content i {
  color: white;
}

.custom-tabs .nav-link:hover:not(.active) {
  background-color: #e8eaf6;
  color: #3f51b5;
}

/* ----------------------
   SERVICES
------------------------ */
.service-row {
  font-size: 0.95rem;
}

.service-row div > strong {
  font-weight: 600;
}
.scroll-tab-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  font-size: 20px;
  padding: 6px 10px;
  z-index: 2;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  cursor: pointer;
}

.scroll-tab-btn.left {
  left: 4px;
}

.scroll-tab-btn.right {
  right: 4px;
}

@media (max-width: 767px) {
  .scroll-tab-btn {
    display: none;
  }
}
/* MOBILE ONLY - Scrollable side tabs inside topTabsContainer */
@media (max-width: 768px) {
  .mobile-side-tabs-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 10px;
  }

  #sideTabsMobile {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  #sideTabsMobile .list-group-item {
    flex: 0 0 auto;
    min-width: 130px;
    scroll-snap-align: start;
    white-space: nowrap;
    text-align: center;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    padding: 10px 14px;
    color: #333;
    transition: all 0.2s ease;
  }

  #sideTabsMobile .list-group-item.active {
    background-color: #3f51b5;
    color: white;
    border-color: #3f51b5;
    font-weight: 600;
  }

  #sideTabsMobile .list-group-item:hover {
    background-color: #e8f0fe;
    color: #1a237e;
  }

  .mobile-side-tabs-scroll::-webkit-scrollbar {
    height: 6px;
  }

  .mobile-side-tabs-scroll::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
  }
}
#scrollHint {
  margin-top: -35px !important;
  margin-bottom: 20px !important;
}

#toastNotification {
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  font-size: 0.95rem;
}

@keyframes toastPop {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
  100% {
    opacity: 0.56;
    transform: translateX(-50%) scale(1);
  }
}

#toastNotification.animate {
  animation: toastPop 0.3s ease-out;
}
