:root {
    /* Modern Color Palette - Light Mode */
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --light-color: #f8fafc;
    --dark-color: #0f172a;
    
    /* Extended Color System - Light Mode */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Theme-specific colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --sidebar-bg: #0f172a;
    --sidebar-text: #f8fafc;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-success: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    --gradient-info: linear-gradient(135deg, var(--info-color) 0%, #0891b2 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
}

/* Dark Mode Theme */
[data-theme="dark"] {
    /* Standard dark mode colors - like modern apps */
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-tertiary: #8a8a8a;
    --border-color: #3d3d3d;
    --card-bg: #1e1e1e;
    --sidebar-bg: #0d0d0d;
    --sidebar-text: #ffffff;
    
    /* Adjusted grays for dark mode */
    --gray-50: #2d2d2d;
    --gray-100: #3d3d3d;
    --gray-200: #4d4d4d;
    --gray-300: #5d5d5d;
    --gray-400: #8a8a8a;
    --gray-500: #b3b3b3;
    --gray-600: #d4d4d4;
    --gray-700: #e5e5e5;
    --gray-800: #f5f5f5;
    --gray-900: #ffffff;
    
    /* Enhanced shadows for dark mode */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.6), 0 1px 2px -1px rgb(0 0 0 / 0.6);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.6), 0 2px 4px -2px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.7), 0 4px 6px -4px rgb(0 0 0 / 0.7);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.7), 0 8px 10px -6px rgb(0 0 0 / 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../placeholder.svg?height=1080&width=1920') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Service Cards */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--card-bg);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.service-card .card-body {
    padding: var(--space-xl);
}

.pricing {
    background: var(--bg-tertiary);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

/* Feature Items */
.feature-item {
    text-align: center;
    padding: var(--space-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

/* QR Code */
.qr-code-container {
    display: inline-block;
    padding: var(--space-xl);
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: var(--space-xl) auto;
    padding: var(--space-2xl);
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-control {
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    padding: 0.875rem 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-control:hover:not(:focus) {
    border-color: var(--gray-400);
}

.btn {
    border-radius: var(--radius-md);
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1.25;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-success:hover {
    background: #059669;
    color: white;
}

.btn-warning {
    background: var(--gradient-warning);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    color: white;
}

.btn-info {
    background: var(--gradient-info);
    color: white;
}

.btn-info:hover {
    background: #0891b2;
    color: white;
}

/* Dashboard Styles */
.dashboard-sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.dashboard-content {
    margin-left: 280px;
    padding: var(--space-xl);
    min-height: 100vh;
    background: var(--bg-primary);
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--border-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-xl);
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: var(--shadow-md);
}

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover::before {
    transform: scale(1);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

/* Table Styles */
.table-responsive {
    border-radius: var(--radius-xl);
    overflow-x: auto;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
}

.table {
    margin-bottom: 0;
    font-size: 0.95rem;
    white-space: nowrap;
}

.table thead th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    padding: var(--space-lg);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: var(--space-lg);
    vertical-align: middle;
    border-color: var(--gray-200);
    color: var(--gray-700);
}

.table tbody tr {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.table tbody tr:hover {
    background-color: var(--bg-tertiary);
    transform: scale(1.01);
}

/* Status Badges */
.status-pending { background-color: var(--warning-color); }
.status-confirmed { background-color: var(--info-color); }
.status-in-progress { background-color: var(--primary-color); }
.status-completed { background-color: var(--success-color); }
.status-cancelled { background-color: var(--danger-color); }

/* Mobile Responsive */
@media (max-width: 768px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
    }
    
    .dashboard-sidebar.show {
        transform: translateX(0);
    }
    
    .dashboard-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .feature-item {
        margin-bottom: 2rem;
    }
    
    /* Dashboard cards on mobile */
    .dashboard-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Stat cards on mobile */
    .stat-card {
        padding: 1rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    /* Table improvements for mobile */
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .table thead th {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .table tbody td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Button sizing on mobile */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    
    /* Modal improvements */
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .form-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .stat-card {
        margin-bottom: 0.5rem;
        padding: 0.75rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .table-responsive {
        font-size: 0.75rem;
    }
    
    .table thead th {
        padding: 0.4rem 0.25rem;
        font-size: 0.7rem;
    }
    
    .table tbody td {
        padding: 0.4rem 0.25rem;
        font-size: 0.75rem;
    }
    
    /* Smaller buttons on very small screens */
    .btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Service cards on mobile */
    .service-card .card-body {
        padding: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    /* Hero section adjustments */
    .hero-section {
        padding: 1.5rem 0;
    }
    
    /* Form controls on mobile */
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Alert banners on mobile */
    .alert {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .alert h5 {
        font-size: 1rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Standard scrollbar properties for better browser compatibility */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

/* Mobile-specific improvements */
@media (max-width: 991px) {
    /* Improve touch targets */
    .btn, .nav-link, .dropdown-item {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Better spacing for mobile forms */
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    /* Navbar improvements */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Card improvements */
    .card {
        border-radius: 10px;
    }
    
    /* Better modal sizing */
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* Prevent text selection on buttons and interactive elements */
.btn, .nav-link, .dropdown-toggle {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Better focus states for accessibility */
.btn:focus, .form-control:focus, .nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Improve image responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile booking cards */
#bookingsCardsContainer .card {
    border-width: 2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#bookingsCardsContainer .card:active {
    transform: scale(0.98);
}

#bookingsCardsContainer .card-header {
    font-size: 0.9rem;
    padding: 0.75rem;
}

#bookingsCardsContainer .card-body {
    font-size: 0.875rem;
}

#bookingsCardsContainer .card-body small {
    font-size: 0.75rem;
}

/* Responsive Improvements */
@media (max-width: 576px) {
    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    #bookingsCardsContainer .card-body {
        font-size: 0.8rem;
    }
    
    #bookingsCardsContainer .fs-5 {
        font-size: 1.1rem !important;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
}

/* Dashboard Layout Improvements - Centered Layout */
.dashboard-main {
    display: flex;
    min-height: 100vh;
    background: var(--gray-50);
}

.dashboard-content {
    flex-grow: 1;
    transition: margin-left 0.3s ease;
    background: var(--gray-50);
    padding: 0;
}

/* Centered Content Layout for Admin Pages */
.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

/* Enhanced Card Styles */
.card {
    border: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.card-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-success {
    background: var(--gradient-success) !important;
}

.bg-gradient-warning {
    background: var(--gradient-warning) !important;
}

.bg-gradient-info {
    background: var(--gradient-info) !important;
}

/* Enhanced Mobile Navigation */
@media (max-width: 991px) {
    .dashboard-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100%;
        z-index: 1030;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }

    .dashboard-sidebar.show {
        left: 0;
    }

    .dashboard-main.sidebar-toggled .dashboard-content {
        margin-left: 0;
    }

    .hamburger-menu {
        display: block;
    }
    
    .container-fluid {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }

    .table-responsive {
        overflow-x: auto;
        border-radius: var(--radius-lg);
    }
    
    .container-fluid {
        max-width: 100%;
        padding: var(--space-md);
    }
}

/* Navigation Improvements */
.navbar {
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--gray-200);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* Card Enhancements */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    color: var(--gray-800);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gray-300);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

/* Service Category Cards */
.service-category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-category-card:hover::before {
    opacity: 1;
}

.service-category-card .service-icon {
    transition: transform 0.3s ease;
}

.service-category-card:hover .service-icon {
    transform: scale(1.1);
}

/* Service Icon Bubble Styles */
.service-icon-bubble {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-icon-bubble::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.service-category-card:hover .service-icon-bubble::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.service-icon-bubble i {
    font-size: 2.5rem;
    color: white;
    z-index: 2;
    position: relative;
}

.service-category-card:hover .service-icon-bubble {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
}

.service-category-card .card-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service-category-card .card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .service-category-card {
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .service-category-card .card-body {
        padding: 1.5rem !important;
    }
    
    .service-icon-bubble {
        width: 70px;
        height: 70px;
    }
    
    .service-icon-bubble i {
        font-size: 2rem !important;
    }
    
    .service-category-card .card-title {
        font-size: 1.1rem;
    }
    
    .service-category-card .card-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .service-category-card .card-body {
        padding: 1.25rem !important;
    }
    
    .service-icon-bubble {
        width: 60px;
        height: 60px;
    }
    
    .service-icon-bubble i {
        font-size: 1.75rem !important;
    }
    
    .service-category-card .card-title {
        font-size: 1rem;
    }
}

/* Dark Mode Support for Service Cards */
[data-theme="dark"] .service-category-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .service-category-card:hover {
    border-color: var(--primary-light);
}

[data-theme="dark"] .service-category-card .card-title {
    color: var(--text-primary);
}

[data-theme="dark"] .service-category-card .card-text {
    color: var(--text-secondary);
}

/* Additional dropdown fixes for overlapping issues */
.dropdown {
    position: relative;
    z-index: 1000;
}

.dropdown-menu {
    z-index: 9999 !important;
    position: absolute !important;
    pointer-events: auto !important; /* Ensure dropdown blocks clicks */
    background-color: var(--bs-dropdown-bg, #fff) !important;
    border: 1px solid var(--bs-dropdown-border-color, rgba(0,0,0,.15)) !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    isolation: isolate; /* Create new stacking context */
}

.dropdown-menu.show {
    z-index: 10000 !important; /* Maximum z-index when shown */
    transform: translate3d(0, 0, 0); /* Force hardware acceleration */
    pointer-events: auto !important; /* Ensure it blocks all clicks underneath */
    display: block !important;
    isolation: isolate; /* Create new stacking context */
}

/* Ensure dropdown items have proper pointer events */
.dropdown-item {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10001 !important;
    background-color: transparent;
    transition: background-color 0.15s ease-in-out;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--bs-dropdown-link-hover-bg, #e9ecef) !important;
    pointer-events: auto !important;
}

/* Create a full-screen backdrop when dropdown is open to prevent click-through */
.dropdown.show::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998; /* Just below the dropdown menu */
    background: rgba(0, 0, 0, 0.001); /* Nearly transparent but blocks clicks */
    pointer-events: auto !important;
    cursor: default;
}

/* Ensure dropdown doesn't overflow on mobile */
@media (max-width: 768px) {
    .dropdown-menu {
        max-width: 200px;
        font-size: 0.9rem;
        z-index: 10000 !important; /* Ensure maximum z-index on mobile */
    }
    
    .dropdown-item {
        padding: 0.5rem 0.75rem;
        min-width: auto;
        pointer-events: auto !important; /* Ensure items are clickable on mobile */
        z-index: 10001 !important;
        position: relative !important;
    }
    
    .dropdown-menu-end {
        right: 0 !important;
        left: auto !important;
    }
    
    /* Stronger backdrop on mobile */
    .dropdown.show::before {
        z-index: 9998 !important;
        background: rgba(0, 0, 0, 0.002) !important; /* Slightly more visible on mobile for better click blocking */
        pointer-events: auto !important;
        cursor: default;
    }
}

/* Action Button Group Styles */
.btn-group-action {
    min-width: 0;
    flex-shrink: 1;
}

.action-btn {
    min-width: 32px;
    height: 32px;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn i {
    font-size: 0.875rem;
}

.action-btn .btn-text {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Mobile-specific styles for action buttons */
@media (max-width: 768px) {
    .btn-group-action {
        gap: 0.25rem !important;
        justify-content: flex-end !important;
    }
    
    .action-btn {
        min-width: 28px;
        height: 28px;
        padding: 0.2rem 0.3rem;
        font-size: 0.75rem;
    }
    
    .action-btn i {
        font-size: 0.75rem;
    }
    
    .action-btn .btn-text {
        display: none !important;
    }
    
    /* Ensure buttons don't wrap on very small screens */
    .btn-group-action {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .btn-group-action::-webkit-scrollbar {
        display: none;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 992px) {
    .action-btn .btn-text {
        display: none !important;
    }
}

/* Desktop styles - show text labels */
@media (min-width: 993px) {
    .action-btn {
        min-width: auto;
        padding: 0.25rem 0.75rem;
    }
}

/* Fix for table overflow causing dropdown issues */
.table-responsive {
    overflow-x: auto;
    overflow-y: visible; /* Allow dropdowns to show outside table */
}

/* Ensure dropdown button has proper spacing */
.dropdown-toggle {
    position: relative;
    z-index: 1;
}

/* Badge Improvements */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
}

/* Horizontal Scrollable Feedback Section */
.feedback-scroll-container {
    position: relative;
    margin: 0 -15px;
    padding: 0 15px;
}

.feedback-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--gray-200);
}

.feedback-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.feedback-scroll-wrapper::-webkit-scrollbar-track {
    background: var(--gray-200);
    border-radius: 4px;
}

.feedback-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.feedback-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.feedback-scroll-wrapper .content-card {
    min-width: 300px;
    max-width: 350px;
    flex-shrink: 0;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feedback-scroll-wrapper .content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feedback-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 300px;
    padding: 2rem;
    text-align: center;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .feedback-scroll-container {
        margin: 0 -10px;
        padding: 0 10px;
    }
    
    .feedback-scroll-wrapper {
        gap: 1rem;
    }
    
    .feedback-scroll-wrapper .content-card {
        min-width: 280px;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .feedback-scroll-wrapper .content-card {
        min-width: 250px;
        max-width: 270px;
    }
    
    .feedback-card-placeholder {
        min-width: 250px;
        padding: 1.5rem;
    }
}

/* Modal Improvements */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-title {
    font-weight: 600;
    color: var(--gray-900);
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Dropdown Improvements */
.dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm);
    z-index: 1050 !important; /* Ensure dropdown appears above other elements */
    position: absolute !important;
}

.dropdown-item {
    border-radius: var(--radius);
    padding: var(--space-sm) var(--space-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap; /* Prevent text wrapping */
    min-width: 150px; /* Ensure minimum width for better mobile experience */
}

.dropdown-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--gray-900);
}

/* Input Group Improvements */
.input-group {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    overflow: hidden;
}

.input-group-text {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    font-weight: 500;
}

/* Progress Bar Improvements */
.progress {
    height: 8px;
    border-radius: var(--radius);
    background: var(--gray-200);
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

/* Tooltip Improvements */
.tooltip .tooltip-inner {
    background: var(--gray-900);
    border-radius: var(--radius);
    font-size: 0.875rem;
    padding: var(--space-sm) var(--space-md);
}

/* Breadcrumb Improvements */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: var(--space-lg);
}

.breadcrumb-item {
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--gray-600);
}

/* List Group Improvements */
.list-group-item {
    border: 1px solid var(--gray-200);
    padding: var(--space-md) var(--space-lg);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-group-item:hover {
    background-color: var(--bg-tertiary);
}

.list-group-item:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.list-group-item:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Pagination Improvements */
.page-link {
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    padding: var(--space-sm) var(--space-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-link:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Better badge visibility on mobile */
@media (max-width: 576px) {
    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    #bookingsCardsContainer .card-body {
        font-size: 0.8rem;
    }
    
    #bookingsCardsContainer .fs-5 {
        font-size: 1.1rem !important;
    }
}

/* Dashboard Main Content */
.dashboard-main {
    display: flex;
}

.dashboard-content {
    flex-grow: 1;
    transition: margin-left 0.3s;
}

/* Mobile Queries for Mobile Responsiveness */
@media (max-width: 991px) {
    .dashboard-sidebar {
        position: fixed;
        left: -280px; /* Initially hidden */
        top: 0;
        height: 100%;
        z-index: 1030;
        transition: left 0.3s;
    }

    .dashboard-sidebar.show {
        left: 0;
    }

    .dashboard-main.sidebar-toggled .dashboard-content {
        margin-left: 0;
    }

    .hamburger-menu {
        display: block; /* Show hamburger */
    }
}

@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }

    .table-responsive {
        overflow-x: auto;
    }
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 600; }
h6 { font-size: 1.125rem; font-weight: 600; }

.text-muted {
    color: var(--gray-500) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

/* Form Labels */
.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
}

/* Alert Improvements */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Badge Improvements */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

/* Enhanced Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.4s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Smooth Transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus States */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Improved Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .dashboard-sidebar {
        display: none !important;
    }
    
    .dashboard-content {
        margin-left: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid var(--gray-300) !important;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--gray-900);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

/* Badge Improvements */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
}

