/* CarShub365 - Updated CSS with Local Car Images */
@import url('./navbar.css');

/* Root Variables - Black + cobalt/electric blue theme */
/* Fluid typography: min 14px for readability on mobile */
:root {
    --font-body: clamp(14px, 2vw, 16px);
    --touch-target-min: 44px;
    --primary-color: rgb(0, 100, 220);
    --primary-blue-dark: rgb(0, 70, 180);
    --primary-blue-bright: rgb(0, 130, 255);
    --border-blue: rgb(0, 100, 220);
    --border-blue-bright: rgb(0, 130, 255);
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #0d0d0d;
    --gradient-primary: linear-gradient(135deg, rgb(0, 70, 180) 0%, rgb(0, 130, 255) 100%);
    --gradient-secondary: linear-gradient(135deg, rgb(0, 70, 180) 0%, rgb(0, 130, 255) 100%);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Page transitions (fade out on leave, fade in on load) */
html {
    background: var(--dark-color);
    min-height: 100%;
}
body {
    opacity: 0;
    font-size: var(--font-body);
}
body.page-transition-in {
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}
body.page-transition-out {
    opacity: 0;
    transition: opacity 0.18s ease-in-out;
}

/* Mobile: do not hide the whole page during transition bootstrap */
@media (max-width: 991.98px) {
    body {
        opacity: 1;
    }

    body.page-transition-in,
    body.page-transition-out {
        opacity: 1;
        transition: none;
    }
}

/* Keep main content in front of body::before background layer (exclude fixed overlays/widgets) */
body > *:not(.contact-widget-overlay):not(.contact-widget-icon):not(.offcanvas):not(.offcanvas-backdrop):not(.modal):not(.modal-backdrop):not(.skip-link):not(.navbar):not(.notification-dropdown) {
    position: relative;
    z-index: 1;
}

/* Loading overlay â€“ Bootstrap spinner + label (shown until page ready) */
.page-load-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
/* Ensure overlay and all children are click-through (fixes modal buttons blocked after Gmail login) */
.page-load-overlay,
.page-load-overlay * {
    pointer-events: none !important;
}
.page-load-overlay .page-load-content {
    padding: 7.5rem;
}
/* Logo centered inside the loading circle */
.page-load-overlay .page-load-spinner-wrap {
    position: relative;
    display: inline-block;
}
.page-load-overlay .page-load-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 11.25rem;
    height: auto;
    max-height: 11.25rem;
    object-fit: contain;
    pointer-events: none;
}
/* Bootstrap spinner on dark – use site blue range (primary / primary-blue-bright) */
.page-load-overlay .spinner-border {
    border-width: 0.25em;
    border-color: var(--primary-color);
    border-right-color: transparent;
    animation: page-load-spin 0.75s linear infinite;
}
.page-load-overlay .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 2.1875rem;
    margin-top: 1.5rem !important;
}
@keyframes page-load-spin {
    to { transform: rotate(360deg); }
}

/* Customer and business: show success/green text as white */
.customer-page .text-success,
.business-page .text-success {
    color: #fff !important;
}

/* Category checkboxes (multi-select) â€“ used on business & customer pages */
.category-checkboxes-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.5rem 0;
}
.category-checkboxes-wrapper .category-checkboxes-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 0.25rem;
}
.category-checkboxes-wrapper .btn-select-all-categories {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    white-space: nowrap;
}
.category-checkboxes-wrapper .category-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
}
.category-checkboxes-wrapper .form-check {
    margin-bottom: 0;
    min-height: auto;
}
.category-checkboxes-wrapper .form-check-input {
    margin-top: 0.1rem;
    cursor: pointer;
}
.category-checkboxes-wrapper .form-check-label {
    cursor: pointer;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}
.category-checkboxes-wrapper .form-check-label:hover {
    color: #fff;
}

/* Category dropdown (checkbox filter) â€“ used on index & customer dashboard */
.category-dropdown .dropdown-toggle {
    gap: 0.5rem;
}
.category-dropdown {
    position: relative;
    z-index: 100010;
}
.category-dropdown .category-dropdown-menu {
    background: rgba(15, 15, 20, 0.98);
    border: 1px solid var(--border-blue);
    border-radius: 10px;
    min-width: 260px;
    max-width: 320px;
    z-index: 100020;
}
.category-dropdown .category-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 0.25rem;
}
.category-dropdown .form-check {
    margin-bottom: 0;
}
.category-dropdown .form-check-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Price includes tax & work â€“ global indicator */
.price-includes-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.price-includes-note i {
    opacity: 0.8;
}
.price-includes-note.text-muted,
.price-includes-note.text-white-50 {
    color: inherit;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #e8e8e8;
    overflow-x: hidden;
    /* Ensure background always visible (fallback when ::before is behind content) */
    background: linear-gradient(135deg, rgb(0, 70, 180) 0%, rgb(0, 130, 255) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}

/* Background - gradient only (car-bg image optional; avoid 404 if missing) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
        linear-gradient(135deg, rgb(0, 70, 180) 0%, rgb(0, 130, 255) 100%);
    z-index: 0;
    pointer-events: none;
}

/* CSS animation removed - using JavaScript for smooth 2-second transitions */

/* Hero Section with car image and fallback */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
        linear-gradient(135deg, rgb(0, 70, 180) 0%, rgb(0, 130, 255) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-image 2s ease-in-out;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95) !important;
    padding: 0.5rem 0;
    box-shadow: var(--shadow-medium);
}

.navbar-brand {
    font-size: 1.8rem;
    color: #fff !important;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-brand img {
    transition: transform 0.2s ease;
    pointer-events: auto;
    cursor: pointer;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Business pages: navbar brand and page titles in white; logo same as customer (no filter) */
.business-page .navbar-brand,
.business-page .navbar-brand:hover {
    color: #fff !important;
}
.business-page .navbar-brand img {
    filter: none; /* match customer pages: logo in original colors */
}
.business-page h1,
.business-page .dashboard-content h1,
.business-page .page-title {
    color: #fff !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 2;
}

/* Dropdown Menu Positioning */
.navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-top: 0.5rem;
    min-width: 200px;
}

.navbar .dropdown-menu .dropdown-item {
    color: #333 !important;
    padding: 0.75rem 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
    margin: 0.25rem;
}

.navbar .dropdown-menu .dropdown-item:hover {
    background: rgba(0, 100, 220, 0.15) !important;
    color: var(--primary-color) !important;
}

.navbar .dropdown-menu .dropdown-divider {
    margin: 0.5rem 0.25rem;
    border-color: rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #fff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language switcher links (desktop) */
.navbar .nav-link.lang-link {
    color: rgba(255, 255, 255, 0.85) !important;
    background-color: transparent;
}
.navbar .nav-link.lang-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
}
.navbar .nav-link.lang-link.active {
    color: #fff !important;
    background-color: rgba(0, 130, 255, 0.35);
    box-shadow: 0 0 0 1px rgba(0, 130, 255, 0.6);
}
.navbar .nav-link.lang-link::after {
    display: none; /* No underline on lang links */
}
.navbar .nav-link.lang-link .lang-icon {
    font-size: 0.9rem;
    opacity: 0.95;
}

/* Keep a small visual gap between language switcher and user menu */
.navbar .user-dropdown-container {
    margin-left: 0.375rem;
}

/* Hide auto-refresh indicators globally */
#refreshIndicator,
#refreshStatusIndicator,
.refresh-status-indicator {
    display: none !important;
}

/* Hero Section */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 70, 180, 0.15), rgba(0, 130, 255, 0.1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
    margin: 0 auto;
    text-align: center;
    max-width: 800px;
}

/* Hero buttons styling */
.hero-buttons {
    margin-top: 2rem;
    text-align: center;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    display: inline-block;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 100, 220, 0.4);
}

/* Ensure proper vertical centering */
.hero-section .container {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero image styles removed - no longer needed */

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.animate-slide-in {
    animation: slideInRight 1s ease-out 0.9s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-blue);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: #fff;
}

.service-card h4 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.service-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    display: inline-block;
}

/* Step Cards */
.step-card {
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

/* No shine effect on category dropdown toggle (dashboard + index) */
.category-dropdown > button.btn.dropdown-toggle::before {
    display: none;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-light {
    border: 2px solid var(--border-blue-bright);
    color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Forms */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-blue);
    color: #fff;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 100, 220, 0.35);
    color: #fff;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-label {
    color: #fff;
    font-weight: 500;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-blue);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-blue);
    color: #fff;
}

.card-body {
    color: rgba(255, 255, 255, 0.9);
}

/* Dashboard Styles */
.dashboard-sidebar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.dashboard-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    position: relative;
    z-index: 1;
}

/* Global alert bar: fixed at top, in front of modals and overlays */
#globalAlertBar {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 101000;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-height: 40vh;
    overflow-y: auto;
    padding: 0 1rem;
}
#globalAlertBar .alert {
    display: block !important;
    width: fit-content;
    max-width: 480px;
    min-width: min-content;
    box-sizing: border-box;
    float: none !important;
    clear: both;
}

@media (max-width: 991.98px) {
    #globalAlertBar {
        top: 56px;
        padding: 0 0.75rem;
    }
    #globalAlertBar .alert {
        max-width: calc(100vw - 1.5rem);
    }
}

/* In-page alerts that size to content (dynamic width) */
.alert-dynamic {
    width: fit-content !important;
    max-width: 100%;
    min-width: min-content;
}

/* Mobile: Hide sidebar by default, show as offcanvas */
@media (max-width: 991.98px) {
    .dashboard-sidebar {
        display: none !important;
    }
    
    .dashboard-content {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Offcanvas sidebar styling */
    #sidebarOffcanvas {
        width: 280px;
    }
    
    #sidebarOffcanvas .sidebar-nav .nav-link {
        padding: 1rem 1.5rem;
        border-radius: 8px;
        margin: 0.25rem 0.5rem;
    }
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin: 0.25rem 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(0, 100, 220, 0.25);
    color: #fff;
}

/* Business page content tabs (e.g. Customers: Registered / Walk-in) â€“ dark theme so active tab text is visible */
.business-page .nav-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}
.business-page .nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.7);
    border: none;
    background: transparent;
}
.business-page .nav-tabs .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.business-page .nav-tabs .nav-link.active {
    color: #fff;
    background: rgba(13, 110, 253, 0.2);
    border-bottom: 3px solid #0d6efd;
}

/* Tables */
.table {
    color: rgba(255, 255, 255, 0.9);
}

.table-dark {
    background: rgba(0, 0, 0, 0.3);
}

.table-dark th {
    border-color: var(--border-blue);
    color: #fff;
}

.table-dark td {
    border-color: var(--border-blue);
}

/* Status Badges */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.badge-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-confirmed {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.badge-completed {
    background: rgba(0, 100, 220, 0.25);
    color: var(--primary-color);
    border: 1px solid rgba(0, 130, 255, 0.4);
}

.badge-cancelled {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Business Cards with local images */
.business-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.business-image {
    position: relative;
    overflow: hidden;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.business-card:hover .business-image img {
    transform: scale(1.05);
}

.business-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-tags .badge {
    font-size: 0.75rem;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Hero: clear fixed navbar on small screens */
    #heroSection {
        padding-top: 80px;
    }
    
    /* Avoid iOS/Android blank or wrong backgrounds (narrow screens) */
    body::before,
    .hero-section {
        background-attachment: scroll;
    }

    
    /* No shine effect on primary CTAs (e.g. Register business) on mobile */
    .btn-primary::before {
        display: none;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .hero-content {
        padding: 2rem 1rem;
        margin: 0 auto;
        text-align: center;
    }
    
    .hero-section .container {
        height: auto;
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
        justify-content: center;
    }
}

/* Touch devices (all phones and tablets including iPad landscape) */
@media (hover: none) and (pointer: coarse) {
    body,
    body::before,
    .hero-section {
        background-attachment: scroll;
    }
}

@media (max-width: 576px) {
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 100, 220, 0.6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 130, 255, 0.8);
}

/* Utility Classes - whiter text on glass for readability */
.text-white-50 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.bg-glass,
.search-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-blue);
}

.bg-glass,
.bg-glass .card-body,
.search-container {
    color: rgba(255, 255, 255, 0.95);
}

.bg-glass h1,
.bg-glass h2,
.bg-glass h3,
.bg-glass h4,
.bg-glass h5,
.bg-glass h6,
.search-container h1,
.search-container h2,
.search-container h3 {
    color: #fff;
}

.shadow-custom {
    box-shadow: var(--shadow-medium);
}

.border-gradient {
    border: 2px solid;
    border-image: var(--gradient-primary) 1;
}

/* Theme: use blue range for borders instead of gray on main pages */
.border-secondary {
    border-color: var(--border-blue) !important;
}

/* Notification System Styles */
.notification-container {
    position: relative;
    display: inline-block;
    z-index: 9999 !important; /* Ensure container has high z-index */
}

.notification-container .nav-link {
    position: relative;
}

.notification-dropdown {
    position: fixed;
    width: 350px;
    max-height: 500px;
    background: rgba(15, 15, 20, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-blue);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    overflow: hidden;
    transform: translateY(0);
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.notification-dropdown.show,
.notification-dropdown[style*="display: block"] {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Desktop positioning and flex layout so footer stays visible */
@media (min-width: 992px) {
    .notification-dropdown {
        right: 20px;
    }
    .notification-dropdown.show,
    .notification-dropdown[style*="display: flex"] {
        display: flex;
        flex-direction: column;
    }
    .notification-dropdown .notification-header {
        flex-shrink: 0;
    }
    .notification-dropdown .notification-list {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
    }
    .notification-dropdown .notification-footer {
        flex-shrink: 0;
    }
}

.notification-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
}

.notification-header h6 {
    color: white;
    font-weight: 600;
    margin: 0;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Full-page notifications list (customer/notifications.html, business/notifications.html) */
.notification-page-list {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.notification-page-list .notification-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid rgba(0, 100, 220, 0.25);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-item.read {
    opacity: 0.7;
}

.notification-item.read .notification-title {
    font-weight: 400;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.notification-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}

.notification-unread-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 20px;
    right: 15px;
}

.notification-footer {
    padding: 12px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-footer a {
    text-decoration: none;
    transition: opacity 0.2s ease;
    color: rgba(255, 255, 255, 0.95);
    display: inline-block;
}

.notification-footer a:hover {
    opacity: 0.8;
}

/* Page footer â€“ stay at bottom, visible above background */
footer.bg-dark {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: auto;
    background: rgba(0, 0, 0, 0.85) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Notification badge */
#notificationBadge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    font-weight: 600;
    z-index: 10;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Badge when at username location - positioned above username */
#usernameBadgePlaceholder {
    position: absolute;
    top: 2px;
    right: 5px;
    z-index: 10;
}

#usernameBadgePlaceholder #notificationBadge {
    position: relative;
    top: 0;
    right: 0;
    left: auto;
    transform: translateX(0);
    white-space: nowrap;
}

/* Badge when at notification button location - positioned in top-right corner */
#notificationLink,
a[id="notificationLink"],
.nav-link[id="notificationLink"] {
    position: relative !important;
}

#notificationBadgePlaceholder {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 10;
}

#notificationBadgePlaceholder #notificationBadge {
    position: absolute;
    top: 0;
    right: 0;
}

/* Mobile: Badge positioning in navbar collapse */
@media (max-width: 991.98px) {
    /* Badge on navbar toggler button (user icon) */
    #togglerBadgePlaceholder {
        position: absolute;
        top: -5px;
        right: -5px;
        z-index: 10;
        pointer-events: none;
    }
    
    #togglerBadgePlaceholder #notificationBadge {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 10;
    }
    
    /* Ensure toggler button has relative positioning */
    .navbar-toggler[data-bs-target="#navbarNav"] {
        position: relative !important;
    }
    
    /* Badge on username in mobile navbar collapse (when menu is open) */
    .navbar-collapse.show #usernameBadgePlaceholder,
    .navbar-collapse.collapsing #usernameBadgePlaceholder {
        position: absolute;
        top: 2px;
        right: 5px;
        z-index: 10;
    }
    
    .navbar-collapse.show #usernameBadgePlaceholder #notificationBadge,
    .navbar-collapse.collapsing #usernameBadgePlaceholder #notificationBadge {
        position: relative;
        top: 0;
        right: 0;
        white-space: nowrap;
    }
    
    /* Badge on notification button in mobile navbar collapse */
    .navbar-collapse.show #notificationBadgePlaceholder,
    .navbar-collapse.collapsing #notificationBadgePlaceholder {
        position: relative;
        display: inline-block;
    }
    
    .navbar-collapse.show #notificationBadgePlaceholder,
    .navbar-collapse.collapsing #notificationBadgePlaceholder {
        position: absolute;
        top: -5px;
        right: -5px;
        z-index: 10;
    }
    
    .navbar-collapse.show #notificationBadgePlaceholder #notificationBadge,
    .navbar-collapse.collapsing #notificationBadgePlaceholder #notificationBadge {
        position: absolute;
        top: 0;
        right: 0;
    }
}

.notification-badge-placeholder {
    position: relative;
    display: inline-block;
}

/* Username badge placeholder specific styling */
#usernameBadgePlaceholder {
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin-left: 5px;
    padding-top: 0;
}

/* Mobile notification dropdown (single source of truth) */
@media (max-width: 991.98px) {
    .notification-dropdown {
        width: calc(100vw - 20px);
        max-width: 400px;
        position: fixed;
        /* top will be set by JavaScript */
        bottom: 0;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        z-index: 100000;
        border-radius: 15px 15px 0 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
        display: flex;
        flex-direction: column;
        max-height: none;
        will-change: transform;
        overflow: hidden;
    }

    .notification-dropdown .notification-header {
        flex-shrink: 0;
    }

    .notification-dropdown .notification-list {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .notification-dropdown .notification-footer {
        flex-shrink: 0;
        order: 99;
    }

    .notification-dropdown.show {
        display: flex;
        visibility: visible;
        opacity: 1;
    }
}

/* Extra small screens - adjust width */
@media (max-width: 576px) {
    .notification-dropdown {
        width: calc(100vw - 32px);
        max-width: none;
        border-radius: 12px 12px 0 0;
    }
}

/* Scrollbar for notification list */
.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Registration Wizard Styles */
.registration-progress {
    margin-bottom: 2rem;
}

.registration-progress .progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.registration-progress .progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--info-color));
    transition: width 0.3s ease;
}

.progress-steps {
    position: relative;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    transition: color 0.3s ease;
    position: relative;
}

.step-indicator i {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.step-indicator.active {
    color: var(--primary-color);
}

.step-indicator.active i {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 100, 220, 0.5);
}

.step-indicator.completed {
    color: var(--success-color);
}

.step-indicator.completed i {
    background: var(--success-color);
    color: white;
}

.registration-step {
    min-height: 300px;
    animation: fadeIn 0.3s ease-in;
}

.registration-step.d-none {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-loading,
.registration-success {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.registration-success i {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

#regWizardFooter {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
}

#registrationWizardModal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 100, 220, 0.35);
}

#registrationWizardModal .form-control.is-invalid {
    border-color: var(--danger-color);
}

#registrationWizardModal .form-control.is-valid {
    border-color: var(--success-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .step-indicator {
        font-size: 0.75rem;
    }
    
    .step-indicator i {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .registration-step {
        min-height: 250px;
    }
}

/* Skip link for accessibility (keyboard/screen reader) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 100000;
    padding: 0.75rem 1.25rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 6px;
    font-weight: 500;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Mobile: table horizontal scroll wrapper */
@media (max-width: 767.98px) {
    .table-responsive-mobile {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive-mobile table {
        min-width: 500px;
    }
}

/* Touch targets: ensure interactive elements meet 44x44px minimum */
@media (pointer: coarse) {
    .btn-close {
        min-width: var(--touch-target-min);
        min-height: var(--touch-target-min);
        padding: 0.5rem;
    }
    .modal .btn-close {
        min-width: var(--touch-target-min);
        min-height: var(--touch-target-min);
    }
}

/* Business list pagination (dashboard and index) */
.business-list-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}
.business-list-pagination-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}
.business-list-pagination .btn-pagination-prev,
.business-list-pagination .btn-pagination-next {
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 1rem;
}
.business-list-pagination .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.business-list-pagination-label {
    font-size: 0.95rem;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .business-list-pagination {
        margin-top: 1rem;
        padding: 0.5rem 0;
    }
    .business-list-pagination .btn-pagination-prev,
    .business-list-pagination .btn-pagination-next {
        min-height: 44px;
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }
    .business-list-pagination-label {
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        order: -1;
    }
    .business-list-pagination-inner {
        flex-direction: column;
        width: 100%;
    }
}
@media (max-width: 576px) {
    .business-list-pagination-inner {
        gap: 0.5rem;
    }
}

/* backdrop-filter fallback for older browsers */
@supports not (backdrop-filter: blur(10px)) {
    .bg-glass,
    .modal-content.bg-glass,
    [class*="backdrop"] {
        background: rgba(20, 25, 35, 0.95);
    }
}

/* iOS Safari renders its own native light-themed picker for date/time inputs,
   ignoring dark Bootstrap overrides. Switch these inputs to a light theme on
   touch devices so the native picker UI doesn't clash with the form. */
@media (hover: none) and (pointer: coarse) {
    input[type="date"],
    input[type="time"] {
        background-color: #ffffff !important;
        color: #212529 !important;
        border-color: #ced4da !important;
    }
}
