/* ========== VIDEO SKELETON LOADER ========== */

.video-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f9fafb;
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.video-skeleton.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Shimmer Effect Base */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* Skeleton Dashboard Layout */
.skeleton-header {
    height: 4.8rem;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    gap: 1.5rem;
}

.sk-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #e5e7eb;
}

.sk-url {
    height: 2.4rem;
    flex: 1;
    background: #e5e7eb;
    border-radius: 0.6rem;
    max-width: 30rem;
    margin: 0 auto;
}

.skeleton-body {
    flex: 1;
    display: flex;
    padding: 2rem;
    gap: 2rem;
}

.skeleton-sidebar {
    width: 22rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.sk-item {
    height: 3.6rem;
    background: #f3f4f6;
    border-radius: 0.8rem;
}

.skeleton-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sk-chart {
    height: 60%;
    background: #f3f4f6;
    border-radius: 1.2rem;
    position: relative;
    overflow: hidden;
}

.sk-stats {
    display: flex;
    gap: 2rem;
    flex: 1;
}

.sk-stat-card {
    flex: 1;
    background: #f3f4f6;
    border-radius: 1.2rem;
}

/* Hidden Iframe State */
.video-wrapper iframe,
#slideVideo iframe {
    opacity: 0;
    transition: opacity 1s ease;
}

.video-wrapper.video-loaded iframe,
#slideVideo.video-loaded iframe {
    opacity: 1;
}

/* Messaging Demo specific tweaks */
.video-showcase .skeleton-sidebar {
    width: 6rem; /* Narrower sidebar for messaging view */
}

@media (max-width: 768px) {
    .skeleton-sidebar {
        display: none;
    }
}
