.demo-progress {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.demo-chapter-title {
    font-size: 1.5em;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.demo-chapter-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.demo-chapter-description p {
    margin: 0.25rem 0;
}

.demo-chapter-description strong {
    font-weight: 600;
}

.demo-chapter-description em {
    font-style: italic;
}

.demo-toc {
    background: #f8f9fa;
    border-radius: 8px;
}

.demo-toc-title {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.demo-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.demo-toc-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.demo-toc-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.demo-toc-item.active {
    background: #3273dc;
    color: white;
}

.demo-toc-number {
    font-weight: 600;
    margin-right: 0.5rem;
    min-width: 2em;
    padding-top: 0.1rem;
}

.demo-toc-title {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.demo-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.demo-toc-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.demo-toc-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.demo-toc-item.active {
    background: #3273dc;
    color: white;
}

.demo-toc-number {
    font-weight: 600;
    margin-right: 0.5rem;
    min-width: 2em;
    padding-top: 0.1rem;
}

.demo-toc-content {
    flex: 1;
}

.demo-toc-text {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.demo-toc-description {
    font-size: 0.9em;
    opacity: 0.85;
    margin-top: 0.25rem;
}

.demo-toc-description p {
    margin: 0.15rem 0;
}

.demo-toc-description strong {
    font-weight: 600;
}

.demo-toc-description em {
    font-style: italic;
}


.demo-toc-text {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.demo-toc-description {
    font-size: 0.9em;
    opacity: 0.85;
    margin-top: 0.25rem;
}

.demo-toc-description p {
    margin: 0.15rem 0;
}

.demo-toc-description strong {
    font-weight: 600;
}

.demo-toc-description em {
    font-style: italic;
}

.demo-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.demo-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

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

.demo-btn-primary:hover {
    background: #2366d1;
}

.demo-btn-secondary {
    background: #f5f5f5;
    color: #333;
}

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

.demo-media-container {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
}

.demo-media-container.fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: #000;
}

.demo-media-container.fullscreen img,
.demo-media-container.fullscreen video {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Ensure tooltips appear in fullscreen */
:fullscreen .shepherd-element,
::backdrop .shepherd-element {
    z-index: 9999 !important;
}

/* Hide UI elements in fullscreen */
:fullscreen #demo-chapter-info,
:fullscreen .demo-progress {
    display: none !important;
}

#demo-image, #demo-video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.demo-youtube-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.demo-youtube-player > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.demo-youtube-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.demo-marker {
    position: absolute;
    background-color: rgba(0, 123, 255, 0.3);
    border: 2px solid rgba(0, 123, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-marker:hover {
    background-color: rgba(0, 123, 255, 0.5);
    border-color: rgba(0, 123, 255, 1);
}

.demo-marker.active {
    background-color: rgba(255, 193, 7, 0.4);
    border-color: rgba(255, 193, 7, 1);
}

.demo-marker-number {
    display: none;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.demo-marker.show-numbers .demo-marker-number {
    display: flex;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .demo-btn {
        font-size: 12px;
        padding: 0.4rem 0.8rem;
    }
    
    .shepherd-title {
        font-size: 1.1em !important;
    }
    
    .shepherd-header {
        padding: 0.4rem !important;
    }
    
    .shepherd-element {
        max-width: 85vw !important;
        font-size: 13px !important;
    }
    
    .shepherd-text {
        padding: 0.5rem !important;
        line-height: 1.3 !important;
    }
    
    .shepherd-text p {
        margin-bottom: 0.25rem !important;
    }
    
    .shepherd-text h1 {
        font-size: 1.3em !important;
        margin-bottom: 0.3rem !important;
        margin-top: 0.3rem !important;
    }
    
    .shepherd-text h2 {
        font-size: 1.2em !important;
        margin-bottom: 0.25rem !important;
        margin-top: 0.25rem !important;
    }
    
    .shepherd-text h3 {
        font-size: 1.1em !important;
        margin-bottom: 0.2rem !important;
        margin-top: 0.2rem !important;
    }
    
    .shepherd-header {
        padding: 0.4rem 0.5rem !important;
    }
    
    .shepherd-footer {
        padding: 0.4rem 0.5rem !important;
        gap: 0.25rem !important;
    }
    
    .shepherd-footer .button {
        font-size: 11px !important;
        padding: 0.3rem 0.5rem !important;
        min-width: auto !important;
    }
    
    .demo-marker-number {
        width: 18px !important;
        height: 18px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .demo-btn {
        font-size: 11px;
        padding: 0.3rem 0.6rem;
    }
    
    .shepherd-title {
        font-size: 1em !important;
    }
    
    .shepherd-header {
        padding: 0.3rem !important;
    }
    
    .shepherd-element {
        max-width: 90vw !important;
        font-size: 12px !important;
    }
    
    .shepherd-text {
        padding: 0.4rem !important;
        line-height: 1.2 !important;
    }
    
    .shepherd-text p {
        margin-bottom: 0.2rem !important;
    }
    
    .shepherd-text h1 {
        font-size: 1.2em !important;
        margin-bottom: 0.25rem !important;
        margin-top: 0.25rem !important;
    }
    
    .shepherd-text h2 {
        font-size: 1.1em !important;
        margin-bottom: 0.2rem !important;
        margin-top: 0.2rem !important;
    }
    
    .shepherd-text h3 {
        font-size: 1em !important;
        margin-bottom: 0.15rem !important;
        margin-top: 0.15rem !important;
    }
    
    .shepherd-header {
        padding: 0.3rem 0.4rem !important;
    }
    
    .shepherd-footer {
        padding: 0.3rem 0.4rem !important;
        gap: 0.2rem !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .shepherd-footer .button {
        font-size: 10px !important;
        padding: 0.25rem 0.4rem !important;
        min-width: auto !important;
        width: 100% !important;
    }
    
    .demo-marker-number {
        width: 16px !important;
        height: 16px !important;
        font-size: 10px !important;
    }
}

/* Desktop header sizes */
.shepherd-element {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.shepherd-title {
    font-size: 1.2em !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.shepherd-header {
    padding: 0.5rem !important;
}

.shepherd-text {
    font-family: inherit;
}

.shepherd-text h1 {
    font-size: 1.4em !important;
    font-weight: 600 !important;
    margin-bottom: 0.4rem !important;
    margin-top: 0.4rem !important;
}

.shepherd-text h2 {
    font-size: 1.3em !important;
    font-weight: 600 !important;
    margin-bottom: 0.3rem !important;
    margin-top: 0.3rem !important;
}

.shepherd-text h3 {
    font-size: 1.15em !important;
    font-weight: 600 !important;
    margin-bottom: 0.25rem !important;
    margin-top: 0.25rem !important;
}

.shepherd-text p {
    font-weight: 400;
    line-height: 1.5;
}
