/* Custom Thin Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgb(88 28 135); /* Styled with your primary theme color */
    border-radius: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #e04400;
}

/* Firefox Support */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgb(88 28 135) #f1f1f1;
}

/* Utility styles for mobile horizontal scrolling */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Banner Slide Container */
.slide {
    width: 100%;
    flex-shrink: 0;
}

/* Smooth Pagination Pill Transition */
.pagination-dot { 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

.pagination-dot.active {
    background-color: #ffffff !important;
    width: 1.5rem !important;
}

/* Custom Sidebar Scrollbar Base */
.custom-sidebar-scroll {
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: gray transparent;
}

/* Webkit Scrollbar (Desktop) */
.custom-sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}
.custom-sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.custom-sidebar-scroll::-webkit-scrollbar-thumb {
    background-color: gray; /* Set to your theme accent */
    border-radius: 9999px;
    min-height: 30px;
    max-height: 30px;
}

/* -------------------------------------------------------------------------- */
/* POINT #2: HIDE SCROLLBARS ON MOBILE DEVICES (< 1024px)                     */
/* -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
    .custom-sidebar-scroll {
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important;  /* IE/Edge */
    }
    .custom-sidebar-scroll::-webkit-scrollbar {
        display: none !important; /* Chrome/Safari/Opera */
        width: 0 !important;
    }
}

/* Floating Container - Center Right */
.floating-support-wrapper {
    position: fixed;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    z-index: 9999;
}

/* Base Button Styling */
.floating-support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FF4D00; /* Theme Accent Color */
    color: #ffffff;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
}

.floating-support-btn:hover {
    color: #ffffff;
    background-color: #e04400;
    box-shadow: 0 6px 20px rgba(255, 77, 0, 0.35);
}

/* Support Icon */
.floating-support-btn .support-icon {
    font-size: 1.25rem;
    min-width: 24px;
    text-align: center;
}

/* Collapsed Text State */
.floating-support-btn .support-text {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    font-weight: 600;
    font-size: 0.9rem;
    transition: max-width 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
}

/* Expanded State Triggered via Click/Toggle Class */
.floating-support-wrapper.is-expanded .floating-support-btn {
    padding: 12px 20px 12px 16px;
    border-radius: 30px;
}

.floating-support-wrapper.is-expanded .support-text {
    max-width: 150px;
    opacity: 1;
    margin-left: 10px;
}

@keyframes skeleton-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }

  .skeleton-box, .bg-gray-200 {
    position: relative;
    overflow: hidden;
    background-color: #e5e7eb; /* Tailwind gray-200 */
    border-radius: 0.375rem;
  }

  /* Dark skeleton variation for dark footers */
  .skeleton-box-dark {
    position: relative;
    overflow: hidden;
    background-color: #1e293b; /* Tailwind slate-800 */
    border-radius: 0.375rem;
  }

  .bg-gray-200::after,
  .skeleton-box::after,
  .skeleton-box-dark::after {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0.2) 20%,
      rgba(255, 255, 255, 0.5) 60%,
      rgba(255, 255, 255, 0)
    );
    animation: skeleton-shimmer 1.5s infinite;
    content: '';
  }

  /* Global utility class for hiding components */
  .component-hidden {
    display: none !important;
  }