.dataTables_length label .form-select {
    padding-right: 25px !important;
}

/* Logo Visibility Fix */
.navbar-brand.logo img {
    width: auto !important;
    height: auto !important;
    max-height: 50px;
    object-fit: contain;
}

.navbar-brand.logo {
    margin-left: 60px !important;
}

.navbar-header {
    min-width: 150px;
}

/* Mobile Header Logo Size */
.navbar-brand.logo-small img {
    width: auto !important;
    height: auto !important;
    max-height: 52px !important;
    max-width: 180px !important;
    object-fit: contain;
}

/* Sidebar Logo Size */
.menu-logo img {
    width: auto !important;
    height: auto !important;
    max-width: 220px !important;
    max-height: 70px !important;
    object-fit: contain;
}

/* Header Logo Responsiveness Fix */
@media (max-width: 575.98px) {
    .navbar-brand.logo {
        display: none !important;
    }
    .navbar-brand.logo-small {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .navbar-header {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        position: relative;
        min-width: 0 !important; /* Remove restrictive min-width */
    }
}

/* Homepage Global Responsiveness Fixes */
@media (max-width: 991.98px) {
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    /* Hero Section Fixes */
    .hero-section .hero-content {
        padding: 40px 0 !important;
        text-align: center;
    }
    .hero-section .hero-content h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
.hero-section .banner-form {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }
    .hero-section .banner-form .d-md-flex {
        flex-direction: column;
    }
    .hero-section .banner-form .input-group {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    /* Owl Carousel Responsiveness Fix */
    .owl-carousel .owl-stage {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Ensure Slider Navs Display on Mobile */
    .service-slider.nav-center .owl-nav button,
    .img-slider.nav-center .owl-nav button,
    .feature-slider.nav-center .owl-nav button,
    .popular-slider-3.nav-center .owl-nav button {
        display: block !important;
    }

    /* Footer Responsiveness */
    .footer .footer-widget, 
    .footer .card-body {
        width: 100% !important;
        margin-bottom: 20px;
        text-align: center;
    }
    .footer .newsletter-form {
        flex-direction: column;
    }
    .footer .newsletter-form input,
    .footer .newsletter-form .btn {
        width: 100% !important;
        margin-bottom: 10px;
    }
}

/* Booking slot selection should match theme gradient */
.booking-content .time-item.selected {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
}

.booking-content .time-item.selected h6,
.booking-content .time-item.selected p {
    color: #fff;
}

#slotDateHover .time-item:hover {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
}

#slotDateHover .time-item:hover h6 {
    color: #fff;
}

/* Master category bar */
.master-category-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.master-category-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    background: #eef3ff;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #d9e2ff;
    transition: all 0.2s ease-in-out;
}

.master-category-item:hover {
    background: #e4ecff;
    color: #111827;
}

.master-category-item.active {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border-color: transparent;
}



/* Global Loading Spinner */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.global-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-container {
    text-align: center;
}

.logo-spinner {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    perspective: 800px;
}

.logo-spinner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-style: preserve-3d;
    animation: logo-spin-y 2.2s ease-in-out infinite;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.08));
    will-change: transform;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary); /* Using the theme's primary color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.loader-text {
    font-family: "Archivo", sans-serif;
    color: #242b3a;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes logo-spin-y {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(-360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-spinner img {
        animation: none;
    }
}

/* Service Overview Video */
.service-overview-video {
    position: relative;
    width: 100%;
    max-width: 640px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #111;
    background-position: center;
    background-size: cover;
    padding-top: 56.25%;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.service-overview-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
}

.service-video-play {
    position: absolute;
    inset: 0;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2;
}

.service-video-play .play-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    position: relative;
}

.service-video-play .play-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 16px;
    border-color: transparent transparent transparent #111;
}

.service-overview-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 3;
}

.service-overview-video.is-playing::after,
.service-overview-video.is-playing .service-video-play {
    display: none;
}

@media (max-width: 768px) {
    .service-overview-video {
        max-width: 100%;
    }
}
