/* ============================================
   INTERACTIVE DEMO HOTSPOT SYSTEM
   Pulsing hotspots with tooltips and audio
   ============================================ */

/* Demo Mode Banner */
.demo-banner {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
    z-index: 999998;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-banner-icon {
    animation: rotate 2s linear infinite;
}

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

/* Pulsing Hotspot Button */
.demo-hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f97316;
    border: 3px solid white;
    cursor: pointer;
    z-index: 999997;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.6);
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2s ease-in-out infinite;
}

.demo-hotspot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.4);
    animation: ripple 2s ease-out infinite;
}

.demo-hotspot:hover {
    transform: scale(1.1);
    background: #ea580c;
}

.demo-hotspot.active {
    background: #22c55e;
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(249, 115, 22, 0.6);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 6px 25px rgba(249, 115, 22, 0.8);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Tooltip Popup */
.demo-tooltip {
    position: absolute;
    background: #2a2a2a;
    border: 2px solid #f97316;
    border-radius: 12px;
    padding: 20px;
    padding-bottom: 55px; /* Reduced padding for navigation buttons */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 999999;
    min-width: 280px;
    max-width: 450px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
    pointer-events: none;
}

.demo-tooltip.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.demo-tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    display: none; /* Hidden to maintain clean border */
}

.demo-tooltip-arrow.top {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0 10px;
    border-color: #2a2a2a transparent transparent transparent;
}

.demo-tooltip-arrow.bottom {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #2a2a2a transparent;
}

.demo-tooltip-arrow.left {
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #2a2a2a;
}

.demo-tooltip-arrow.right {
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px 10px 10px 0;
    border-color: transparent #2a2a2a transparent transparent;
}

.demo-tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.demo-tooltip-icon {
    font-size: 24px;
}

.demo-tooltip-title {
    font-size: 18px;
    font-weight: 700;
    color: #f97316;
    flex: 1;
}

.demo-tooltip-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #f97316;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.demo-tooltip-close:hover {
    background: #444;
    color: #ea580c;
}

.demo-tooltip-content {
    color: white;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.demo-tooltip-progress {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 15px;
    text-align: center;
    display: none; /* Hidden - progress shown in bottom bar */
}

.demo-tooltip-audio {
    display: none; /* Hidden - audio plays automatically with universal mute */
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
}

.demo-tooltip-audio-icon {
    font-size: 20px;
    animation: audioPlaying 1s ease-in-out infinite;
}

.demo-tooltip-audio-icon.paused {
    animation: none;
}

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

.demo-tooltip-audio-controls {
    display: flex;
    gap: 8px;
}

.demo-audio-btn {
    background: #f97316;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.demo-audio-btn:hover {
    background: #ea580c;
    transform: translateY(-1px);
}

.demo-audio-btn.secondary {
    background: #6b7280;
}

.demo-audio-btn.secondary:hover {
    background: #4b5563;
}

.demo-tooltip-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 0;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    border: none;
}

.demo-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.demo-btn-icon {
    padding: 8px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 0;
    background: #444;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.demo-btn-icon:first-child {
    border-right: 1px solid #555;
}

.demo-btn-icon svg {
    width: 18px;
    height: 18px;
    stroke: #f97316;
}

.demo-btn-icon:hover {
    background: #555;
}

/* Subtle pulse animation for the next arrow icon */
#tooltip-next svg {
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.demo-btn-primary {
    background: #f97316;
    color: white;
}

.demo-btn-primary:hover {
    background: #ea580c;
    transform: translateY(-1px);
}

.demo-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.demo-btn-secondary:hover {
    background: #d1d5db;
}

.demo-btn-skip {
    background: transparent;
    color: #6b7280;
    text-decoration: underline;
}

.demo-btn-skip:hover {
    color: #374151;
}

/* Welcome Modal */
.demo-welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
    opacity: 0;
    transition: opacity 0.8s ease, backdrop-filter 0.8s ease;
    backdrop-filter: blur(0px);
    pointer-events: none;
}

.demo-welcome-modal.visible {
    opacity: 1;
    backdrop-filter: blur(8px);
    pointer-events: all;
}

.demo-welcome-content {
    background: #2d2d2d;
    border-radius: 16px;
    padding: 25px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.8s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.demo-welcome-modal.visible .demo-welcome-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.demo-welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: #f97316;
    margin-bottom: 15px;
}

.demo-welcome-description {
    font-size: 16px;
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 20px;
}

.demo-control-explanation {
    text-align: left;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.demo-control-explanation h3 {
    color: #f97316;
    font-size: 18px;
    margin-bottom: 15px;
}

.control-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.control-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d1d5db;
    font-size: 14px;
}

.feature-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.feature-text {
    flex: 1;
}

.navigation-text {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.demo-welcome-modes {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.demo-mode-card {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #444;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #1a1a1a;
}

.demo-mode-card:hover {
    border-color: #f97316;
    background: #2a2a2a;
}

.demo-mode-card.selected {
    border-color: #f97316;
    background: #2a2a2a;
}

.demo-mode-icon {
    display: none;
}

.demo-mode-name {
    font-weight: 600;
    color: #f97316;
    margin-bottom: 4px;
    font-size: 15px;
}

.demo-mode-desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.3;
}

/* Overlay */
.demo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999996;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.demo-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* Progress Bar - Thin bar at top of screen */
.demo-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 20px;
    z-index: 999997;
    display: none; /* Hidden - was covering title on mobile */
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #f97316;
}

.demo-progress-text {
    font-size: 13px;
    color: #f97316;
    font-weight: 600;
    white-space: nowrap;
}

.demo-progress-track {
    flex: 1;
    height: 4px;
    background: #444;
    border-radius: 2px;
    overflow: hidden;
}

.demo-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
    transition: width 0.3s ease;
    width: 0%;
}

/* Control Panel - Small Tab in Upper-Right Corner */
.demo-control-panel {
    position: fixed;
    right: 10px;
    top: 10px;
    background: #777777;
    border: 2px solid #f97316;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 999998;
    display: flex;
    gap: 8px;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Slide to left corner when needed */
.demo-control-panel.slide-left {
    right: auto;
    left: 10px;
}

/* Move to lower-right corner for hotspots 14-23 */
.demo-control-panel.lower-right {
    top: auto;
    bottom: 10px;
    right: 10px;
    left: auto;
}

/* Collapsed State - Small Tab Like Mind Studio */
.demo-control-panel.collapsed {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    width: 45px;
    height: 45px;
}

.demo-control-panel.collapsed .demo-control-buttons {
    display: none;
}

.demo-control-panel.collapsed .demo-control-progress {
    margin-bottom: 0;
    cursor: pointer;
    width: 45px;
    height: 45px;
    background: #777777;
    border-radius: 8px;
    border: 2px solid #f97316;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slow-pulse 3.6s ease-in-out infinite;
    font-size: 24px;
}

.demo-control-panel.collapsed .demo-control-progress::before {
    content: '📱';
}

.demo-control-panel.collapsed .demo-control-progress:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
    background: #888888;
}

/* Hide the fill bar when collapsed */
.demo-control-panel.collapsed .demo-control-progress-fill {
    display: none;
}

/* Hide step counter and toggle button when collapsed */
.demo-control-panel.collapsed .demo-control-step {
    display: none;
}

.demo-control-panel.collapsed .demo-control-toggle {
    display: none;
}

/* Hide step counter in progress bar when expanded */
.demo-control-panel:not(.collapsed) .demo-control-progress .demo-control-step {
    display: none;
}

/* Hide step counter completely when panel is expanded (for mobile visibility of close button) */
.demo-control-panel:not(.collapsed) .demo-control-step {
    display: none !important;
}

/* Show step counter in buttons section when expanded */
.demo-control-panel.collapsed .demo-control-buttons .demo-control-step {
    display: none;
}

.demo-control-progress {
    width: 100%;
    height: 4px;
    background: #444;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
    display: flex;
    align-items: center;
}

/* Toggle button INSIDE the bar */
.demo-control-toggle {
    position: relative;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.demo-control-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.demo-control-toggle svg path {
    fill: white !important;
    stroke: none !important;
}

.demo-control-toggle:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* When collapsed, show UP arrow */
.demo-control-panel.collapsed .demo-control-toggle svg {
    transform: rotate(0deg);
}

/* When expanded, show DOWN arrow */
.demo-control-panel:not(.collapsed) .demo-control-toggle svg {
    transform: rotate(180deg);
}

/* Keep toggle visible when expanded - it becomes the close button */
.demo-control-panel:not(.collapsed) .demo-control-progress {
    display: none; /* Hide the whole progress bar when expanded */
}

@keyframes gentle-pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
    }
    50% {
        box-shadow: 0 8px 30px rgba(249, 115, 22, 0.8);
    }
}

@keyframes slow-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
    }
}

.demo-control-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
    transition: width 0.3s ease;
    width: 0%;
}

.demo-control-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.demo-control-step {
    font-size: 12px;
    color: #f97316;
    font-weight: 600;
    white-space: nowrap;
    padding: 0 8px;
}

/* Hotspot Selector Container */
.demo-hotspot-selector-container {
    position: relative;
}

/* Hotspot Dropdown */
.demo-hotspot-dropdown {
    position: fixed;
    top: 70px;
    right: 10px;
    background: #2a2a2a;
    border: 2px solid #f97316;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    min-width: 320px;
    max-width: 400px;
    max-height: 500px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000000;
}

.demo-hotspot-dropdown.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 12px 16px;
    background: #1a1a1a;
    border-bottom: 2px solid #f97316;
    color: #f97316;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-items {
    padding: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #444;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f97316;
}

.dropdown-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: #f97316;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.dropdown-item:hover .dropdown-number {
    background: white;
    color: #f97316;
}

.dropdown-title {
    color: white;
    font-size: 13px;
    font-weight: 500;
    flex: 1;
    line-height: 1.3;
}

/* Hotspot Option */
.demo-hotspot-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #444;
}

.demo-hotspot-option:last-child {
    border-bottom: none;
}

.demo-hotspot-option:hover {
    background: #f97316;
}

.demo-hotspot-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f97316;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.demo-hotspot-option:hover .demo-hotspot-number {
    background: white;
    color: #f97316;
}

.demo-hotspot-label {
    color: white;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

/* Custom scrollbar for dropdown */
.demo-hotspot-dropdown::-webkit-scrollbar {
    width: 8px;
}

.demo-hotspot-dropdown::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.demo-hotspot-dropdown::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 4px;
}

.demo-hotspot-dropdown::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

.demo-control-btn {
    background: #444;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: white;
}

.demo-control-btn svg {
    width: 20px;
    height: 20px;
}

.demo-control-btn svg path,
.demo-control-btn svg rect,
.demo-control-btn svg circle {
    fill: white !important;
    stroke: none !important;
}

.demo-control-btn:hover {
    background: #555;
    transform: translateY(-2px);
}

.demo-control-btn.active {
    background: #f97316;
    color: white;
}

.demo-control-btn.active svg path,
.demo-control-btn.active svg rect,
.demo-control-btn.active svg circle {
    fill: white !important;
    stroke: none !important;
}

/* Close button (collapse panel) styling - round orange button */
#demo-close {
    background: #f97316 !important;
    margin-left: 8px;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

#demo-close:hover {
    background: #ea580c !important;
}

#demo-close svg path {
    fill: white !important;
    stroke: none !important;
}

/* Hide close button when collapsed */
.demo-control-panel.collapsed #demo-close {
    display: none;
}

/* Shimmer Sweep Effect for Drawing Attention */
.shimmer-sweep {
    position: absolute;
    pointer-events: none;
    z-index: 999999;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(249, 115, 22, 0.4) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer-sweep 1s ease-out forwards;
}

@keyframes shimmer-sweep {
    0% {
        background-position: -200% 0;
        opacity: 1;
    }
    100% {
        background-position: 200% 0;
        opacity: 0;
    }
}

/* Sparkles Effect for Drawing Attention */
.sparkle-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    box-shadow: 0 0 10px currentColor;
    animation: sparkle-burst 1.2s ease-out forwards;
}

@keyframes sparkle-burst {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 1;
    }
    50% {
        transform: translate(var(--tx), var(--ty)) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Confetti Effect for Tour Completion */
.confetti-piece {
    position: fixed;
    pointer-events: none;
    z-index: 1000001;
    border-radius: 2px;
    opacity: 0.9;
    animation: confetti-fall var(--duration) linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateX(var(--drift)) translateY(110vh) rotate(var(--rotation));
        opacity: 0.3;
    }
}

/* Time Tracker for Autoplay Mode */
.demo-time-tracker {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2a2a2a;
    border: 3px solid #f97316;
    padding: 20px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5);
    z-index: 999999;
    display: none; /* Hidden after testing - change to 'flex' when needed for tour development */
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.time-tracker-label {
    font-size: 14px;
    color: #f97316;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-tracker-time {
    font-size: 48px;
    color: white;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .demo-tooltip {
        max-width: 90vw;
        min-width: 280px;
        max-height: 80vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        -webkit-overflow-scrolling: touch;
    }

    .demo-tooltip::-webkit-scrollbar {
        width: 6px;
    }

    .demo-tooltip::-webkit-scrollbar-track {
        background: #1a1a1a;
        border-radius: 3px;
    }

    .demo-tooltip::-webkit-scrollbar-thumb {
        background: #f97316;
        border-radius: 3px;
    }

    .demo-tooltip-content {
        flex: 1;
        overflow-y: auto;
        margin-bottom: 70px; /* Space for fixed buttons at bottom */
        -webkit-overflow-scrolling: touch;
    }

    .demo-tooltip-actions {
        position: fixed;
        bottom: 15px;
        right: 15px;
        z-index: 1000000;
    }

    .demo-welcome-content {
        max-width: 90vw;
        padding: 30px 20px;
    }

    .demo-welcome-modes {
        flex-direction: column;
    }

    .demo-progress-bar {
        padding: 12px 20px;
    }

    .demo-progress-track {
        width: 150px;
    }
}
