
         * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background-color: #F8FAFC;
            height: 100vh;
            overflow: hidden;
        }
        .app-container {
            display: flex;
            height: 100vh;
            position: relative;
        }

        /* Mobile Menu Toggle */
        .mobile-menu-toggle {
            display: none;
            position: fixed;
            top: 7px;
            left: 20px;
            z-index: 1001;
            background: #2563EB;
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 18px;
            width: 48px;
            height: 48px;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
        }

        .mobile-menu-toggle:hover {
            background: #1D4ED8;
            transform: scale(1.05);
        }

        .mobile-menu-toggle.hidden {
            opacity: 0;
            pointer-events: none;
            transform: scale(0.8);
        }

        .mobile-menu-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
            transition: opacity 0.3s ease;
        }

        .mobile-menu-overlay.active {
            display: block;
            opacity: 1;
        }

        .preview-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            overflow: auto;
            padding: 40px 20px;
        }

        .preview-modal-content {
            width: 90vw;
            max-width: 90vw;
            max-height: 90vh;
            background: #fff;
            position: relative;
            border-radius: 6px;
            overflow: auto;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .preview-modal-content img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: auto;
            object-fit: contain;
        }

        .preview-modal-content iframe {
            width: 100% !important;
            height: 80vh !important;
            border: none;
        }

        .modal-close {
            position: absolute;
            top: 0px;
            right: 0px;
            font-size: 24px;
            cursor: pointer;
            z-index: 10000;
            background: transparent;
            padding: 4px 4px 4px 4px;
            border-radius: 4px;
        }
        /* Sidebar Close Button */
        .sidebar-close-btn {
            display: none;
            position: absolute;
            right: 0px;
            background: #EF4444;
            color: white;
            border: none;
            padding: 8px;
            cursor: pointer;
            font-size: 14px;
            width: 36px;
            height: 36px;
            align-items: center;
            justify-content: center;
            z-index: 1001;
            transition: all 0.2s ease;
        }

        .sidebar-close-btn:hover {
            background: #DC2626;
            transform: scale(1.05);
        }

        /* Sidebar */
        .sidebar {
            width: 280px;
            background: white;
            border-right: 1px solid #E2E8F0;
            display: flex;
            flex-direction: column;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
            position: relative;
            z-index: 1000;
        }

        .sidebar-header {
            padding: 0px;
            border-bottom: 1px solid #E2E8F0;
            text-align: center;
        }
        
        .logo {
            font-size: 20px;
            font-weight: 700;
            color: #1E293B;
            margin-bottom: 4px;
        }
        
        .logo-img {
            width: 77%;
            height: 100%;
        }

        .subtitle {
            font-size: 12px;
            color: #64748B;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .nav-section {
            padding: 20px 0;
            flex: 1;
        }

        .nav-title {
            padding: 0 20px 12px;
            font-size: 12px;
            font-weight: 600;
            color: #64748B;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .nav-item {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            color: #64748B;
            text-decoration: none;
            transition: all 0.2s;
            cursor: pointer;
        }

        .nav-item:hover {
            background: #F1F5F9;
            color: #334155;
        }

        .nav-item.active {
            background: #EFF6FF;
            color: #2563EB;
            border-right: 3px solid #2563EB;
        }

        .nav-item.coming-soon {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .nav-icon {
            width: 20px;
            height: 20px;
            margin-right: 12px;
        }

        .coming-soon-badge {
            margin-left: auto;
            font-size: 10px;
            background: #F1F5F9;
            color: #64748B;
            padding: 2px 6px;
            border-radius: 4px;
        }

        .sidebar-footer {
            padding: 20px;
            border-top: 1px solid #E2E8F0;
        }

        /* Main Content */
        .main-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .header-bar {
            background: white;
            padding: 16px 24px;
            border-bottom: 1px solid #E2E8F0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 16px;
            min-height: 112px;
        }

        .welcome-section {
            display: flex;
            flex-direction: column;
            min-width: 0;
            flex: 1;
        }

        .welcome-title {
            font-size: 24px;
            font-weight: 700;
            color: #1E293B;
            margin-bottom: 4px;
            word-break: break-word;
        }

        .breadcrumb {
            font-size: 14px;
            color: #64748B;
        }

        .header-controls {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
            flex-basis: 50%;
        }

        .search-bar {
              display: flex;
              align-items: center;
              width: 100%;
              background: #fff;
              border: 1px solid #ccc;
              border-radius: 8px;
              overflow: hidden;
              box-shadow: 0 2px 6px rgba(0,0,0,0.05);
              transition: all 0.2s ease;
            }

            .search-bar:focus-within {
              border-color: #0073aa;
              box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
            }

            .search-input {
              flex: 1;
              border: none;
              padding: 10px 12px;
              font-size: 14px;
              outline: none;
              background: transparent;
            }

            .search-icon,
            .clear-search {
              background: transparent;
              border: none;
              font-size: 18px;
              padding: 10px;
              cursor: pointer;
              color: #555;
              transition: color 0.2s;
            }

            .search-icon:hover,
            .clear-search:hover {
              color: #0073aa;
            }


        .view-toggle {
            display: flex;
            background: #F1F5F9;
            border-radius: 8px;
            padding: 2px;
        }

        .view-btn {
            padding: 6px 12px;
            border: none;
            background: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 12px;
        }

        .view-btn.active {
            background: white;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        .filter-bar {
            padding: 16px 24px;
            background: white;
            border-bottom: 1px solid #E2E8F0;
            display: flex;
            gap: 12px;
            align-items: center;
            flex-wrap: wrap;
        }

        .filter-select {
            padding: 6px 12px;
            border: 1px solid #D1D5DB;
            border-radius: 6px;
            font-size: 14px;
            background: white;
            min-width: 120px;
        }

        /* Content Area */
        .content-area {
            flex: 1;
            display: flex;
            overflow: hidden;
        }

        .files-panel {
            flex: 1;
            padding: 24px;
            overflow-y: auto;
        }

        .files-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }

        .file-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            border: 1px solid #E2E8F0;
            transition: all 0.2s;
            cursor: pointer;
        }

        .file-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .file-icon {
            width: 48px;
            height: 48px;
            margin-bottom: 12px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        .file-icon.pdf { background: #FEF2F2; color: #DC2626; }
        .file-icon.image { background: #F0F9FF; color: #0284C7; }
        .file-icon.video { background: #F3E8FF; color: #7C3AED; }
        .file-icon.folder { background: #FFFBEB; color: #D97706; }

        .file-name {
            font-weight: 600;
            color: #1E293B;
            margin-bottom: 4px;
            font-size: 14px;
            word-break: break-word;
        }

        .file-meta {
            font-size: 12px;
            color: #64748B;
            margin-bottom: 12px;
            word-break: break-word;
        }

        .file-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .btn {
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            text-decoration: none;
            display: inline-block;
            text-align: center;
            white-space: nowrap;
        }

        .btn-primary {
            background: #2563EB;
            color: white !important;
        }

        .btn-primary:hover {
            background: #1D4ED8;
        }

        .btn-secondary {
            background: #F1F5F9;
            color: #64748B;
        }

        .btn-secondary:hover {
            background: #E2E8F0;
        }

        /* Right Panel */
        .right-panel {
            width: 320px;
            background: white;
            border-left: 1px solid #E2E8F0;
            padding: 24px;
            overflow-y: auto;
            display: none;
        }

        .right-panel.active {
            display: block;
        }

        .preview-section {
            margin-bottom: 24px;
        }

        .preview-title {
            font-size: 18px;
            font-weight: 600;
            color: #1E293B;
            margin-bottom: 16px;
        }

        .preview-image {
            width: 100%;
            height: 180px;
            background: #F1F5F9;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
            font-size: 48px;
            color: #64748B;
        }

        .detail-group {
            margin-bottom: 20px;
        }

        .detail-label {
            font-size: 12px;
            font-weight: 600;
            color: #64748B;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
        }

        .detail-value {
            font-size: 14px;
            color: #1E293B;
            word-break: break-word;
        }

        .download-btn {
            width: 100%;
            padding: 12px;
            background: #059669;
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .download-btn:hover {
            background: #047857;
        }

        /* Recent Files Section */
        .recent-section {
            margin-bottom: 32px;
        }

        .section-title {
            font-size: 18px;
            font-weight: 600;
            color: #1E293B;
            margin-bottom: 16px;
        }

        .list-item {
            display: flex;
            align-items: center;
            padding: 12px;
            background: white;
            border-radius: 8px;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
        }

        .list-item:hover {
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .list-item .btn {
            margin-left: auto;
            margin-right: 12px;
        }

        .list-icon {
            width: 32px;
            height: 32px;
            margin-right: 12px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
        }

        .list-content {
            flex: 1;
            min-width: 0;
        }

        .list-name {
            font-weight: 500;
            color: #1E293B;
            font-size: 14px;
            margin-bottom: 2px;
            word-break: break-word;
        }

        .list-meta {
            font-size: 12px;
            color: #64748B;
            word-break: break-word;
        }

        /* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    html{min-width: 100vw;}
    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .content-area {
        padding: 1.5rem;
    }
    
    .search-bar {
        min-width: 250px;
    }
    .sidebar {
    width: 240px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 1000;
        width: 280px;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar-close-btn {
        display: block;
    }
    
    .mobile-menu-toggle {
        top: 30px;
        left: 14px;
        padding: 6px;
        font-size: 16px;
        width: 45px;
        height: 45px;
        display: block;
    }
    
    .mobile-menu-overlay {
        display: none;
        z-index: 1;
    }
    
    .main-content {
        width: 100%;
        margin-left: 0;
    }
    
    .header-bar {
        padding: 1rem 1.5rem 1rem 5.2rem;
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
    }
        .header-bar {
        padding: 1rem;
        width: 100vw;
    }
    
    .welcome-section {
        margin-left:8%;
        min-width: auto;
        width: 26%;
    }
    
    .header-controls {
        width: 100%;
        justify-content: stretch;
    }
    
    .search-bar {
        min-width: auto;
        width: 100%;
    }
    
    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .recent-section {
        padding: 1.5rem;
    }
    
    .welcome-title {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .preview-modal {
        padding: 1rem;
    }
}
@media (min-width:539px) and (max-width: 768px) {
    .header-bar {
        flex-direction: row;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    
    .welcome-section {
        margin-left: 15%;
        width: 100%;
    }
    .sidebar {
        width: 100%;
        max-width: 280px;
    }
    
    .header-bar {
        padding: 1rem;
        width: 100vw;
        flex-wrap: nowrap;
    }
    
    .welcome-title {
        font-size: 1.1rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .files-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .file-card {
        padding: 1rem;
    }
    
    .file-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .file-name {
        font-size: 0.9rem;
    }
    
    .file-meta {
        font-size: 0.75rem;
    }
    
    .file-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .content-area {
        padding: 0.75rem;
        width: 100vw;
    }
    .files-panel {
    padding: 24px 0px;
    }
    
    .recent-section {
        padding: 1rem 10px;
    }
    
    .section-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .search-bar {
        padding: 0.75rem 0.5rem;
        height: 36px;
        margin-bottom: 5px;
    }
    
    .search-input {
        font-size: 0.8rem; /* Prevents zoom on iOS */
    }
    
    .preview-modal {
        padding: 0.5rem;
    }
    
    .preview-modal-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 8px;
    }
    .mobile-menu-toggle {
        top: 25px;
        left: 14px;
        font-size: 20px;
        width: 45px;
        height: 45px;
        padding: 6px;
}
}

/* Extra small screens */
@media (max-width: 320px) {
    .mobile-menu-toggle {
        top: 40px;
        left: 14px;
        font-size: 20px;
        width: 38px;
        height: 38px;
        padding: 6px;
    }
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .header-bar {
        padding: 0.75rem;
    }
    
    .welcome-title {
        font-size: 1rem;
    }
    
    .file-card {
        padding: 0.75rem;
    }
    
    .file-icon {
        font-size: 1.75rem;
    }
    
    .content-area {
        padding: 0.5rem;
    }
    
    .recent-section {
        padding: 0.75rem;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .file-card {
        padding: 1rem;
    }
    
    .file-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .file-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .btn {
        width: auto;
        min-width: 70px;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .file-card {
        border-width: 1px;
    }
    
    .search-bar {
        border-width: 1px;
    }
}

/* Focus styles for accessibility */
.nav-item:focus,
.btn:focus,
.search-input:focus,
.file-card:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
        /* Print Styles */
        @media print {
            .sidebar,
            .mobile-menu-toggle,
            .mobile-menu-overlay,
            .header-controls,
            .filter-bar {
                display: none !important;
            }
            
            .main-content {
                width: 100% !important;
                margin: 0 !important;
            }
            
            .file-card {
                break-inside: avoid;
                page-break-inside: avoid;
            }
        }
        