/* CSS Custom Properties for Theming */
:root {
    --sidebar-bg: rgba(34, 40, 49, 0.92); /* glassmorphism dark */
    --sidebar-blur: 18px;
    --sidebar-text: #ffffff;
    --sidebar-hover: rgba(52, 58, 70, 0.98);
    --sidebar-active: rgba(0,0,0,0.18);
    --main-bg: #f5f5f5;
    --content-bg: #ffffff;
    --border-color: #e0e0e0;
    --primary-blue: #0078d4;
    --secondary-blue: #106ebe;
    --text-primary: #323130;
    --text-secondary: #605e5c;
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --success-color: #107c10;
    --warning-color: #ff8c00;
    --info-color: #0078d4;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 60px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--main-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
}

/* App Container Layout */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Sidebar Navigation */
/* Modern glassmorphism sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    backdrop-filter: blur(var(--sidebar-blur));
    -webkit-backdrop-filter: blur(var(--sidebar-blur));
    border-right: 1.5px solid rgba(255,255,255,0.08);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

/* Sidebar Toggle Button - Positioned at the bottom inside the sidebar */
.sidebar-toggle {
    position: absolute;
    left: 16px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-blue) 60%, var(--secondary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2002;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 0 0 6px rgba(0,120,212,0.10);
    border: 3px solid #fff;
    outline: none;
}
.sidebar-toggle:hover {
    background: linear-gradient(135deg, var(--secondary-blue) 60%, var(--primary-blue) 100%);
    transform: scale(1.10) translateY(-2px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.22), 0 0 0 8px rgba(0,120,212,0.13);
}
.sidebar-toggle i {
    color: #fff;
    font-size: 22px;
    transition: var(--transition);
}
.sidebar.collapsed .sidebar-toggle {
    left: 8px;
}

/* Sidebar Header */
/* Sidebar header with more separation */
.sidebar-header {
    padding: 24px 20px 20px 20px;
    border-bottom: 1.5px solid rgba(255,255,255,0.13);
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 80px;
    transition: var(--transition);
    background: transparent;
    box-shadow: none;
}

.sidebar.collapsed .sidebar-header {
    padding: 20px 10px;
    justify-content: center;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 50px;
    object-fit: contain;
    transition: var(--transition);
}

.sidebar.collapsed .logo-image {
    height: 30px;
    max-width: 30px;
}

.app-title {
    transition: var(--transition);
    overflow: hidden;
}

.sidebar.collapsed .app-title {
    opacity: 0;
    width: 0;
}

.app-title h1 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
}

.app-title p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

/* Navigation Menu */
.navigation-menu {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.navigation-menu::-webkit-scrollbar {
    width: 6px;
}

.navigation-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.navigation-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

/* Navigation Sections */
.nav-section {
    margin-bottom: 5px;
}

.nav-section-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
    font-size: 16px;
    border-radius: 10px;
    margin: 4px 8px 2px 8px;
}

.sidebar.collapsed .nav-section-header {
    padding: 12px 10px;
    justify-content: center;
}

.nav-section-header:hover {
    background: linear-gradient(90deg, var(--sidebar-hover) 80%, rgba(0,120,212,0.08) 100%);
    box-shadow: 0 4px 16px rgba(0,120,212,0.08);
}

.section-icon {
    font-size: 18px;
    margin-right: 12px;
    color: #b0c4d4;
    flex-shrink: 0;
    vertical-align: middle;
    transition: color 0.2s;
    width: 20px;
    text-align: center;
}
.sidebar.collapsed .section-icon {
    margin-right: 0;
}

/* Section Arrow - Consistent positioning */
.section-arrow {
    font-size: 14px;
    color: #b0c4d4;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 0;
    transition: transform 0.3s ease, color 0.2s;
}

.sidebar.collapsed .section-arrow {
    display: none;
}

.nav-text {
    transition: var(--transition);
    overflow: hidden;
    /* Enable wrapping with a 2-line max, and show ellipsis if too long */
    display: -webkit-box;
    -webkit-line-clamp: 2;          /* Maximum of 2 lines */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-break: break-word;          /* Break long words if needed */
    text-overflow: ellipsis;
    flex: 1;
}


.sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
}

.nav-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-section-content.expanded {
    max-height: 500px;
}

.sidebar.collapsed .nav-section-content {
    max-height: 0 !important;
}

/* Navigation Items */
/* Modern nav item style */
.nav-item {
    padding: 12px 22px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3.5px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 12px;
    margin: 4px 8px;
    font-size: 15.5px;
    background: rgba(255,255,255,0.03);
    box-shadow: 0 1.5px 6px rgba(0,0,0,0.04);
}

.sidebar.collapsed .nav-item {
    padding: 10px;
    justify-content: center;
}

/* Modern nav item hover */
.nav-item:hover {
    background: linear-gradient(90deg, var(--sidebar-hover) 80%, rgba(0,120,212,0.08) 100%);
    box-shadow: 0 4px 16px rgba(0,120,212,0.08);
}

/* Modern nav item active */
.nav-item.active {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: #fff;
    border-left-color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 24px rgba(0,120,212,0.13);
}
.nav-item.active .nav-icon {
    color: #fff;
}
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3.5px;
    background: linear-gradient(180deg, #fff 0%, var(--primary-blue) 100%);
    border-radius: 2px;
}

/* Larger nav icons */
.nav-icon {
    font-size: 19px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
    color: #b0c4d4;
    transition: color 0.2s;
}

/* Nested nav items in sections */
/* Indent nested nav items */
.nav-section-content .nav-item {
    padding-left: 54px;
}

.sidebar.collapsed .nav-section-content .nav-item {
    padding: 10px;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Mobile Menu Button - Draggable */
.mobile-menu-button {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    border-radius: 10px;
    border: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease, transform 0.2s ease;
    user-select: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Android-specific optimizations */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.mobile-menu-button:hover {
    background-color: var(--secondary-blue);
    transform: scale(1.05);
}

.mobile-menu-button.touch-active {
    background-color: var(--secondary-blue);
    transform: scale(1.02);
}

.mobile-menu-button.dragging {
    cursor: grabbing;
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1003;
    touch-action: none;
}

.mobile-menu-button i {
    color: white;
    font-size: 22px;
    pointer-events: none;
}

/* Main Content Area - Full Height */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--content-bg);
    overflow: hidden;
    transition: var(--transition);
    /* No padding or margins - full height for Power BI */
}

/* Power BI Container - Full Height */
.powerbi-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* No padding - maximize space for Power BI */
}

.powerbi-embed {
    width: 100%;
    height: 100%;
    background-color: white;
    position: relative;
    overflow: hidden;
    flex: 1;
    /* No border or border-radius for seamless integration */
}

.powerbi-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* Hide Power BI footer controls by extending height */
    height: calc(100% + 50px);
    margin-bottom: -50px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.loading-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.loading-state p {
    font-size: 16px;
}

/* Content Message */
.content-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.content-message i {
    font-size: 64px;
    margin-bottom: 20px;
    color: var(--info-color);
}

.content-message h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.content-message p {
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.6;
}

.return-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.return-button:hover {
    background-color: var(--secondary-blue);
}

/* Tooltip for Collapsed Sidebar - Only show when sidebar is collapsed */
.sidebar.collapsed .nav-item:hover,
.sidebar.collapsed .nav-section-header:hover,
.sidebar.collapsed #sidebar-toggle:hover {
    position: relative;
}

.sidebar.collapsed .nav-item[data-tooltip]:hover::after,
.sidebar.collapsed .nav-section-header[data-tooltip]:hover::after,
.sidebar.collapsed #sidebar-toggle[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 30, 40, 0.98);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1003;
    margin-left: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.15s ease-out 0.05s forwards;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Show tooltip arrow */
.sidebar.collapsed .nav-item[data-tooltip]:hover::before,
.sidebar.collapsed .nav-section-header[data-tooltip]:hover::before,
.sidebar.collapsed #sidebar-toggle[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    left: calc(100% + 4px);
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-right-color: rgba(30, 30, 40, 0.98);
    z-index: 1003;
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.15s ease-out 0.05s forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 250px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: var(--sidebar-width);
        z-index: 1001;
        transition: left 0.3s ease;
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    .sidebar.collapsed {
        width: var(--sidebar-width);
    }
    
    .sidebar-toggle {
        display: none;
    }
    
    .mobile-menu-button {
        display: flex;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        width: 100%;
    }
    
    /* Adjust mobile menu button position when sidebar is open */
    .sidebar.mobile-open ~ .main-content .mobile-menu-button {
        left: calc(var(--sidebar-width) + 20px);
    }
}

@media (max-width: 480px) {
    .mobile-menu-button {
        top: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
    }
    
    .mobile-menu-button i {
        font-size: 20px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Focus and Accessibility */
.nav-item:focus,
.nav-section-header:focus,
.return-button:focus,
.sidebar-toggle:focus,
.mobile-menu-button:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --sidebar-bg: #000000;
        --sidebar-text: #ffffff;
        --sidebar-hover: #333333;
        --border-color: #666666;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .sidebar {
        display: none;
    }
    
    .main-content {
        width: 100%;
    }
    
    .mobile-menu-button {
        display: none;
    }
}

/* Additional styles for seamless Power BI integration */
.powerbi-embed {
    /* Remove any visual boundaries */
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Ensure iframe takes full available space */
.powerbi-embed iframe {
    display: block;
    /* Prevent any scrollbars on the iframe itself */
    overflow: hidden;
}

/* ===== VIDEO GALLERY STYLES ===== */

/* Video Gallery Container */
.video-gallery {
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-y: auto;
}

.video-gallery-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.video-gallery-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.video-gallery-header h2 i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.video-gallery-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Video Grid Layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Special layout for 7 items - create a more balanced layout */
@media (min-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Make the first row have 3 items, second row 3 items, last row 1 centered */
    .video-card:nth-child(7) {
        grid-column: 2 / 3;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Center the last item if odd number */
    .video-card:nth-child(7) {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Video Card */
.video-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.video-card:active {
    transform: translateY(-4px) scale(1.01);
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    height: 200px;
    background: var(--card-gradient, linear-gradient(135deg, var(--primary-blue), var(--secondary-blue)));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-thumbnail i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

/* Play Overlay */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 4rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

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

/* Video Info */
.video-info {
    padding: 1.5rem;
    position: relative;
}

.video-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info .duration {
    position: absolute;
    top: -1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.video-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.video-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-blue);
    color: white;
}

.video-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
}

.video-container {
    padding: 2rem;
    text-align: center;
}

.video-placeholder {
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.video-placeholder i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.video-placeholder p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.video-placeholder small {
    color: var(--text-secondary);
}

/* Enhanced Video Modal Placeholder */
.video-placeholder-detailed {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    max-width: 500px;
    margin: 0 auto;
}

.video-placeholder-detailed .placeholder-icon {
    margin-bottom: 1rem;
}

.video-placeholder-detailed .placeholder-icon i {
    font-size: 4rem;
    color: var(--primary-blue);
    opacity: 0.7;
}

.video-placeholder-detailed h4 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.video-placeholder-detailed .placeholder-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.video-placeholder-detailed .info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.video-placeholder-detailed .info-item i {
    color: var(--primary-blue);
}

.video-placeholder-detailed .demo-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.video-placeholder-detailed .demo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 120, 212, 0.3);
}

.video-placeholder-detailed .demo-button:active {
    transform: translateY(0);
}

/* Video Player Container */
.video-player-container {
    text-align: center;
}

.video-player-container video {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #000;
}

.video-details {
    padding: 1rem;
    background: var(--card-bg, #f8f9fa);
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid var(--border-color, #e0e0e0);
}

[data-theme="dark"] .video-details {
    background: var(--card-bg-dark, #2a2a2a);
    border-color: var(--border-color-dark, #444);
}

/* Mobile responsive for detailed placeholder */
@media (max-width: 768px) {
    .video-placeholder-detailed {
        padding: 1.5rem;
    }
    
    .video-placeholder-detailed .placeholder-icon i {
        font-size: 3rem;
    }
    
    .video-placeholder-detailed h4 {
        font-size: 1.2rem;
    }
    
    .video-placeholder-detailed .placeholder-info {
        gap: 1rem;
    }
    
    .video-placeholder-detailed .info-item {
        font-size: 0.8rem;
    }
    
    .video-placeholder-detailed .demo-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Responsive Design for Video Gallery */
@media (max-width: 768px) {
    .video-gallery {
        padding: 1rem;
    }
    
    .video-gallery-header {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }
    
    .video-gallery-header h2 {
        font-size: 2rem;
    }
    
    .video-grid {
        gap: 1rem;
        padding: 0;
    }
    
    .video-card {
        border-radius: 12px;
    }
    
    .video-thumbnail {
        height: 160px;
    }
    
    .video-thumbnail i {
        font-size: 2.5rem;
    }
    
    .play-overlay i {
        font-size: 3rem;
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-info h3 {
        font-size: 1.1rem;
    }
    
    .video-info p {
        font-size: 0.85rem;
    }
    
    .video-modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .video-modal-header {
        padding: 1rem;
    }
    
    .video-container {
        padding: 1rem;
    }
    
    .video-placeholder {
        padding: 2rem 1rem;
    }
    
    .video-placeholder i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .video-gallery-header h2 {
        font-size: 1.75rem;
    }
    
    .video-gallery-header p {
        font-size: 1rem;
    }
    
    .video-thumbnail {
        height: 140px;
    }
    
    .video-info h3 {
        font-size: 1rem;
    }
    
    .video-info p {
        font-size: 0.8rem;
    }
}

/* Dark mode support for video gallery */
@media (prefers-color-scheme: dark) {
    .video-gallery {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
    
    .video-card {
        background: #3a3a3a;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .video-info h3 {
        color: #ffffff;
    }
    
    .video-info p {
        color: #cccccc;
    }
    
    .video-placeholder {
        background: #4a4a4a;
        border-color: #666666;
    }
}

/* ===== ABOUT PAGE STYLES ===== */

/* About Page Container */
.about-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
}

.about-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

/* Hero Section */
.about-hero {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    margin-bottom: 2rem;
}

.hero-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.about-hero .highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 400;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Content Grid */
.about-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Info Cards */
.info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-header i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.card-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.card-content p {
    margin-bottom: 1rem;
}

/* Purpose Box */
.purpose-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    margin-top: 1rem;
}

.purpose-box i {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

/* Timeline */
.coverage-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.timeline-item.included .timeline-dot {
    background: #4caf50;
}

.timeline-item.forecast .timeline-dot {
    background: #ff9800;
}

.timeline-content h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-content p {
    margin: 0;
    color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.feature-item i {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.feature-item span {
    font-weight: 500;
    color: var(--text-primary);
}

/* AI Info */
.ai-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ai-process {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 8px;
}

.ai-process i {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.disclaimer-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #ff9800;
}

.disclaimer-box p {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

/* Roadmap */
.roadmap-section {
    margin-bottom: 2rem;
}

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

.roadmap-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.roadmap-list {
    list-style: none;
    padding: 0;
}

.roadmap-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.roadmap-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.text-warning {
    color: #ff9800;
}

.text-info {
    color: var(--primary-blue);
}

/* Contact Info */
.contact-info {
    margin: 1.5rem 0;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    background: rgba(0, 120, 212, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(0, 120, 212, 0.2);
    transform: translateY(-2px);
}

.contact-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 120, 212, 0.3);
}

.action-btn.secondary {
    background: rgba(0, 120, 212, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(0, 120, 212, 0.3);
}

.action-btn.secondary:hover {
    background: rgba(0, 120, 212, 0.2);
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-hero {
        padding: 2rem 1rem;
    }
    
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-logo {
        height: 80px;
    }
    
    .about-content {
        padding: 1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .action-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .purpose-box,
    .ai-process {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== METADATA PAGE STYLES ===== */

/* Metadata Page Container */
.metadata-page {
    background: #f8f9fa;
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

/* Metadata Hero Section */
.metadata-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    color: white;
}

.metadata-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.metadata-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.metadata-hero .highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.metadata-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Metadata Content */
.metadata-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: white;
}

.metadata-intro {
    margin-bottom: 3rem;
}

.intro-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.intro-card h3 {
    margin-bottom: 1rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.intro-card h3 i {
    color: #667eea;
}

.intro-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Parameters Grid */
.parameters-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.parameter-category {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.parameter-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.category-header i {
    font-size: 1.5rem;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.parameters-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.parameter-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.2s ease;
}

.parameter-item:hover {
    background: #e3f2fd;
    border-left-color: #764ba2;
}

.parameter-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.parameter-content {
    flex: 1;
}

.parameter-content h4 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.parameter-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.parameter-content strong {
    color: #667eea;
    font-weight: 600;
}

/* Metadata Footer */
.metadata-footer {
    margin: 3rem 0 0;
    text-align: center;
}

.validation-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    color: #856404;
    max-width: 800px;
    margin: 0 auto;
}

.validation-notice i {
    color: #f39c12;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.validation-notice p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design for Metadata Page */
@media (max-width: 768px) {
    .metadata-hero {
        padding: 2rem 1rem;
    }
    
    .metadata-hero h1 {
        font-size: 2rem;
    }
    
    .metadata-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .parameters-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .parameter-category {
        padding: 1.5rem;
    }
    
    .parameter-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .parameter-number {
        align-self: center;
    }
    
    .metadata-content {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .metadata-hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .metadata-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .category-header {
        font-size: 1.1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .parameter-item {
        padding: 1rem;
    }
}

