/* ==========================================================================
   OSCAR DISPATCH - 24-HOUR INTERACTIVE DEMO STYLES
   Self-contained styles for Demo Banner, Guided Tour, Modals & Driver Switcher
   ========================================================================== */

/* --- Demo Top Sticky Banner --- */
#oscar-demo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.94) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(90, 103, 242, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #f8fafc;
    box-sizing: border-box;
    gap: 0.75rem;
    animation: demoBannerSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes demoBannerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Adjust page body padding when banner is active */
body.oscar-demo-active {
    padding-top: 48px !important;
}

body.oscar-demo-active .sidebar {
    top: 48px !important;
    height: calc(100vh - 48px) !important;
}

body.oscar-demo-active .main-header {
    top: 48px !important;
    z-index: 10002 !important;
    background-color: var(--bg-sidebar) !important;
}

.content-section {
    scroll-margin-top: 110px !important;
}

/* Ensure all modals display in front of tour elements */
.modal {
    z-index: 100050 !important;
}

/* Banner Left */
.demo-banner-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex-shrink: 1;
}

.demo-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #5A67F2 0%, #4F46E5 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    box-shadow: 0 0 12px rgba(90, 103, 242, 0.45);
    white-space: nowrap;
    animation: demoPulse 2.5s infinite;
}

@keyframes demoPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(90, 103, 242, 0.4);
    }
    50% {
        box-shadow: 0 0 18px rgba(90, 103, 242, 0.75);
    }
}

.demo-company-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Banner Center (Timer) */
.demo-banner-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.25rem 0.85rem;
    border-radius: 8px;
    flex-shrink: 0;
}

.demo-timer-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-countdown-digits {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Segoe UI Mono', monospace;
    font-size: 0.92rem;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.demo-countdown-digits.warning {
    color: #f87171;
    text-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
}

/* Banner Right (Actions) */
.demo-banner-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.demo-banner-btn {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.demo-btn-tour {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
.demo-btn-tour:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.45);
}

.demo-btn-reset {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.demo-btn-reset:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transform: translateY(-1px);
}

.demo-btn-driver {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.demo-btn-driver:hover {
    background: rgba(16, 185, 129, 0.28);
    color: #10b981;
    transform: translateY(-1px);
}

/* Step 9 Driver Portal Spotlight & Attention Beacon */
body.tour-step-driver .demo-btn-driver,
.demo-btn-driver.driver-btn-attention {
    position: relative !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border: 2px solid #6ee7b7 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.45), 0 0 28px rgba(52, 211, 153, 0.95) !important;
    transform: scale(1.08) !important;
    animation: driverBeaconPulse 1.4s infinite ease-in-out !important;
    z-index: 100010 !important;
}

body.tour-step-driver .demo-btn-driver::after,
.demo-btn-driver.driver-btn-attention::after {
    content: "▲ CLICK HERE TO TEST";
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #059669;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 18px rgba(16, 185, 129, 0.7);
    border: 1px solid rgba(110, 231, 183, 0.6);
    pointer-events: none;
    animation: beaconArrowBounce 0.9s infinite alternate ease-in-out;
}

@keyframes driverBeaconPulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.5), 0 0 15px rgba(52, 211, 153, 0.6);
        transform: scale(1.05);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.25), 0 0 32px rgba(52, 211, 153, 1);
        transform: scale(1.1);
    }
}

@keyframes beaconArrowBounce {
    from {
        transform: translateX(-50%) translateY(0);
    }
    to {
        transform: translateX(-50%) translateY(4px);
    }
}

/* Tour Driver Portal CTA Card inside Popover */
.tour-driver-cta-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 78, 59, 0.35) 100%);
    border: 2px solid rgba(52, 211, 153, 0.5);
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 14px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    animation: tourCardGlow 2s infinite alternate ease-in-out;
}

@keyframes tourCardGlow {
    from { border-color: rgba(52, 211, 153, 0.4); box-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }
    to { border-color: rgba(52, 211, 153, 0.9); box-shadow: 0 0 25px rgba(16, 185, 129, 0.5); }
}

.tour-driver-cta-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.tour-driver-cta-title {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.tour-driver-cta-text {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin-bottom: 12px;
}

.tour-driver-launch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    animation: btnPulseGlow 1.5s infinite ease-in-out;
}

.tour-driver-launch-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.75);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.tour-driver-launch-btn .btn-badge {
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    color: #6ee7b7;
}

@keyframes btnPulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(16, 185, 129, 0.45);
    }
    50% {
        box-shadow: 0 4px 26px rgba(52, 211, 153, 0.85);
    }
}

.demo-btn-cta {
    background: linear-gradient(135deg, #5A67F2 0%, #4F46E5 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(90, 103, 242, 0.35);
}
.demo-btn-cta:hover {
    background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(90, 103, 242, 0.5);
}

/* --- Interactive Guided Tour Overlay & Spotlight --- */
#oscar-tour-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    pointer-events: none;
    background: transparent;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease;
}

#oscar-tour-overlay.active.step-intro {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 1;
}

#oscar-tour-overlay.active.step-active {
    pointer-events: none;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1;
}

/* Highlight for targeted workspace section without blurring the rest of the page */
.oscar-tour-highlight {
    position: relative;
    z-index: 10 !important;
    border-radius: 10px !important;
    box-shadow: 0 0 0 3px #5A67F2, 0 0 28px rgba(90, 103, 242, 0.55) !important;
    outline: none !important;
    transition: box-shadow 0.3s ease;
    animation: tourHighlightPulse 2s infinite ease-in-out;
    scroll-margin-top: 110px !important;
}

@keyframes tourHighlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 3px #5A67F2, 0 0 20px rgba(90, 103, 242, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px #818CF8, 0 0 35px rgba(90, 103, 242, 0.75);
    }
}

/* Popover Card */
#oscar-tour-popover {
    position: fixed;
    z-index: 100005;
    background: #1e293b;
    border: 1px solid rgba(90, 103, 242, 0.45);
    border-radius: 16px;
    padding: 1.25rem 1.4rem;
    font-family: 'Inter', sans-serif;
    color: #f8fafc;
    box-sizing: border-box;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
    animation: tourPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

/* Centered Popover for Welcome & Conclusion (middle of the screen) */
#oscar-tour-popover.tour-popover-centered {
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    animation: tourPopInCentered 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    width: 480px !important;
    max-width: calc(100vw - 32px) !important;
    text-align: center;
}

#oscar-tour-popover.tour-popover-centered .tour-header {
    justify-content: center;
    position: relative;
}

#oscar-tour-popover.tour-popover-centered .tour-close-btn {
    position: absolute;
    right: 0;
    top: -4px;
}

/* Docked Popover for Active Steps (compact bottom-right, draggable) */
#oscar-tour-popover.tour-popover-docked {
    top: auto;
    left: auto;
    bottom: 20px;
    right: 24px;
    transform: none;
    width: 380px !important;
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
}

/* Minimized Tour Popover state */
#oscar-tour-popover.is-minimized {
    height: auto !important;
    max-height: 48px !important;
    overflow: hidden !important;
    padding: 0.45rem 0.85rem !important;
    width: auto !important;
    min-width: 260px !important;
    border-radius: 9999px !important;
    background: #0f172a !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(90, 103, 242, 0.5) !important;
}

#oscar-tour-popover.is-minimized .tour-progress-bar,
#oscar-tour-popover.is-minimized .tour-content,
#oscar-tour-popover.is-minimized .tour-actions,
#oscar-tour-popover.is-minimized .tour-title {
    display: none !important;
}

#oscar-tour-popover.is-minimized .tour-header {
    margin-bottom: 0 !important;
    gap: 0.75rem !important;
}

@keyframes tourPopIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes tourPopInCentered {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.65rem;
    padding-bottom: 0.2rem;
    cursor: grab;
}

.tour-step-pill {
    background: rgba(90, 103, 242, 0.18);
    color: #818CF8;
    border: 1px solid rgba(90, 103, 242, 0.35);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
}

.tour-header-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    padding: 0.25rem 0.45rem;
    border-radius: 4px;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tour-header-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.1);
}

.tour-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    transition: color 0.15s;
}
.tour-close-btn:hover {
    color: #f8fafc;
}

.tour-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.tour-content {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.tour-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.tour-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5A67F2, #4F46E5);
    transition: width 0.3s ease;
}

.tour-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tour-actions-right {
    display: flex;
    gap: 0.5rem;
}

.tour-btn {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.tour-btn-prev {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}
.tour-btn-prev:hover {
    background: rgba(255, 255, 255, 0.15);
}

.tour-btn-skip {
    background: transparent;
    color: #94a3b8;
    padding: 0.45rem 0.5rem;
}
.tour-btn-skip:hover {
    color: #e2e8f0;
}

.tour-btn-next {
    background: linear-gradient(135deg, #5A67F2 0%, #4F46E5 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(90, 103, 242, 0.35);
}
.tour-btn-next:hover {
    background: linear-gradient(135deg, #4F46E5 0%, #3730A3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 103, 242, 0.45);
}

/* --- Expired Modal --- */
#oscar-demo-expired-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100010;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: 'Inter', sans-serif;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.demo-modal-card {
    background: #1e293b;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    text-align: center;
    color: #f8fafc;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
    position: relative;
}

.demo-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.35));
}

.demo-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.5px;
}

.demo-modal-text {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.demo-modal-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.btn-whatsapp-cta {
    background: #25D366;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: all 0.2s ease;
}
.btn-whatsapp-cta:hover {
    background: #22bf5b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-sandbox-restart {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-sandbox-restart:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* --- Driver Switcher in driver.html --- */
.driver-demo-bar {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.driver-demo-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.driver-switch-pills {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.driver-pill-btn {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.driver-pill-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.driver-pill-btn.active {
    background: #5A67F2;
    border-color: #5A67F2;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(90, 103, 242, 0.4);
}

/* Toast styling for demo feedback */
.demo-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e293b;
    border: 1px solid rgba(90, 103, 242, 0.4);
    color: #ffffff;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 100020;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Ensure internal login gate is NEVER shown in demo-app */
#dashboard-login-gate {
    display: none !important;
}

/* In demo mode, ensure app container is visible once unlocked */
body.oscar-demo-active .app-container {
    display: flex !important;
}

/* When locked without token, ensure workspace container is hidden */
body.demo-locked .app-container {
    display: none !important;
}

/* Mobile device strict block overlay */
#oscar-demo-device-warning {
    position: fixed;
    inset: 0;
    z-index: 99999999;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: "Inter", sans-serif;
    text-align: center;
    pointer-events: auto;
    touch-action: none;
}

/* Hide multi-brand selectors and dual-brand comparison in Demo Mode (Oscar is single brand for prospective clients) */
body.oscar-demo-active label[for="analytics-brand"],
body.oscar-demo-active #analytics-brand,
body.oscar-demo-active label[for="finance-brand"],
body.oscar-demo-active #finance-brand,
body.oscar-demo-active #brand-chart-container,
body.oscar-demo-active div:has(> #brand-chart-container) {
    display: none !important;
}

/* Let the day of week chart expand to full width when brand chart is hidden */
body.oscar-demo-active div:has(> #day-chart-container) {
    grid-column: 1 / -1 !important;
}

/* Mobile & Driver Portal Popover Responsive Adjustments */
@media (max-width: 640px) {
    #oscar-tour-popover.tour-popover-docked {
        left: 16px !important;
        right: 16px !important;
        bottom: 16px !important;
        width: calc(100vw - 32px) !important;
        max-width: calc(100vw - 32px) !important;
    }
}

/* Demo Role Switcher (Admin vs Dispatcher) */
.demo-role-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    padding: 2px;
    gap: 3px;
    margin-right: 0.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.demo-role-btn {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    cursor: pointer;
    color: #94a3b8;
    background: transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.demo-role-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.demo-role-btn.active {
    background: linear-gradient(135deg, #5A67F2 0%, #4F46E5 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(90, 103, 242, 0.45);
}

/* High-Contrast Template Live Preview Modal Styles */
#modal-template-preview .modal-content {
    background-color: var(--bg-sidebar) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-main) !important;
}

#modal-template-preview .modal-header,
#modal-template-preview .modal-footer {
    background-color: var(--bg-sidebar) !important;
    border-color: var(--border-color) !important;
}

#modal-template-preview .modal-header h2 {
    color: var(--text-main) !important;
    font-weight: 800 !important;
}

#modal-template-preview .modal-header p {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

#modal-template-preview .modal-footer span {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

body.light-theme #modal-template-preview .modal-content {
    background-color: #ffffff !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme #modal-template-preview .modal-header,
body.light-theme #modal-template-preview .modal-footer {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.light-theme #modal-template-preview .modal-header h2 {
    color: #0f172a !important;
}

body.light-theme #modal-template-preview .modal-header p {
    color: #475569 !important;
    font-weight: 500 !important;
}

body.light-theme #modal-template-preview .modal-footer span {
    color: #475569 !important;
    font-weight: 500 !important;
}

body.light-theme #modal-template-preview .modal-body {
    background-color: #f1f5f9 !important;
}

/* --- Oscar Shield WAF Styles --- */
.waf-alert-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 8px #ef4444;
    animation: wafPulse 2s infinite ease-in-out;
}

@keyframes wafPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 6px #ef4444;
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) scale(1.3);
        box-shadow: 0 0 14px #ef4444;
        opacity: 0.8;
    }
}

.badge-waf-critical {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    font-weight: 700 !important;
}

.badge-waf-high {
    background: rgba(249, 115, 22, 0.15) !important;
    color: #f97316 !important;
    border: 1px solid rgba(249, 115, 22, 0.3) !important;
    font-weight: 700 !important;
}

.badge-waf-medium {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    font-weight: 700 !important;
}

.badge-waf-reviewed {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    font-weight: 600 !important;
}

.badge-waf-unreviewed {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    font-weight: 700 !important;
}

#modal-waf-advice .modal-content {
    background: var(--bg-sidebar) !important;
    border: 1px solid var(--border-color) !important;
}

body.light-theme #modal-waf-advice .modal-content {
    background-color: #ffffff !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme #modal-waf-advice .modal-header,
body.light-theme #modal-waf-advice .modal-footer {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

body.light-theme #modal-waf-advice .modal-header h2 {
    color: #0f172a !important;
}

body.light-theme #modal-waf-advice .modal-header p {
    color: #475569 !important;
}

body.light-theme #modal-waf-advice .modal-body {
    background-color: #f1f5f9 !important;
}

body.light-theme #modal-waf-advice .modal-body h3 {
    color: #0f172a !important;
}

body.light-theme #modal-waf-advice .modal-body p {
    color: #334155 !important;
}

body.light-theme #modal-waf-advice pre {
    background-color: #e2e8f0 !important;
    color: #b91c1c !important;
    border: 1px solid #cbd5e1 !important;
}

/* --- Leads & Quotes Pipeline CRM Styles --- */
.badge-leads-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    background: var(--primary, #5A67F2);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    margin-left: auto;
    box-shadow: 0 2px 6px rgba(90, 103, 242, 0.35);
    transition: all 0.2s ease;
}

.menu-item.active .badge-leads-count {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    box-shadow: none;
}

.lead-scope-pill {
    font-size: 0.82rem;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.lead-scope-pill:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.lead-scope-pill.active {
    background: var(--primary, #5A67F2) !important;
    color: #ffffff !important;
    border-color: var(--primary, #5A67F2) !important;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(90, 103, 242, 0.35);
}

.filter-pill-btn {
    border-radius: 9999px;
    font-size: 0.78rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 500;
}

.filter-pill-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.25);
}

.filter-pill-btn.active {
    background: var(--primary, #5A67F2) !important;
    color: #ffffff !important;
    border-color: var(--primary, #5A67F2) !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(90, 103, 242, 0.3);
}

.lead-btn-convert {
    background: var(--primary, #5A67F2);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 0.45rem 1.05rem;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(90, 103, 242, 0.3);
}

.lead-btn-convert:hover {
    background: var(--primary-hover, #4F46E5);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(90, 103, 242, 0.45);
}

.lead-btn-delete {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.4rem 0.55rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.lead-btn-delete:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.lead-customer-msg {
    margin-top: 0.45rem;
    background: rgba(90, 103, 242, 0.08);
    border-left: 3px solid var(--primary, #5A67F2);
    padding: 0.35rem 0.6rem;
    border-radius: 0 4px 4px 0;
    font-size: 0.75rem;
    line-height: 1.4;
}

.lead-status-select {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.lead-status-select:focus {
    border-color: var(--primary, #5A67F2);
}

.badge-brand-hugogo {
    background: rgba(249, 115, 22, 0.15) !important;
    color: #f97316 !important;
    border: 1px solid rgba(249, 115, 22, 0.3) !important;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.badge-brand-sumo {
    background: rgba(139, 92, 246, 0.15) !important;
    color: #a78bfa !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.badge-service-pill {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.badge-status-new {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.badge-status-contacted {
    background: rgba(234, 179, 8, 0.15) !important;
    color: #eab308 !important;
    border: 1px solid rgba(234, 179, 8, 0.3) !important;
}

.badge-status-converted {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

.badge-status-declined {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

/* Crew Type Badge (CREW vs SUBCONTRACTOR) */
.crew-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.2;
    vertical-align: middle;
}

.crew-type-badge.subcontractor {
    background: #ede9fe !important;
    color: #6d28d9 !important;
    border: 1px solid rgba(109, 40, 217, 0.25) !important;
}

.crew-type-badge.crew {
    background: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid rgba(37, 99, 235, 0.25) !important;
}

/* ==========================================================================
   AI ASSISTANT WIDGET & FAB STYLES (ADMIN ONLY)
   ========================================================================== */

/* Hide during Guided Tour so it never covers tour navigation buttons, unless on AI Step 12 */
body.tour-active:not(.tour-step-ai) .oscar-ai-fab,
body.tour-active:not(.tour-step-ai) #oscar-ai-widget {
    display: none !important;
}

body.tour-active.tour-step-ai .oscar-ai-fab {
    display: inline-flex !important;
    z-index: 100010 !important;
}

/* Step 12: Position Tour Popover cleanly ABOVE the AI button so they NEVER overlap */
body.tour-step-ai #oscar-tour-popover.tour-popover-docked {
    bottom: 84px !important;
    right: 24px !important;
}

/* If minimized during Step 12 (e.g. while testing the AI chat window), dock pill cleanly at top-right */
body.tour-step-ai #oscar-tour-popover.tour-popover-docked.is-minimized {
    bottom: auto !important;
    top: 60px !important;
    right: 24px !important;
}

/* Step 12 Glowing Attention for AI Button */
.oscar-ai-fab.ai-fab-attention,
body.tour-step-ai .oscar-ai-fab {
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.5), 0 0 28px rgba(147, 51, 234, 0.9) !important;
    animation: aiFabBeacon 1.5s infinite ease-in-out !important;
}

@keyframes aiFabBeacon {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.5), 0 0 16px rgba(147, 51, 234, 0.6);
        transform: scale(1.03);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(124, 58, 237, 0.25), 0 0 32px rgba(147, 51, 234, 1);
        transform: scale(1.08);
    }
}

.tour-ai-cta-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.18) 0%, rgba(124, 58, 237, 0.25) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 12px;
    padding: 10px 14px;
    margin-top: 12px;
    text-align: center;
}

.tour-ai-cta-badge {
    display: inline-block;
    background: rgba(147, 51, 234, 0.3);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.4);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 5px;
}

.tour-ai-cta-text {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin-bottom: 8px;
}

.tour-ai-launch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.4);
    transition: all 0.2s ease;
}

.tour-ai-launch-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

/* Floating Action Button (FAB) */
.oscar-ai-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.oscar-ai-fab:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.6), 0 4px 10px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.45);
}

.oscar-ai-fab .ai-fab-icon {
    font-size: 1.25rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.oscar-ai-fab .ai-fab-badge {
    background: #22c55e;
    color: #0f172a;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 2px;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
    animation: ai-pulse 2s infinite;
}

@keyframes ai-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(0.95); }
}

/* Banner AI Button */
.demo-banner-btn.demo-btn-ai {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.demo-banner-btn.demo-btn-ai:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5);
    transform: translateY(-1px);
}

/* Main AI Chat Widget Window */
.oscar-ai-widget {
    position: fixed;
    bottom: 82px;
    right: 24px;
    width: 440px;
    max-width: calc(100vw - 32px);
    height: 600px;
    max-height: calc(100vh - 110px);
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 18px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    z-index: 9995;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.oscar-ai-widget.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Widget Header */
.oscar-ai-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid #334155;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.oscar-ai-header-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.oscar-ai-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
    flex-shrink: 0;
}

.oscar-ai-title-wrap {
    display: flex;
    flex-direction: column;
}

.oscar-ai-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.oscar-ai-subtitle {
    color: #94a3b8;
    font-size: 0.72rem;
    line-height: 1.2;
    margin-top: 2px;
}

.oscar-ai-header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.oscar-ai-hbtn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.oscar-ai-hbtn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* Chat Scrollable Area */
.oscar-ai-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #090d16;
}

/* Chat Message Bubbles */
.oscar-ai-msg {
    display: flex;
    gap: 0.6rem;
    max-width: 92%;
    animation: ai-slide-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ai-slide-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.oscar-ai-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.oscar-ai-msg.bot {
    align-self: flex-start;
}

.oscar-ai-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.oscar-ai-msg.bot .oscar-ai-msg-avatar {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
}

.oscar-ai-msg.user .oscar-ai-msg-avatar {
    background: #3b82f6;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.oscar-ai-msg-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.5;
    word-break: break-word;
}

.oscar-ai-msg.bot .oscar-ai-msg-bubble {
    background: #1e293b;
    color: #f1f5f9;
    border: 1px solid #334155;
    border-top-left-radius: 4px;
}

.oscar-ai-msg.user .oscar-ai-msg-bubble {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    border-top-right-radius: 4px;
}

/* Rich Card Elements inside Bot Bubble */
.oscar-ai-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 8px 0;
}

.oscar-ai-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 10px;
}

.oscar-ai-card-label {
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

.oscar-ai-card-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #38bdf8;
}

.oscar-ai-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
}

.oscar-ai-stat-row:last-child {
    border-bottom: none;
}

.ai-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: #ffffff !important;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ai-action-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    transform: translateY(-1px);
}

/* Quick Prompt Chips */
.oscar-ai-chips-bar {
    padding: 8px 14px;
    background: #0f172a;
    border-top: 1px solid #1e293b;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.oscar-ai-chips-bar::-webkit-scrollbar {
    height: 4px;
}

.oscar-ai-chips-bar::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.oscar-ai-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.28);
    color: #c7d2fe;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.oscar-ai-chip:hover {
    background: rgba(99, 102, 241, 0.26);
    border-color: #818cf8;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Typing Indicator Animation */
.oscar-ai-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
}

.oscar-ai-typing span {
    width: 6px;
    height: 6px;
    background: #818cf8;
    border-radius: 50%;
    animation: ai-dot 1.2s infinite ease-in-out;
}

.oscar-ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.oscar-ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ai-dot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Input Form */
.oscar-ai-input-form {
    padding: 10px 14px;
    background: #0f172a;
    border-top: 1px solid #334155;
    display: flex;
    gap: 8px;
    align-items: center;
}

.oscar-ai-input {
    flex: 1;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #f8fafc;
    padding: 9px 12px;
    font-size: 0.86rem;
    font-family: inherit;
    outline: none;
    transition: all 0.15s ease;
}

.oscar-ai-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.oscar-ai-input::placeholder {
    color: #64748b;
}

.oscar-ai-send-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.oscar-ai-send-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    transform: scale(1.05);
}



