* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI Variable', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('assets/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    overflow: hidden;
    color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .quick-links {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 300px;
    }
    
    .quick-link {
        min-height: 50px;
        padding: 12px 16px;
    }
    
    body {
        overflow: auto;
        height: auto;
        min-height: 100vh;
    }
    
    .desktop {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-content: flex-start;
        align-items: flex-start;
        gap: 10px 10px;
        padding: 15px;
        height: auto;
        min-height: calc(100vh - 60px);
        justify-content: flex-start;
        overflow-y: auto;
    }
    
    .desktop-icon {
        min-width: 100px;
        min-height: 100px;
        padding: 10px;
        justify-content: center;
        width: 140px;
        height: 120px;
    }
    
    .desktop-icon img {
        width: 48px;
        height: 48px;
    }
    
    .desktop-icon span {
        font-size: 11px;
        max-width: 80px;
    }
    
    /* Mobile badge adjustments */
    .icon-badge {
        font-size: 9px;
        padding: 1px 4px;
        top: 6px;
        right: 6px;
    }
    
    .taskbar {
        padding: 0 10px;
        height: 50px;
    }
    
    .start-button, .search-button {
        width: 35px;
        height: 35px;
    }
    
    .start-button img, .search-button img {
        width: 20px;
        height: 20px;
    }
    
    /* File Explorer Mobile */
    .file-explorer {
        width: 95vw !important;
        height: 80vh !important;
        max-width: none !important;
        max-height: none !important;
    }
    
    /* Browser Mobile */
    .browser-window {
        width: 95vw !important;
        height: 80vh !important;
        max-width: none !important;
        max-height: none !important;
    }
    
    /* Video Player Mobile */
    .video-player-modal {
        width: 95vw !important;
        height: 70vh !important;
        max-width: none !important;
        max-height: none !important;
    }
    
   
    .file-preview-modal {
        width: 95vw !important;
        height: 70vh !important;
        max-width: none !important;
        max-height: none !important;
    }
    
    /* Start Menu Mobile */
    .start-menu {
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
    }
    
    
    .minimize-btn, .maximize-btn, .close-btn {
        min-width: 40px;
        min-height: 40px;
    }
    
    .explorer-controls button,
    .video-player-controls button,
    .browser-controls button,
    .preview-controls button {
        min-width: 40px;
        min-height: 40px;
    }
}


@media (min-width: 769px) and (max-width: 1024px) {
    .desktop {
        gap: 15px 15px;
        padding: 25px;
        justify-content: flex-start;
    }
    
    .desktop-icon {
        width: 140px;
        height: 120px;
    }
}

/* Large screens (desktop) */
@media (min-width: 1025px) {
    .desktop {
        gap: 20px 20px;
        padding: 30px;
        max-width: 1400px;
        margin: 0 auto;
        justify-content: flex-start;
    }
    
    .desktop-icon {
        width: 140px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .desktop {
        padding: 10px;
        gap: 10px 10px;
        justify-content: flex-start;
    }
    
    .desktop-icon {
        width: 120px;
        height: 100px;
        padding: 8px;
    }
    
    .desktop-icon img {
        width: 40px;
        height: 40px;
    }
    
    .desktop-icon span {
        font-size: 10px;
        max-width: 70px;
    }
    
    .taskbar {
        padding: 0 8px;
        height: 45px;
    }
    
    .start-button, .search-button {
        width: 30px;
        height: 30px;
    }
    
    .start-button img, .search-button img {
        width: 18px;
        height: 18px;
    }
    
    .file-explorer,
    .browser-window,
    .video-player-modal,
    .file-preview-modal {
        width: 98vw !important;
        height: 85vh !important;
        
        transform: translateZ(0);
        will-change: transform;
        backface-visibility: hidden;
    }
    
    .start-menu {
        left: 5px;
        right: 5px;
    }
    
    .explorer-header,
    .video-player-header,
    .browser-header,
    .preview-header {
        padding: 8px 15px;
    }
    
    .explorer-title,
    .video-player-title,
    .browser-title,
    .preview-title {
        font-size: 13px;
    }
}

.desktop {
    padding: 20px;
    display: flex;
    flex-direction: column;  
    flex-wrap: wrap;          
    align-content: flex-start; 
    align-items: flex-start;   
    gap: 10px 10px;          
    height: calc(100vh - 100px);
    max-width: 100%;
    overflow-y: auto;
}


.desktop-icon {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 0px;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
    width: 140px;
    height: 120px;
    box-sizing: border-box;
    justify-content: center;
    flex-shrink: 0; /* prevents icons from shrinking */
    position: relative; /* Required for badge positioning */
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform: scale(1.05);
}

/* Ensure ALL desktop icon images have consistent sizing */
.desktop-icon img {
    width: 64px !important;
    height: 64px !important;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    display: block;
    object-fit: contain;
}

/* Video file icon wrapper - ensure consistent sizing */
.desktop-icon .video-file-icon {
    width: 64px !important;
    height: 64px !important;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    /* Ensure same visual height as regular icons */
    flex-shrink: 0;
}

.desktop-icon .video-file-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    margin-bottom: 0 !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.desktop-icon span {
    font-size: 12px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    max-width: 120px;
    word-wrap: break-word;
    color: white;
    text-align: center;
    line-height: 1.2;
    margin-top: 4px;
}

/* Icon Badge Styles */
.icon-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
    animation: badgePulse 2s ease-in-out infinite;
}

.icon-badge.new {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.icon-badge.live {
    background: linear-gradient(135deg, #2ed573, #1e90ff);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.icon-badge.version {
    background: linear-gradient(135deg, #ffa502, #ff6348);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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





@media (hover: none) and (pointer: coarse) {
    .desktop-icon {
        transition: all 0.1s ease;
    }
    
    .desktop-icon:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.2);
    }
    
    .start-button:active,
    .search-button:active,
    .tray-icon:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.taskbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.start-button, .search-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.start-button:hover, .search-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.start-button img, .search-button img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.taskbar-center {
    display: flex;
    align-items: center;
}

.task-view-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-view-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.task-view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Task View Overlay */
.task-view-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.task-view-overlay.active {
    display: flex;
    opacity: 1;
}

.task-view-content {
    background: rgba(32, 32, 32, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 30px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.task-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.task-view-header h2 {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.task-view-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

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

.task-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.window-thumbnail {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.window-thumbnail:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.thumbnail-preview {
    margin-bottom: 15px;
}

.thumbnail-preview img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.thumbnail-title {
    color: white;
    font-size: 14px;
    font-weight: 500;
}



.taskbar-app {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.taskbar-app:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Minimized app styling */
.taskbar-app.minimized {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.taskbar-app.minimized:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

/* Active vs inactive taskbar app styling */
.taskbar-app.active {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.taskbar-app:not(.active):not(.minimized) {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.taskbar-app img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.taskbar-app span {
    font-size: 12px;
    font-weight: 500;
}

.taskbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tray-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tray-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tray-icon img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 60px;
}

.clock span {
    font-size: 12px;
    font-weight: 500;
}

#time {
    font-size: 14px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop {
        gap: 15px;
        padding: 15px;
    }
    
    .desktop-icon img {
        width: 48px;
        height: 48px;
    }
    
    .taskbar {
        padding: 0 15px;
    }
    
    .taskbar-left, .taskbar-right {
        gap: 10px;
    }
}




#ai img, #leaderboard img, #madyaps img, #testnet img, #mainnet img {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Video icon styling */
.desktop-video-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
    border-radius: 8px;
    object-fit: cover;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}


/*
#ai img, #leaderboard img, #madyaps img, #testnet img, #mainnet img {
    filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    background: transparent;
    padding: 0;
}
*/

/* File Explorer Styles */
.file-explorer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 600px;
    max-width: 95vw;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    color: #333;
    /* z-index managed by JavaScript */
    border: 1px solid rgba(255, 255, 255, 0.2);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Hardware acceleration for smooth dragging */
    will-change: transform;
    backface-visibility: hidden;
    /* Smooth transitions */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dragging optimizations */
.file-explorer.dragging,
.browser-window.dragging,
.video-player-modal.dragging,
.file-preview-modal.dragging {
    transition: none !important;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style paint;
}

/* Remove all window animations - instant appearance */
.file-explorer,
.browser-window,
.video-player-modal,
.file-preview-modal,
.file-explorer *,
.browser-window *,
.video-player-modal *,
.file-preview-modal * {
    transition: none !important;
}

/* Allow minimize animation only */
.file-explorer.minimizing,
.browser-window.minimizing,
.video-player-modal.minimizing,
.file-preview-modal.minimizing {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 9999 !important;
}

.file-explorer.active {
    display: flex;
}

.explorer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px 12px 0 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.explorer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}

.explorer-icon {
    width: 20px;
    height: 20px;
}

.explorer-controls {
    display: flex;
    gap: 5px;
}

.minimize-btn, .maximize-btn, .close-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.minimize-btn:hover, .maximize-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.close-btn:hover {
    background: #e81123;
    color: white;
}

.explorer-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: rgba(248, 248, 248, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.toolbar-left, .toolbar-right {
    display: flex;
    gap: 5px;
}

.toolbar-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.explorer-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.explorer-sidebar {
    width: 200px;
    background: rgba(248, 248, 248, 0.9);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.sidebar-item {
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.sidebar-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.sidebar-item.active {
    background: rgba(0, 123, 255, 0.1);
    color: #0078d4;
}

.explorer-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}



/* Main sections grid styling */
.main-sections-grid {
    flex: 1;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 25px;
    overflow-y: auto;
}

.section-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.section-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}

.section-type {
    font-size: 12px;
    color: #666;
}

.file-grid {
    flex: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 15px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
}

.file-item:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: scale(1.02);
}

.file-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.file-name {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}

.file-type {
    font-size: 10px;
    color: #666;
}

.explorer-statusbar {
    padding: 8px 20px;
    background: rgba(248, 248, 248, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    font-size: 12px;
    color: #666;
}

/* Folder Contents and Navigation */
.folder-contents {
    display: none !important;
    height: 100%;
    overflow: hidden;
}

.folder-contents.active {
    display: block !important;
}


.desktop-files-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    align-items: flex-start;
    justify-content: flex-start;
}

.desktop-files-grid .file-item {
    flex: 0 0 auto;
    width: 120px;
    margin-bottom: 10px;
}

.documents-files-grid,
.downloads-files-grid,
.recycle-bin-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.documents-files-grid::-webkit-scrollbar,
.downloads-files-grid::-webkit-scrollbar,
.recycle-bin-files-grid::-webkit-scrollbar {
    width: 8px;
}

.documents-files-grid::-webkit-scrollbar-track,
.downloads-files-grid::-webkit-scrollbar-track,
.recycle-bin-files-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.documents-files-grid::-webkit-scrollbar-thumb,
.downloads-files-grid::-webkit-scrollbar-thumb,
.recycle-bin-files-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.documents-files-grid::-webkit-scrollbar-thumb:hover,
.downloads-files-grid::-webkit-scrollbar-thumb:hover,
.recycle-bin-files-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}


.union-gallery-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.union-gallery-files-grid::-webkit-scrollbar {
    width: 8px;
}

.union-gallery-files-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.union-gallery-files-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.union-gallery-files-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.logo-files-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    align-items: flex-start;
    justify-content: flex-start;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.logo-files-grid::-webkit-scrollbar {
    width: 8px;
}

.logo-files-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.logo-files-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.logo-files-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(248, 248, 248, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #333;
    min-height: 20px;
}

.breadcrumb:empty {
    padding: 0;
    background: transparent;
    border-bottom: none;
    min-height: 0;
}

.breadcrumb-separator {
    color: #999;
    font-weight: 300;
}

.breadcrumb span {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.breadcrumb span:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.breadcrumb span:first-child {
    color: #007bff;
    font-weight: 500;
}

/* Start Menu Styles */
.start-menu {
    position: fixed;
    bottom: 70px;
    left: 20px;
    width: 400px;
    max-width: 90vw;
    background: rgba(32, 32, 32, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    color: white;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.start-menu.active {
    display: flex;
}

.start-header {
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.start-search {
    width: 100%;
    padding: 12px 12px 12px 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.start-search::placeholder {
    color: #999;
}

.start-search:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

.start-content {
    flex: 1;
    padding: 20px;
}

.pinned-section {
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.all-apps-btn {
    background: transparent;
    border: none;
    color: #0078d4;
    font-size: 13px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.all-apps-btn:hover {
    background: rgba(0, 120, 212, 0.1);
}

.pinned-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.pinned-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 15px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
}

.pinned-app:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.app-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.app-name {
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    max-width: 60px;
    word-wrap: break-word;
}

.start-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    background: rgba(0, 120, 212, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.username {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.power-menu {
    position: relative;
}

.power-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.power-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.power-dropdown {
    position: absolute;
    bottom: 50px;
    right: 0;
    width: 200px;
    background: rgba(32, 32, 32, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1002;
}

.power-dropdown.active {
    display: flex;
}

.power-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.power-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.power-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.power-option span:last-child {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

/* Context Menu Styles */
.context-menu {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 0;
    min-width: 180px;
    display: none;
    z-index: 10000;
    color: #333;
}

.context-menu.active {
    display: block;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.context-menu-item:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.context-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* File Preview Modal */
.file-preview-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    max-width: 95vw;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    color: #333;
    /* z-index managed by JavaScript */
    border: 1px solid rgba(255, 255, 255, 0.2);
    user-select: none;
    overflow: hidden;
    /* Hardware acceleration for smooth dragging */
    will-change: transform;
    backface-visibility: hidden;
    /* Smooth transitions */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When dragging, remove the centering transform */
.file-preview-modal.dragging {
    transition: none !important;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style paint;
}

.file-preview-modal.active {
    display: flex;
}



.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px 12px 0 0;
    user-select: none;
}



.preview-controls {
    display: flex;
    gap: 5px;
}

.preview-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.preview-icon {
    width: 20px;
    height: 20px;
}

.preview-close {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666;
}

.preview-minimize-btn,
.preview-maximize-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666;
}

.preview-minimize-btn:hover,
.preview-maximize-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.preview-close:hover {
    background: #e81123;
    color: white;
}

.preview-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}






/* PDF Viewer */
.pdf-viewer {
    width: 100%;
    height: 100%;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 12px 12px;
}




/* Image Viewer */
.image-viewer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}



.image-viewer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Browser Window Styles */
.browser-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 700px;
    max-width: 95vw;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    color: #333;
    
    border: 1px solid rgba(255, 255, 255, 0.2);
    user-select: none;
    
    will-change: transform;
    backface-visibility: hidden;
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Browser Tabs */
.browser-tabs {
    display: flex;
    align-items: center;
    background: rgba(240, 240, 240, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 10px;
    gap: 5px;
    height: 40px;
}

.tab {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px 6px 0 0;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    max-width: 200px;
    position: relative;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.9);
}

.tab.active {
    background: rgba(255, 255, 255, 1);
    border-bottom-color: transparent;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.tab-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    margin-right: 8px;
}

.tab-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.tab-close:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #d00;
}

.new-tab-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #666;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-tab-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

/* Tab Content */
.tab-content {
    display: none;
    flex: 1;
    position: relative;
    height: 100%;
}

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

.tab-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 12px 12px;
}

.browser-window.active {
    display: flex;
}

.browser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px 12px 0 0;
}

.browser-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}

.browser-icon {
    width: 20px;
    height: 20px;
}

.browser-controls {
    display: flex;
    gap: 5px;
}

.browser-minimize-btn, .browser-maximize-btn, .browser-close-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.browser-minimize-btn:hover, .browser-maximize-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.browser-close-btn:hover {
    background: #e81123;
    color: white;
}

.browser-toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: rgba(248, 248, 248, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.browser-nav {
    display: flex;
    gap: 5px;
}

.browser-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.browser-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.browser-address-bar {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
}

.address-bar-left, .address-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-indicator {
    font-size: 14px;
    color: #5f6368;
}

.browser-bookmark-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.browser-bookmark-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

#browser-url {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.browser-go-btn {
    padding: 8px 16px;
    border: none;
    background: #0078d4;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.browser-go-btn:hover {
    background: #106ebe;
}

.browser-content {
    flex: 1;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    min-height: 400px;
    position: relative;
}

.browser-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 12px 12px;
}

/* New Tab Page Styles */
.new-tab-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px;
    text-align: center;
}

.chrome-logo {
    margin-bottom: 30px;
    opacity: 0.8;
}

.new-tab-page h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 300;
}

.new-tab-page p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    max-width: 500px;
    width: 100%;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #4285f4;
}

.search-box button {
    padding: 12px 24px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-box button:hover {
    background: #3367d6;
}

.url-input-box {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    max-width: 500px;
    width: 100%;
}

.url-input-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.url-input-box input:focus {
    border-color: #4285f4;
}

.url-input-box button {
    padding: 12px 24px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.url-input-box button:hover {
    background: #3367d6;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.quick-link {
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #333;
    font-weight: 500;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

/* Iframe blocked message */
.iframe-blocked-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.blocked-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.iframe-blocked-message h3 {
    color: #333;
    margin-bottom: 16px;
    font-size: 24px;
}

.iframe-blocked-message p {
    color: #666;
    margin-bottom: 32px;
    font-size: 16px;
    max-width: 400px;
    line-height: 1.5;
}

.blocked-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.open-new-tab-btn, .go-back-btn, .try-anyway-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.open-new-tab-btn {
    background: #0078d4;
    color: white;
}

.open-new-tab-btn:hover {
    background: #106ebe;
    transform: translateY(-2px);
}

.try-anyway-btn {
    background: #ff9500;
    color: white;
}

.try-anyway-btn:hover {
    background: #e6850e;
    transform: translateY(-2px);
}

.go-back-btn {
    background: #f3f2f1;
    color: #333;
    border: 1px solid #d2d0ce;
}

.go-back-btn:hover {
    background: #e1dfdd;
    transform: translateY(-2px);
}

/* Video Player Modal Styles */
.video-player-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    max-width: 95vw;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    color: #333;
    /* z-index managed by JavaScript */
    border: 1px solid rgba(255, 255, 255, 0.2);
    user-select: none;
    overflow: hidden;
    /* Hardware acceleration for smooth dragging */
    will-change: transform;
    backface-visibility: hidden;
    /* Smooth transitions */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-player-modal.active {
    display: flex;
}

.video-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px 12px 0 0;
}

.video-player-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}

.video-player-icon {
    width: 20px;
    height: 20px;
}

.video-player-controls {
    display: flex;
    gap: 5px;
}

.video-player-minimize-btn, .video-player-maximize-btn, .video-player-close-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.video-player-minimize-btn:hover, .video-player-maximize-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.video-player-close-btn:hover {
    background: #e81123;
    color: white;
}

.video-player-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

#video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Lock Screen Styles */
.lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/bg.jpg') center center/cover no-repeat;
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.lock-screen.active {
    display: flex;
}

.lock-screen-content {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.lock-screen-time {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.lock-screen-date {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.lock-screen-user {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.lock-screen-hint {
    font-size: 1rem;
    opacity: 0.7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Maximized state - override all constraints for true full screen */
.file-explorer.maximized,
.browser-window.maximized,
.video-player-modal.maximized,
.file-preview-modal.maximized {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    border: none !important;
    z-index: 99999 !important;
}

/* Maximized content should expand to fill the full screen */
.file-preview-modal.maximized .preview-content {
    flex: 1 !important;
    height: calc(100vh - 60px) !important;
}

.file-preview-modal.maximized .pdf-viewer {
    width: 100% !important;
    height: 100% !important;
}

.file-preview-modal.maximized .pdf-viewer iframe {
    width: 100% !important;
    height: 100% !important;
}

.file-preview-modal.maximized .image-viewer {
    width: 100% !important;
    height: 100% !important;
}

.file-preview-modal.maximized .image-viewer img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.browser-window.maximized .browser-content {
    flex: 1 !important;
    height: calc(100vh - 100px) !important;
}

.browser-window.maximized .browser-content iframe {
    width: 100% !important;
    height: 100% !important;
}

.video-player-modal.maximized .video-player-content {
    flex: 1 !important;
    height: calc(100vh - 60px) !important;
}

.video-player-modal.maximized #video-player {
    width: 100% !important;
    height: 100% !important;
}

/* Airdrop Checker Modal Styles */
.airdrop-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 420px;
    height: auto;
    min-height: 220px;
    max-height: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    color: #333;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    user-select: none;
    overflow: hidden;
    will-change: transform;
    backface-visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.airdrop-modal[style*="width"] {
    width: 90% !important;
    max-width: 420px !important;
}

.airdrop-modal[style*="height"] {
    height: auto !important;
    min-height: 220px !important;
    max-height: 280px !important;
}

.airdrop-modal.active {
    display: flex;
}


.airdrop-modal.dragging {
    transition: none;
}


.airdrop-modal.maximized {
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
}

.airdrop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px 12px 0 0;
    user-select: none;
}

/* Maximized header styling */
.airdrop-modal.maximized .airdrop-header {
    border-radius: 0;
}

.airdrop-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.airdrop-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: white;
    padding: 2px;
}

.airdrop-controls {
    display: flex;
    gap: 5px;
}

.airdrop-minimize-btn, .airdrop-maximize-btn, .airdrop-close-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}

.airdrop-minimize-btn:hover, .airdrop-maximize-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.airdrop-close-btn:hover {
    background: #e81123;
    color: white;
    transform: scale(1.05);
}

/* Active states for buttons */
.airdrop-minimize-btn:active, .airdrop-maximize-btn:active, .airdrop-close-btn:active {
    transform: scale(0.95);
}

.airdrop-content {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
    background: white;
    border-radius: 0 0 12px 12px;
}

/* Maximized content styling */
.airdrop-modal.maximized .airdrop-content {
    border-radius: 0;
}

.airdrop-content .input-section {
    background: transparent;
    padding: 4px;
    border-radius: 0;
    border: none;
    margin-bottom: 8px;
}

.airdrop-content .input-group {
    margin-bottom: 12px;
}

.airdrop-content .input-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #495057;
}

.airdrop-content .input-group input {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.9rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.airdrop-content .input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.airdrop-content .check-btn {
    background: #0078d4;
    color: white;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    margin: 0 auto;
    min-width: 140px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI Variable', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.airdrop-content .check-btn:hover {
    background: #106ebe;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}



.airdrop-content .results-section {
    background: transparent;
    padding: 4px;
    border-radius: 0;
    border: none;
    min-height: 40px;
}

.airdrop-content .loading {
    text-align: center;
    padding: 24px;
}

.airdrop-content .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.airdrop-content .results {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

/* Windows-style result styling */
.windows-result {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    transition: all 0.3s ease;
}

.windows-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.windows-result.success {
    border-left: 5px solid #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.windows-result.error {
    border-left: 5px solid #dc3545;
    background: linear-gradient(135deg, #fff8f8 0%, #ffffff 100%);
}

.result-icon {
    font-size: 48px;
    flex-shrink: 0;
    margin-top: 5px;
}

.result-content h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.result-content p {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

.token-info {
    background: rgba(40, 167, 69, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.token-info p {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #28a745;
}

.token-info p:last-child {
    margin-bottom: 0;
}

.allocation-details {
    background: rgba(102, 126, 234, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.allocation-details p {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #495057;
}

.allocation-details p:last-child {
    margin-bottom: 0;
}




.airdrop-modal.maximized {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    border: none !important;
    z-index: 99999 !important;
}

.airdrop-modal.maximized .airdrop-content {
    flex: 1 !important;
    height: calc(100vh - 60px) !important;
}


.eligibility-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    max-width: 95vw;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 100000;
    display: none;
    font-family: 'Segoe UI Variable', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.eligibility-header {
    background: white;
    padding: 12px 16px;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.eligibility-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.eligibility-close-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eligibility-close-btn:hover {
    background: #e81123;
    color: white;
}

.eligibility-content {
    padding: 24px 20px;
    text-align: center;
}

.eligibility-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.eligibility-message {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 8px;
}

.eligibility-details {
    font-size: 13px;
    color: #666;
}

.eligibility-footer {
    padding: 16px 20px;
    text-align: right;
    border-top: 1px solid #e1e1e1;
    background: #f8f8f8;
    border-radius: 0 0 8px 8px;
}

.eligibility-ok-btn {
    background: #0078d4;
    color: white;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Segoe UI Variable', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-width: 75px;
}

.eligibility-ok-btn:hover {
    background: #106ebe;
}


@media (max-width: 768px) {
    .eligibility-dialog {
        width: 95vw;
        max-width: 95vw;
        margin: 10px;
    }
    
    .eligibility-header {
        padding: 16px 20px;
    }
    
    .eligibility-title {
        font-size: 16px;
        font-weight: 600;
    }
    
    .eligibility-content {
        padding: 32px 24px;
    }
    
    .eligibility-icon {
        font-size: 56px;
        margin-bottom: 20px;
    }
    
    .eligibility-message {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .eligibility-details {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .eligibility-footer {
        padding: 20px 24px;
        text-align: center;
    }
    
    .eligibility-ok-btn {
        padding: 12px 32px;
        font-size: 16px;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .eligibility-dialog {
        width: 98vw;
        max-width: 98vw;
        margin: 5px;
    }
    
    .eligibility-header {
        padding: 20px 24px;
    }
    
    .eligibility-title {
        font-size: 18px;
    }
    
    .eligibility-content {
        padding: 40px 28px;
    }
    
    .eligibility-icon {
        font-size: 64px;
        margin-bottom: 24px;
    }
    
    .eligibility-message {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .eligibility-details {
        font-size: 16px;
    }
    
    .eligibility-footer {
        padding: 24px 28px;
    }
    
    .eligibility-ok-btn {
        padding: 16px 40px;
        font-size: 18px;
        min-width: 120px;
    }
}


#tokenomics img, #union-app img, #airdrop img {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
