/**
 * Enhanced Workshop Experience CSS
 *
 * Styles for the progressive workshop layout system with dynamic sidebar,
 * fullscreen video mode, and responsive design.
 *
 * @version 1.0.0
 */

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.hidden {
    display: none !important;
}

/* ==========================================================================
   VIDEO TRACKING UI
   ========================================================================== */

/* Video Progress Indicators */
.video-progress-indicator {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.video-progress-indicator h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.progress-bar-container {
    margin-bottom: 0.75rem;
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: #e5e7eb;
    border-radius: 0.25rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 0.25rem;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f2937;
}

.progress-details p {
    margin: 0.25rem 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.progress-details strong {
    color: #374151;
}

/* Video Progress Overlay */
.video-progress-overlay {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    min-width: 3rem;
}

.progress-mini-bar {
    flex: 1;
    height: 0.375rem;
    background: #e5e7eb;
    border-radius: 0.1875rem;
    overflow: hidden;
}

.progress-mini-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 0.1875rem;
    transition: width 0.3s ease;
    width: 0%;
}

/* Video Tracking Indicator */
.video-tracking-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    z-index: 10;
}

.tracking-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tracking-icon {
    font-size: 0.875rem;
}

/* Video Checkpoint Notifications */
.video-checkpoint-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #10b981;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.video-checkpoint-notification.show {
    transform: translateX(0);
}

.checkpoint-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkpoint-icon {
    font-size: 1.125rem;
}

.checkpoint-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Near Completion Notifications */
.video-completion-notification.near-complete {
    background: #f59e0b;
    color: white;
}

.completion-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.completion-icon {
    font-size: 1.125rem;
}

.completion-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Video Completion Celebration */
.video-completion-celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
}

.video-completion-celebration.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.celebration-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.celebration-icon {
    font-size: 3rem;
    animation: bounce 1s ease infinite;
}

.celebration-content h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.celebration-content p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

/* Error Notifications */
.video-tracker-error {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: #ef4444;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.video-tracker-error.show {
    transform: translateX(0);
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-icon {
    font-size: 1.125rem;
}

.error-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Bounce Animation */
@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translateY(0);
    }

    40%,
    43% {
        transform: translateY(-10px);
    }

    70% {
        transform: translateY(-5px);
    }

    90% {
        transform: translateY(-2px);
    }
}

/* ==========================================================================
   Base Workshop Container Layout
   ========================================================================== */

.lms-workshop-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "main";
    min-height: 600px;
    position: relative;
    transition: all 0.3s ease;
}

/* Sidebar Layout */
.lms-workshop-container.sidebar-visible {
    grid-template-columns: 1fr 320px;
    grid-template-areas: "main sidebar";
}

.lms-workshop-container.sidebar-hidden {
    grid-template-columns: 1fr;
    grid-template-areas: "main";
}

.lms-workshop-container.sidebar-collapsed {
    grid-template-columns: 1fr 60px;
}

/* ==========================================================================
   Sidebar Styles
   ========================================================================== */

.lms-workshop-sidebar {
    grid-area: sidebar;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    padding: 1.5rem;
    overflow-y: auto;
    max-height: 100%;
    position: sticky;
    top: 2rem;
    transition: all 0.3s ease;
}

.lms-workshop-container.sidebar-collapsed .lms-workshop-sidebar {
    padding: 1rem 0.5rem;
    overflow: hidden;
}

.lms-workshop-container.sidebar-hidden .lms-workshop-sidebar {
    display: none;
}

/* Sidebar Sections */
.lms-sidebar-section {
    margin-bottom: 2rem;
}

.lms-sidebar-section:last-child {
    margin-bottom: 0;
}

.lms-sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lms-sidebar-content {
    color: #374151;
}

/* Instructor Info */
.instructor-info {
    text-align: center;
}

.instructor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid #e5e7eb;
}

.instructor-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.instructor-position {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.instructor-company {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.instructor-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.instructor-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Progress Widget */
.progress-widget {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
}

.progress-bar-container {
    background: #e5e7eb;
    border-radius: 9999px;
    height: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #10b981, #059669);
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: #374151;
    text-align: center;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-action-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: left;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quick-action-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.quick-action-btn:active {
    transform: translateY(0);
}

.quick-action-btn.primary {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.quick-action-btn.primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.quick-action-btn.success {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.quick-action-btn.success:hover {
    background: #059669;
    border-color: #059669;
}

.quick-action-btn:disabled {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Tabbed Interface */
.workshop-tabs {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.workshop-tabs .flex {
    display: flex;
    border-bottom: 2px solid transparent;
}

.workshop-tabs .tab-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    background: none;
    border: none;
}

.workshop-tabs .tab-button.active {
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
}

.workshop-tabs .tab-button:hover:not(.active) {
    color: #374151;
    background-color: #f9fafb;
}

.workshop-tabs .tab-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.lms-workshop-main-content {
    grid-area: main;
    position: relative;
    min-height: 500px;
}

/* Sidebar Toggle Button */
.lms-sidebar-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.lms-sidebar-toggle:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}


/* Ensure SVG icons in sidebar toggle button are properly sized */
.lms-sidebar-toggle svg {
    width: 1rem;
    height: 1rem;
    display: block;
}

/* Ensure SVG icons in handouts section are properly sized */
.workshop-handouts svg {
    width: 1rem;
    height: 1rem;
    display: inline-block;
}

/* Ensure SVG icons in progress section are properly sized */
.lms-progress-container svg,
.lms-progress-bar svg {
    width: 1rem;
    height: 1rem;
    display: inline-block;
}

/* ==========================================================================
   Layout Variations
   ========================================================================== */

/* About Workshop Layout */
.lms-workshop-container.layout-about {
    /* Default layout with sidebar visible */
}

.lms-workshop-container.layout-about .lms-workshop-main-content {
    padding: 2rem;
}

.lms-workshop-container.layout-about .workshop-header {
    margin-bottom: 2rem;
}

.lms-workshop-container.layout-about .workshop-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.lms-workshop-container.layout-about .workshop-description {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
}


/* Workshop Layout (Video Mode) */
.lms-workshop-container.layout-workshop {
    /* Full-width video with toggleable sidebar */
}

.workshop-quiz svg {
    width: 20px;
}

.lms-workshop-container.layout-workshop .lms-workshop-main-content {
    padding: 0;
}

.lms-workshop-container.layout-workshop .workshop-video-container {
    width: 100%;
    background: #000000;
    border-radius: 0;
    overflow: hidden;
}

.lms-workshop-container.layout-workshop.sidebar-hidden .workshop-video-container {
    border-radius: 0.75rem;
    margin: 1rem;
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Controls */
.video-controls {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.video-progress-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-time {
    font-size: 0.875rem;
    color: #6b7280;
}

.video-progress-bar {
    width: 200px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.video-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
}

/* Mark as Complete Button */
.mark-complete-btn {
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mark-complete-btn:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}

.mark-complete-btn:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.mark-complete-btn.enabled {
    background: #10b981;
    animation: pulse-gentle 2s infinite;
}

/* Quiz Layout */
.lms-workshop-container.layout-quiz {
    /* Quiz takes center stage with sidebar for info */
}

.lms-workshop-container.layout-quiz .lms-workshop-main-content {
    padding: 2rem;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

.quiz-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.quiz-instructions {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
}

.quiz-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Fullscreen Mode
   ========================================================================== */

.lms-workshop-container.fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #000000;
    grid-template-columns: 1fr;
    grid-template-areas: "main";
}

.lms-workshop-container.fullscreen-mode .lms-workshop-sidebar {
    display: none;
}

.lms-workshop-container.fullscreen-mode .workshop-video-container {
    height: 100vh;
    border-radius: 0;
}

.lms-workshop-container.fullscreen-mode .video-wrapper {
    padding-bottom: 0;
    height: 100vh;
}

.lms-workshop-container.fullscreen-mode .video-wrapper iframe,
.lms-workshop-container.fullscreen-mode .video-wrapper video {
    height: 100vh;
}

/* Fullscreen Hint */
.lms-fullscreen-hint {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    z-index: 10000;
    text-align: center;
    animation: fadeInOut 3s ease-in-out;
}

.lms-fullscreen-hint .hint-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==========================================================================
   Navigation Elements
   ========================================================================== */

/* Layout Toggle Button */
.lms-layout-toggle {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.lms-layout-toggle:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Back Button */
.lms-back-to-about {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.lms-back-to-about:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet and Mobile */
/* Hide sidebar tab toggle on desktop */
.sidebar-tab-toggle {
    display: none;
}

@media (max-width: 1023px) {
    .lms-workshop-container {
        grid-template-columns: 1fr;
        grid-template-areas: "main";
    }

    .lms-workshop-sidebar {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        height: 100vh;
        z-index: 100;
        border-left: none;
        border-right: 1px solid #e5e7eb;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .lms-workshop-container.sidebar-visible .lms-workshop-sidebar {
        right: 0;
    }

    .lms-workshop-container.sidebar-hidden .lms-workshop-sidebar {
        right: -320px;
    }

    /* Sidebar Tab Toggle - always fixed on mobile for visibility */
    .sidebar-tab-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 50%;
        right: 320px;
        transform: translateY(-50%);
        width: 44px;
        height: 80px;
        background: linear-gradient(135deg, #4F46E5 0%, #4338ca 100%);
        border: none;
        border-radius: 8px 0 0 8px;
        color: white;
        cursor: pointer;
        z-index: 150;
        box-shadow: -3px 0 10px rgba(0, 0, 0, 0.15);
        transition: right 0.3s ease, background 0.2s ease;
    }

    .sidebar-tab-toggle:hover {
        background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    }

    .sidebar-tab-toggle:focus {
        outline: none;
        box-shadow: -3px 0 10px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(79, 70, 229, 0.4);
    }

    .sidebar-tab-toggle .sidebar-tab-icon {
        width: 24px;
        height: 24px;
    }

    .sidebar-tab-toggle .hidden {
        display: none;
    }

    /* When sidebar is visible, tab is at edge of sidebar */
    .lms-workshop-container.sidebar-visible .sidebar-tab-toggle {
        right: 320px;
    }

    /* When sidebar is hidden, tab moves to edge of viewport */
    .lms-workshop-container.sidebar-hidden .sidebar-tab-toggle {
        right: 0;
    }

    /* Hide the old header toggle on mobile - we use the tab instead */
    .lms-workshop-header .lms-sidebar-toggle {
        display: none;
    }

    .lms-workshop-container.layout-about .workshop-title {
        font-size: 1.875rem;
    }

}

/* Mobile */
@media (max-width: 640px) {
    .lms-workshop-sidebar {
        width: 280px;
        right: -280px;
    }

    .lms-workshop-container.sidebar-visible .lms-workshop-sidebar {
        right: 0;
    }

    .lms-workshop-container.sidebar-hidden .lms-workshop-sidebar {
        right: -280px;
    }

    /* Smaller tab on mobile, adjust position for narrower sidebar */
    .sidebar-tab-toggle {
        width: 40px;
        height: 70px;
        right: 280px;
    }

    .lms-workshop-container.sidebar-visible .sidebar-tab-toggle {
        right: 280px;
    }

    .lms-workshop-container.sidebar-hidden .sidebar-tab-toggle {
        right: 0;
    }

    .lms-workshop-container.layout-about .lms-workshop-main-content {
        padding: 1rem;
    }

    .lms-workshop-container.layout-about .workshop-title {
        font-size: 1.5rem;
    }

    .lms-workshop-container.layout-about .workshop-description {
        font-size: 1rem;
    }

    .lms-workshop-container.layout-workshop .video-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .video-progress-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .video-progress-bar {
        width: 100%;
    }

    .lms-workshop-container.layout-quiz .lms-workshop-main-content {
        padding: 1rem;
    }

    .quiz-content {
        padding: 1.5rem;
    }

    .lms-layout-toggle {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes pulse-gentle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to {
        left: 100%;
    }
}

/* Compact Handouts Section */
.workshop-handouts {
    margin: 1.5rem 0;
}

.workshop-handouts h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
}

.workshop-handouts .bg-blue-50 {
    padding: 1rem;
    border-radius: 0.5rem;
}

.workshop-handouts .text-blue-800 {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.workshop-handouts .space-y-2 {
    gap: 0.5rem;
}

.workshop-handouts .flex.items-center.justify-between.p-2 {
    padding: 0.5rem;
}

.workshop-handouts .text-sm.font-medium.text-gray-900 {
    font-size: 0.875rem;
}

.workshop-handouts .text-xs.text-gray-500 {
    font-size: 0.75rem;
}

.workshop-handouts .inline-flex.items-center.px-2.py-1.text-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Ensure proper text hierarchy in handouts - body text should be smaller than headings */
.workshop-handouts .text-blue-800 {
    font-size: 0.875rem;
    /* Smaller than heading */
}

.workshop-handouts .flex.items-center.space-x-2 {
    font-size: 0.875rem;
    /* Consistent font size for handout items */
}

/* Ensure all SVG icons in the workshop template are properly sized */
.lms-workshop-container svg {
    display: inline-block;
}

.lms-workshop-container .lms-sidebar-toggle svg,
.lms-workshop-container .workshop-handouts svg,
.lms-workshop-container .workshop-certificate svg,
.lms-workshop-container .lms-progress-container svg {
    width: 1rem;
    height: 1rem;
}

.lms-workshop-container .lms-instructor-avatar svg {
    width: 2.5rem;
    height: 2.5rem;
}

/* Ensure tab icons are properly sized */
.workshop-tabs .tab-button svg,
.lms-workshop-container .tab-button svg {
    width: 1rem;
    height: 1rem;
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================================================
   Tooltip Styles
   ========================================================================== */

.lms-tooltip {
    background: #1f2937;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: tooltipFadeIn 0.2s ease-in-out;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-button[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}

.tab-button[disabled]:hover {
    background: transparent;
    color: #6b7280;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {

    .lms-sidebar-toggle,
    .lms-layout-toggle,
    .lms-back-to-about,
    .video-controls,
    .quick-actions {
        display: none;
    }

    .lms-workshop-container {
        grid-template-columns: 1fr;
    }

    .lms-workshop-sidebar {
        display: none;
    }
}

/* Enhanced Video Progress Bar Styles */
.video-progress-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.video-progress-header h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.video-progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.video-progress-bar-container {
    margin-bottom: 1rem;
}

.video-progress-bar {
    background: #e5e7eb;
    border-radius: 9999px;
    height: 0.75rem;
    overflow: hidden;
    position: relative;
}

.video-progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: all 0.3s ease-out;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.video-progress-fill.bg-green-500 {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.video-progress-fill.bg-gray-400 {
    background: linear-gradient(90deg, #9ca3af 0%, #6b7280 100%);
}

.video-progress-markers {
    position: relative;
    height: 0.25rem;
}

.completion-marker {
    width: 0.75rem;
    height: 0.75rem;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
    position: absolute;
    top: -0.125rem;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.video-progress-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.video-progress-actions button {
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.video-progress-actions button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-progress-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.resume-video-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.resume-video-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.mark-watched-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.mark-watched-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.video-progress-status {
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.video-progress-status.text-green-600 {
    background: #ecfdf5;
    color: #065f46;
    border-color: #d1fae5;
}

/* Overall Workshop Progress Styles */
.workshop-overall-progress {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.workshop-overall-progress h3 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e3a8a;
}

.workshop-overall-progress .progress-bar {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 9999px;
    height: 1rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.workshop-overall-progress .progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: all 0.5s ease-out;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

.workshop-overall-progress .progress-fill.bg-green-600 {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.workshop-overall-progress .progress-fill.bg-gray-400 {
    background: linear-gradient(90deg, #9ca3af 0%, #6b7280 100%);
}

.workshop-overall-progress-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.workshop-progress-breakdown {
    display: flex;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: #3730a3;
}

/* Workshop Status Badge */
.workshop-status {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
}

/* Resume Notification */
.resume-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    max-width: 20rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    animation: slideIn 0.3s ease-out;
}

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

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-progress-actions {
        flex-direction: column;
    }

    .workshop-progress-breakdown {
        flex-direction: column;
        gap: 0.5rem;
    }

    .video-progress-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

.thinkforge-handout-file.thinkforge-handout-file--embed {
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    align-items: flex-start;
}

.thinkforge-handout-embed-content {
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}