/* CSBS Modern UI - Clean, Trust, Professional */
/* 2025 UI Refresh: Inter font, Sky Blue palette, modern components */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - 2025 Sky Blue, Neutrals, Status Pastels */
    --csbs-primary: #009FE3; /* Sky Blue */
    --csbs-primary-hover: #0088c7;
    --csbs-secondary: #3BAFDA; /* Light Sky */
    --csbs-secondary-hover: #2f97c6;
    --csbs-accent: #3BAFDA;
    --csbs-light: #f0f9ff; /* Light blue tint */
    --csbs-white: #ffffff;
    --csbs-gray-50: #F7F9FA; /* Background neutral */
    --csbs-gray-100: #EEF2F6;
    --csbs-gray-200: #E2E8F0;
    --csbs-gray-300: #CBD5E1;
    --csbs-gray-400: #94A3B8;
    --csbs-gray-500: #64748B;
    --csbs-gray-600: #475569;
    --csbs-gray-700: #334155;
    --csbs-gray-800: #1F2937;
    --csbs-gray-900: #1E293B; /* Text */
    --csbs-success: #22C55E;
    --csbs-warning: #F59E0B;
    --csbs-danger:  #EF4444;
    --csbs-info:    #009FE3;
    /* Light tints for alerts/badges */
    --csbs-success-light: rgba(34,197,94,0.12);
    --csbs-danger-light:  rgba(239,68,68,0.12);
    --csbs-warning-light: rgba(245,158,11,0.12);
    /* Shadows */
    --csbs-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --csbs-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --csbs-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --csbs-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --csbs-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Spacing */
    --csbs-spacing-xs: 0.5rem;
    --csbs-spacing-sm: 0.75rem;
    --csbs-spacing: 1rem;
    --csbs-spacing-md: 1.5rem;
    --csbs-spacing-lg: 2rem;
    --csbs-spacing-xl: 3rem;

    /* Border Radius */
    --csbs-radius-sm: 8px;
    --csbs-radius: 12px; /* Buttons and inputs */
    --csbs-radius-lg: 16px; /* Cards */
    --csbs-radius-xl: 20px;
    --csbs-radius-full: 9999px;
}

/* Reset & Base Styles */
.csbs-modern * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.csbs-modern {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    color: var(--csbs-gray-900);
    line-height: 1.6;
}

/* Typography scale */
.csbs-modern h1 { font-size: 28px; font-weight: 700; color: var(--csbs-gray-900); }
.csbs-modern h2 { font-size: 22px; font-weight: 600; color: var(--csbs-gray-900); }
.csbs-modern h3 { font-size: 18px; font-weight: 600; color: var(--csbs-gray-900); }
.csbs-modern .csbs-muted { color: var(--csbs-gray-500); }

/* Hero Section */
.csbs-hero {
    background: linear-gradient(135deg, var(--csbs-primary) 0%, var(--csbs-accent) 100%);
    color: var(--csbs-white);
    padding: var(--csbs-spacing-xl) var(--csbs-spacing);
    text-align: center;
    border-radius: var(--csbs-radius-lg);
    margin-bottom: var(--csbs-spacing-lg);
    position: relative;
    overflow: hidden;
}

.csbs-hero::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%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, -30px) rotate(120deg); }
    66% { transform: translate(30px, -20px) rotate(240deg); }
}

.csbs-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.csbs-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--csbs-spacing);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.csbs-hero p {
    font-size: 1.25rem;
    margin-bottom: var(--csbs-spacing-lg);
    opacity: 0.95;
}

/* Search Bar */
.csbs-search-hero {
    background: var(--csbs-white);
    border-radius: var(--csbs-radius-full);
    padding: var(--csbs-spacing-xs);
    display: flex;
    align-items: center;
    box-shadow: var(--csbs-shadow-xl);
    max-width: 600px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.csbs-search-hero:hover {
    transform: translateY(-2px);
}

.csbs-search-hero input {
    flex: 1;
    border: none;
    padding: var(--csbs-spacing-sm) var(--csbs-spacing);
    font-size: 1rem;
    background: transparent;
    color: var(--csbs-gray-800);
}

.csbs-search-hero input:focus {
    outline: none;
}

.csbs-search-hero button {
    background: var(--csbs-secondary);
    color: var(--csbs-white);
    border: none;
    border-radius: var(--csbs-radius-full);
    padding: var(--csbs-spacing-sm) var(--csbs-spacing-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: var(--csbs-spacing-xs);
}

.csbs-search-hero button:hover {
    background: var(--csbs-secondary-hover);
    transform: scale(1.05);
}

/* Agency Cards Grid */
.csbs-agencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--csbs-spacing-md);
    margin-bottom: var(--csbs-spacing-lg);
}

/* Agency Card */
.csbs-agency-card {
    background: var(--csbs-white);
    border-radius: var(--csbs-radius-lg);
    box-shadow: var(--csbs-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.csbs-agency-card:hover {
    box-shadow: var(--csbs-shadow-lg);
    transform: translateY(-4px);
}

.csbs-agency-header {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, var(--csbs-light) 0%, var(--csbs-gray-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--csbs-spacing);
}

.csbs-agency-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--csbs-radius-full);
    background: var(--csbs-white);
    box-shadow: var(--csbs-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--csbs-primary);
}

.csbs-agency-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--csbs-radius-full);
}

.csbs-agency-body {
    padding: var(--csbs-spacing);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.csbs-agency-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--csbs-gray-900);
    margin-bottom: var(--csbs-spacing-xs);
}

.csbs-agency-location {
    display: flex;
    align-items: center;
    gap: var(--csbs-spacing-xs);
    color: var(--csbs-gray-600);
    font-size: 0.875rem;
    margin-bottom: var(--csbs-spacing-sm);
}

.csbs-agency-rating {
    display: flex;
    align-items: center;
    gap: var(--csbs-spacing-xs);
    margin-bottom: var(--csbs-spacing);
}

.csbs-stars {
    display: flex;
    gap: 2px;
}

.csbs-star {
    color: var(--csbs-warning);
    font-size: 1rem;
}

.csbs-star.empty {
    color: var(--csbs-gray-300);
}

.csbs-rating-text {
    color: var(--csbs-gray-600);
    font-size: 0.875rem;
}

.csbs-agency-services {
    display: flex;
    flex-wrap: wrap;
    gap: var(--csbs-spacing-xs);
    margin-bottom: var(--csbs-spacing);
}

.csbs-service-tag {
    background: var(--csbs-light);
    color: var(--csbs-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--csbs-radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.csbs-agency-footer {
    display: flex;
    gap: var(--csbs-spacing-sm);
    margin-top: auto;
    padding-top: var(--csbs-spacing);
    border-top: 1px solid var(--csbs-gray-200);
}

.csbs-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: var(--csbs-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.csbs-btn-primary {
    background: var(--csbs-primary);
    color: var(--csbs-white);
}

.csbs-btn-primary:hover {
    background: var(--csbs-primary-hover);
    transform: translateY(-1px);
}

.csbs-btn-outline {
    background: transparent;
    color: var(--csbs-primary);
    border: 2px solid var(--csbs-primary);
}

.csbs-btn-outline:hover {
    background: var(--csbs-primary);
    color: var(--csbs-white);
}

.csbs-btn-secondary {
    background: var(--csbs-gray-900);
    color: var(--csbs-white);
}

.csbs-btn-secondary:hover {
    background: #0b1623;
}

.csbs-btn-ghost {
    background: transparent;
    color: var(--csbs-primary);
    border: 2px dashed transparent;
}

.csbs-btn-ghost:hover {
    background: var(--csbs-gray-100);
}

/* Additional button variants used in templates */
.csbs-btn-success { background: var(--csbs-success); color: #fff; }
.csbs-btn-success:hover { background: #16a34a; }
.csbs-btn-danger { background: var(--csbs-danger); color: #fff; }
.csbs-btn-danger:hover { background: #dc2626; }
.csbs-btn-warning { background: var(--csbs-warning); color: #111827; }
.csbs-btn-warning:hover { background: #d97706; color: #111827; }

/* Outline variants */
.csbs-btn-outline-danger { background: transparent; color: var(--csbs-danger); border: 2px solid var(--csbs-danger); }
.csbs-btn-outline-danger:hover { background: var(--csbs-danger); color: #fff; }

/* 3-Step Booking Progress */
.csbs-booking-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--csbs-spacing-lg);
    position: relative;
}

.csbs-progress-line {
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--csbs-gray-300);
    z-index: 0;
}

.csbs-progress-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--csbs-primary);
    transition: width 0.5s ease;
}

.csbs-progress-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.csbs-step-circle {
    width: 40px;
    height: 40px;
    border-radius: var(--csbs-radius-full);
    background: var(--csbs-gray-300);
    color: var(--csbs-gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--csbs-spacing-xs);
    font-weight: 700;
    transition: all 0.3s ease;
}

.csbs-progress-step.active .csbs-step-circle {
    background: var(--csbs-primary);
    color: var(--csbs-white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.csbs-progress-step.completed .csbs-step-circle {
    background: var(--csbs-success);
    color: var(--csbs-white);
}

.csbs-step-label {
    font-size: 0.875rem;
    color: var(--csbs-gray-600);
    font-weight: 500;
}

.csbs-progress-step.active .csbs-step-label {
    color: var(--csbs-primary);
    font-weight: 600;
}

/* Dashboard Sidebar Layout */
.csbs-dashboard {
    display: flex;
    min-height: 100vh;
    background: var(--csbs-gray-50);
}

.csbs-sidebar {
    width: 280px;
    background: var(--csbs-white);
    box-shadow: var(--csbs-shadow);
    border-right: 1px solid var(--csbs-gray-200);
    display: flex;
    flex-direction: column;
}

.csbs-sidebar-header {
    padding: var(--csbs-spacing-md);
    border-bottom: 1px solid var(--csbs-gray-200);
}

.csbs-sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--csbs-primary);
}

.csbs-sidebar-nav {
    flex: 1;
    padding: var(--csbs-spacing);
}

.csbs-nav-item {
    display: flex;
    align-items: center;
    gap: var(--csbs-spacing-sm);
    padding: var(--csbs-spacing-sm) var(--csbs-spacing);
    margin-bottom: var(--csbs-spacing-xs);
    border-radius: var(--csbs-radius);
    color: var(--csbs-gray-700);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.csbs-nav-item:hover {
    background: var(--csbs-light);
    color: var(--csbs-primary);
}

.csbs-nav-item.active {
    background: var(--csbs-primary);
    color: var(--csbs-white);
}

.csbs-nav-icon {
    width: 20px;
    height: 20px;
}

.csbs-nav-badge {
    margin-left: auto;
    background: var(--csbs-danger);
    color: var(--csbs-white);
    padding: 0.125rem 0.5rem;
    border-radius: var(--csbs-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.csbs-main-content {
    flex: 1;
    padding: var(--csbs-spacing-lg);
    overflow-y: auto;
}

/* Cards & Stats */
.csbs-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--csbs-spacing-md);
    margin-bottom: var(--csbs-spacing-lg);
}

.csbs-stat-card {
    background: var(--csbs-white);
    padding: var(--csbs-spacing-md);
    border-radius: var(--csbs-radius-lg);
    border: 1px solid var(--csbs-gray-200);
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: var(--csbs-spacing);
    min-height: 84px;
}

.csbs-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--csbs-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.csbs-stat-icon.primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--csbs-primary);
}

.csbs-stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--csbs-success);
}

.csbs-stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--csbs-warning);
}

.csbs-stat-content {
    flex: 1;
}

.csbs-stat-label {
    color: var(--csbs-gray-600);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.csbs-stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--csbs-gray-900);
}

/* Generic Card */
.csbs-card {
    background: var(--csbs-white);
    padding: var(--csbs-spacing-lg);
    border-radius: var(--csbs-radius-lg);
    box-shadow: var(--csbs-shadow);
}

/* Dashboard header spacing (mirrors screenshot layout) */
.csbs-dashboard-header {
    margin-bottom: var(--csbs-spacing-lg);
}

/* Quick action tiles */
.csbs-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: var(--csbs-spacing);
    margin-bottom: var(--csbs-spacing-lg);
}

.csbs-action-card {
    display: flex;
    align-items: center;
    gap: var(--csbs-spacing);
    padding: var(--csbs-spacing-md);
    min-height: 96px;
    border-radius: var(--csbs-radius-lg);
    color: var(--csbs-white);
    text-decoration: none;
    box-shadow: var(--csbs-shadow);
    background: var(--csbs-primary);
    transition: transform 0.25s ease;
}

.csbs-action-card svg { flex-shrink: 0; }
.csbs-action-card:hover { transform: translateY(-4px); }

/* Badges */
.csbs-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.csbs-badge-warning { background: rgba(245, 158, 11, 0.12); color: var(--csbs-warning); }
.csbs-badge-success { background: rgba(34, 197, 94, 0.12); color: var(--csbs-success); }
.csbs-badge-danger  { background: rgba(239, 68, 68, 0.12); color: var(--csbs-danger); }
.csbs-badge-info    { background: rgba(0, 159, 227, 0.12); color: var(--csbs-info); }
.csbs-badge-secondary { background: var(--csbs-gray-100); color: var(--csbs-gray-700); }

/* Forms */
.csbs-form-group {
    margin-bottom: var(--csbs-spacing-md);
}

.csbs-form-label {
    display: block;
    margin-bottom: var(--csbs-spacing-xs);
    color: var(--csbs-gray-700);
    font-weight: 500;
    font-size: 0.875rem;
}

.csbs-form-input,
.csbs-form-select,
.csbs-form-textarea {
    width: 100%;
    padding: var(--csbs-spacing-sm) var(--csbs-spacing);
    border: 2px solid var(--csbs-gray-200);
    border-radius: var(--csbs-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--csbs-white);
}

.csbs-form-input:focus,
.csbs-form-select:focus,
.csbs-form-textarea:focus {
    outline: none;
    border-color: var(--csbs-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.csbs-form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Alerts & Notifications */
.csbs-alert {
    padding: var(--csbs-spacing);
    border-radius: var(--csbs-radius);
    margin-bottom: var(--csbs-spacing);
    display: flex;
    align-items: center;
    gap: var(--csbs-spacing-sm);
}

.csbs-alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--csbs-success);
    border-left: 4px solid var(--csbs-success);
}

.csbs-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--csbs-warning);
    border-left: 4px solid var(--csbs-warning);
}

.csbs-alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--csbs-danger);
    border-left: 4px solid var(--csbs-danger);
}

.csbs-alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--csbs-info);
    border-left: 4px solid var(--csbs-info);
}

/* Notification Badge */
.csbs-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--csbs-white);
    box-shadow: var(--csbs-shadow-xl);
    border-radius: var(--csbs-radius-lg);
    padding: var(--csbs-spacing);
    max-width: 350px;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Tables */
.csbs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}
.csbs-table thead th {
    font-weight: 600;
    color: var(--csbs-gray-600);
    font-size: 0.85rem;
    padding: 12px 16px;
}
.csbs-table tbody tr {
    background: var(--csbs-white);
    box-shadow: var(--csbs-shadow-sm);
}
.csbs-table tbody tr:hover {
    box-shadow: var(--csbs-shadow-md);
}
.csbs-table tbody td {
    padding: 14px 16px;
}
.csbs-table tbody tr:first-child td:first-child { border-top-left-radius: var(--csbs-radius-lg); }
.csbs-table tbody tr:first-child td:last-child  { border-top-right-radius: var(--csbs-radius-lg); }
.csbs-table tbody tr:last-child  td:first-child { border-bottom-left-radius: var(--csbs-radius-lg); }
.csbs-table tbody tr:last-child  td:last-child  { border-bottom-right-radius: var(--csbs-radius-lg); }

/* Accordion */
.csbs-accordion { display: grid; gap: var(--csbs-spacing-md); }
.csbs-accordion-item { border: 1px solid var(--csbs-gray-200); border-radius: var(--csbs-radius); background: var(--csbs-white); box-shadow: var(--csbs-shadow-sm); overflow: hidden; }
.csbs-accordion-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; background: var(--csbs-gray-50); }
.csbs-accordion-title { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--csbs-gray-900); }
.csbs-accordion-content { display: none; padding: var(--csbs-spacing); border-top: 1px solid var(--csbs-gray-200); }
.csbs-accordion-item.open .csbs-accordion-content { display: block; }

/* Modals */
.csbs-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); z-index: 1000; }
.csbs-modal-content { background: var(--csbs-white); padding: var(--csbs-spacing-lg); border-radius: var(--csbs-radius-lg); box-shadow: var(--csbs-shadow-xl); max-width: 640px; width: 92%; max-height: 90vh; overflow-y: auto; }

/* Sliding Chat Drawer */
.csbs-chat-drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(720px, 92vw); background: var(--csbs-white); box-shadow: -10px 0 25px rgba(0,0,0,0.12); transform: translateX(100%); transition: transform .25s ease; z-index: 1100; display: flex; flex-direction: column; }
.csbs-chat-drawer.open { transform: translateX(0%); }
.csbs-chat-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--csbs-gray-200); font-weight: 600; }
.csbs-chat-drawer-body { flex: 1; overflow: hidden; }
.csbs-chat-drawer-body iframe { width: 100%; height: 100%; border: 0; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .csbs-hero h1 {
        font-size: 1.875rem;
    }
    
    .csbs-hero p {
        font-size: 1rem;
    }
    
    .csbs-agencies-grid {
        grid-template-columns: 1fr;
    }
    
    .csbs-dashboard {
        flex-direction: column;
    }
    
    .csbs-sidebar {
        width: 82vw;
        max-width: 320px;
        order: 0;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1001;
        flex-direction: column;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: var(--csbs-shadow-xl);
    }
    .csbs-sidebar.open {
        transform: translateX(0);
    }
    
    .csbs-sidebar-header {
        display: block;
    }
    
    .csbs-sidebar-nav {
        display: block;
        overflow-y: auto;
        padding: var(--csbs-spacing);
    }
    
    .csbs-nav-item {
        flex-direction: row;
        font-size: 0.95rem;
        padding: var(--csbs-spacing-sm) var(--csbs-spacing);
        margin: 0 0 var(--csbs-spacing-xs) 0;
        min-width: 0;
    }
    
    .csbs-main-content {
        padding: var(--csbs-spacing);
    }
    
    .csbs-drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1000;
        display: none;
    }
    
    .csbs-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .csbs-booking-progress {
        overflow-x: auto;
    }
}

/* Loading States */
.csbs-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--csbs-gray-300);
    border-top-color: var(--csbs-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Skeleton Loader */
.csbs-skeleton {
    background: linear-gradient(90deg, var(--csbs-gray-200) 25%, var(--csbs-gray-100) 50%, var(--csbs-gray-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--csbs-radius);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Chat Improvements */
.csbs-chat-container {
    background: var(--csbs-white);
    border-radius: var(--csbs-radius-lg);
    box-shadow: var(--csbs-shadow-lg);
    overflow: hidden;
}

.csbs-chat-header {
    background: var(--csbs-primary);
    color: var(--csbs-white);
    padding: var(--csbs-spacing);
    font-weight: 600;
}

.csbs-chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: var(--csbs-spacing);
    background: var(--csbs-gray-50);
}

.csbs-chat-message {
    margin-bottom: var(--csbs-spacing);
    display: flex;
    gap: var(--csbs-spacing-sm);
}

.csbs-chat-message.own {
    flex-direction: row-reverse;
}

.csbs-chat-bubble {
    max-width: 70%;
    padding: var(--csbs-spacing-sm) var(--csbs-spacing);
    border-radius: var(--csbs-radius-lg);
    background: var(--csbs-white);
    box-shadow: var(--csbs-shadow-sm);
}

.csbs-chat-message.own .csbs-chat-bubble {
    background: var(--csbs-primary);
    color: var(--csbs-white);
}

.csbs-chat-time {
    font-size: 0.75rem;
    color: var(--csbs-gray-500);
    margin-top: 0.25rem;
}

.csbs-chat-input-area {
    padding: var(--csbs-spacing);
    border-top: 1px solid var(--csbs-gray-200);
    display: flex;
    gap: var(--csbs-spacing-sm);
}

.csbs-chat-input {
    flex: 1;
}

/* Utility Classes */
.csbs-text-center { text-align: center; }
.csbs-text-left { text-align: left; }
.csbs-text-right { text-align: right; }
.csbs-mt-1 { margin-top: var(--csbs-spacing-xs); }
.csbs-mt-2 { margin-top: var(--csbs-spacing-sm); }
.csbs-mt-3 { margin-top: var(--csbs-spacing); }
.csbs-mt-4 { margin-top: var(--csbs-spacing-md); }
.csbs-mt-5 { margin-top: var(--csbs-spacing-lg); }
.csbs-mb-1 { margin-bottom: var(--csbs-spacing-xs); }
.csbs-mb-2 { margin-bottom: var(--csbs-spacing-sm); }
.csbs-mb-3 { margin-bottom: var(--csbs-spacing); }
.csbs-mb-4 { margin-bottom: var(--csbs-spacing-md); }
.csbs-mb-5 { margin-bottom: var(--csbs-spacing-lg); }
.csbs-p-1 { padding: var(--csbs-spacing-xs); }
.csbs-p-2 { padding: var(--csbs-spacing-sm); }
.csbs-p-3 { padding: var(--csbs-spacing); }
.csbs-p-4 { padding: var(--csbs-spacing-md); }
.csbs-p-5 { padding: var(--csbs-spacing-lg); }
.csbs-flex { display: flex; }
.csbs-flex-col { flex-direction: column; }
.csbs-items-center { align-items: center; }
.csbs-justify-between { justify-content: space-between; }
.csbs-justify-center { justify-content: center; }
.csbs-gap-1 { gap: var(--csbs-spacing-xs); }
.csbs-gap-2 { gap: var(--csbs-spacing-sm); }
.csbs-gap-3 { gap: var(--csbs-spacing); }
.csbs-gap-4 { gap: var(--csbs-spacing-md); }
.csbs-gap-5 { gap: var(--csbs-spacing-lg); }
.csbs-w-full { width: 100%; }
.csbs-h-full { height: 100%; }
.csbs-rounded { border-radius: var(--csbs-radius); }
.csbs-rounded-lg { border-radius: var(--csbs-radius-lg); }
.csbs-rounded-full { border-radius: var(--csbs-radius-full); }
.csbs-shadow { box-shadow: var(--csbs-shadow); }
.csbs-shadow-lg { box-shadow: var(--csbs-shadow-lg); }
