/* Add these styles to your existing styles.css file */ /* Theme Toggle */ .theme-toggle-icon { cursor: pointer; padding: 0.5rem; border-radius: 50%; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; } .theme-toggle-icon:hover { background-color: rgba(0, 0, 0, 0.1); } [data-theme="dark"] .theme-toggle-icon:hover { background-color: rgba(255, 255, 255, 0.1); } /* Make sure theme transitions work */ body, .card, .navbar, .sidebar, input, select, textarea, button, .modal-content, .file-item, .folder-item { transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; } /* Main styles for the file management system */ :root { /* Dark theme with violet accents */ --primary-color: #9d8cff; --primary-hover: #8a7aee; --primary-transparent: rgba(157, 140, 255, 0.1); --secondary-color: #6c757d; --success-color: #4cd964; --danger-color: #ff3b30; --warning-color: #ffcc00; --info-color: #5ac8fa; /* Core dark theme colors */ --background-color: #121418; --card-bg: #1a1c23; --card-bg-hover: #22242c; --text-color: #f2f3f8; --text-muted: #a0a0b0; --border-color: #2a2d3a; /* Component variables */ --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.15); --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.2); --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.25); --border-radius: 8px; --transition-speed: 0.3s; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: var(--background-color); color: var(--text-color); transition: background-color 0.3s ease; margin: 0; padding: 0; display: flex; min-height: 100vh; } /* Sidebar Navigation */ .sidebar { width: 250px; background-color: var(--card-bg); border-right: 1px solid var(--border-color); padding: 1.5rem 0; position: fixed; height: 100vh; overflow-y: auto; transition: all 0.3s ease; } .sidebar-brand { display: flex; align-items: center; padding: 0 1.5rem; margin-bottom: 2rem; color: var(--primary-color); text-decoration: none; font-weight: 600; font-size: 1.25rem; } .sidebar-brand i { margin-right: 0.75rem; font-size: 1.5rem; } .sidebar-nav { list-style: none; padding: 0; margin: 0; } .sidebar-nav-item { margin-bottom: 0.5rem; } .sidebar-nav-link { display: flex; align-items: center; padding: 0.75rem 1.5rem; color: var(--text-color); text-decoration: none; transition: all 0.2s ease; border-left: 3px solid transparent; } .sidebar-nav-link:hover, .sidebar-nav-link.active { background-color: var(--card-bg-hover); border-left-color: var(--primary-color); } .sidebar-nav-link i { margin-right: 0.75rem; width: 20px; text-align: center; color: var(--primary-color); } /* Main Content */ .main-wrapper { flex: 1; margin-left: 250px; padding: 2rem; width: calc(100% - 250px); } .main-content { max-width: 1200px; margin: 0 auto; } /* Dashboard Cards */ .dashboard-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; } .dashboard-card { background-color: var(--card-bg); border-radius: var(--border-radius); padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; align-items: center; transition: transform 0.2s ease, box-shadow 0.2s ease; } .dashboard-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); } .dashboard-card-icon { width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-right: 1rem; font-size: 1.5rem; } .dashboard-card-icon.files { background-color: rgba(77, 156, 255, 0.2); color: #4d9cff; } .dashboard-card-icon.folders { background-color: rgba(76, 217, 100, 0.2); color: #4cd964; } .dashboard-card-icon.storage { background-color: rgba(90, 200, 250, 0.2); color: #5ac8fa; } .dashboard-card-content h3 { margin: 0; font-size: 1.25rem; font-weight: 600; } .dashboard-card-content p { margin: 0.25rem 0 0; font-size: 1.5rem; font-weight: 700; } /* Recent Files Section */ .recent-files-section { background-color: var(--card-bg); border-radius: var(--border-radius); padding: 1.5rem; box-shadow: var(--shadow-sm); } .recent-files-header { margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-color); } .recent-files-header h2 { margin: 0; font-size: 1.25rem; font-weight: 600; } .recent-files-list { margin-bottom: 1.5rem; } .recent-file-item { display: flex; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); } .recent-file-item:last-child { border-bottom: none; } .recent-file-icon { margin-right: 1rem; color: var(--primary-color); } .recent-file-info { flex: 1; } .recent-file-name { font-weight: 500; margin-bottom: 0.25rem; } .recent-file-meta { font-size: 0.875rem; color: var(--text-muted); } .recent-file-actions { display: flex; gap: 0.5rem; } .recent-file-actions button { background: none; border: none; color: var(--text-muted); cursor: pointer; transition: color 0.2s ease; } .recent-file-actions button:hover { color: var(--primary-color); } /* Action Buttons */ .action-buttons { display: flex; gap: 1rem; margin-top: 1.5rem; } .action-btn { display: inline-flex; align-items: center; padding: 0.75rem 1.25rem; background-color: var(--card-bg-hover); color: var(--text-color); border: none; border-radius: var(--border-radius); cursor: pointer; text-decoration: none; transition: all 0.2s ease; } .action-btn:hover { background-color: var(--primary-color); color: white; } .action-btn i { margin-right: 0.5rem; } /* Footer */ .footer { background-color: var(--card-bg); color: var(--text-muted); text-align: center; padding: 1rem 0; margin-top: 2rem; border-top: 1px solid var(--border-color); } /* Flash Messages */ .flash-messages { margin-bottom: 1.5rem; } .flash-message { display: flex; align-items: center; padding: 1rem; border-radius: var(--border-radius); margin-bottom: 0.75rem; background-color: var(--card-bg); border-left: 4px solid var(--primary-color); } .flash-message.success { border-left-color: var(--success-color); } .flash-message.danger, .flash-message.error { border-left-color: var(--danger-color); } .flash-message.warning { border-left-color: var(--warning-color); } .flash-message.info { border-left-color: var(--info-color); } .flash-icon { margin-right: 1rem; font-size: 1.25rem; } .flash-message.success .flash-icon { color: var(--success-color); } .flash-message.danger .flash-icon, .flash-message.error .flash-icon { color: var(--danger-color); } .flash-message.warning .flash-icon { color: var(--warning-color); } .flash-message.info .flash-icon { color: var(--info-color); } .flash-content { flex: 1; } .flash-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.25rem; transition: color 0.2s ease; } .flash-close:hover { color: var(--text-color); } /* Responsive Adjustments */ @media (max-width: 768px) { .sidebar { transform: translateX(-100%); z-index: 1000; } .sidebar.active { transform: translateX(0); } .main-wrapper { margin-left: 0; width: 100%; padding: 1rem; } .dashboard-cards { grid-template-columns: 1fr; } } /* Modern navbar styles */ .navbar { background-color: var(--card-bg); box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--border-color); padding: 0.75rem 1rem; } .navbar-brand { font-weight: 600; font-size: 1.25rem; display: flex; align-items: center; color: var(--primary-color); text-decoration: none; } .navbar-brand i { margin-right: 0.5rem; font-size: 1.5rem; } .navbar-nav { display: flex; list-style: none; padding: 0; margin: 0; } .navbar-nav .nav-item { margin-left: 0.5rem; } .navbar-nav .nav-link { color: var(--text-muted); text-decoration: none; padding: 0.5rem 0.75rem; border-radius: var(--border-radius); transition: all 0.2s ease; display: flex; align-items: center; position: relative; } .navbar-nav .nav-link i { margin-right: 0.5rem; } .navbar-nav .nav-link:hover { color: var(--primary-color); background-color: var(--primary-transparent); } .navbar-nav .nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background-color: var(--primary-color); transition: all 0.2s ease; transform: translateX(-50%); } .navbar-nav .nav-link:hover::after { width: 80%; } /* Browser container and elements */ .browser-container { background-color: var(--card-bg); border-radius: var(--border-radius); box-shadow: var(--shadow-sm); margin-bottom: 30px; overflow: hidden; } .browser-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--border-color); } .browser-title { display: flex; align-items: center; } .browser-title i { font-size: 1.5rem; margin-right: 10px; color: var(--primary-color); } .browser-title h2 { margin: 0; font-size: 1.4rem; font-weight: 500; } /* Files and folders styling */ .grid-view .folder-item, .grid-view .file-item { background-color: var(--card-bg-hover); border: 1px solid var(--border-color); border-radius: var(--border-radius); transition: all 0.2s ease; } .grid-view .folder-item:hover, .grid-view .file-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-color); } .grid-view .item-icon { color: var(--primary-color); } .grid-view .folder-item .item-icon { color: var(--primary-color); } /* Button styles */ .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1rem; border-radius: var(--border-radius); font-weight: 500; cursor: pointer; transition: all 0.2s ease; border: none; font-size: 0.95rem; } .btn.primary { background-color: var(--primary-color); color: white; } .btn.primary:hover { background-color: var(--primary-hover); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); } .btn.secondary { background-color: var(--card-bg-hover); color: var(--text-color); border: 1px solid var(--border-color); } .btn.secondary:hover { border-color: var(--primary-color); color: var(--primary-color); } .btn i { margin-right: 0.5rem; } /* Mobile floating action button */ .mobile-fab { display: none; position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px; border-radius: 50%; background-color: var(--primary-color); color: white; box-shadow: var(--shadow-md); z-index: 1000; cursor: pointer; align-items: center; justify-content: center; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); } .mobile-fab i { font-size: 1.5rem; transition: transform 0.3s ease; } .mobile-fab.active { transform: rotate(45deg); } .mobile-menu { position: fixed; bottom: 80px; right: 20px; display: flex; flex-direction: column-reverse; align-items: flex-end; z-index: 999; opacity: 0; transform: translateY(20px); pointer-events: none; transition: all 0.3s ease; } .mobile-menu.active { opacity: 1; transform: translateY(0); pointer-events: all; } .mobile-menu-item { display: flex; align-items: center; background-color: var(--card-bg); color: var(--text-color); border-radius: var(--border-radius); padding: 0.5rem 1rem; margin-bottom: 10px; box-shadow: var(--shadow-md); transform: scale(0.9); opacity: 0; transition: all 0.2s ease; } .mobile-menu.active .mobile-menu-item { transform: scale(1); opacity: 1; } .mobile-menu-item i { margin-right: 0.5rem; color: var(--primary-color); } /* Media queries for responsiveness */ @media (max-width: 768px) { .navbar { padding: 0.5rem; } .navbar-nav { display: none; } .mobile-fab { display: flex; } .browser-header { flex-direction: column; align-items: flex-start; } .browser-actions { width: 100%; margin-top: 15px; } .browser-title h2 { font-size: 1.2rem; } .files-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } } /* Global dropzone overlay for quick uploads */ .global-dropzone { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); z-index: 9999; display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; } .global-dropzone.active { display: flex; opacity: 1; } .dropzone-content { text-align: center; color: white; padding: 2rem; border-radius: 12px; background-color: rgba(var(--primary-color-rgb), 0.3); border: 3px dashed rgba(255, 255, 255, 0.5); max-width: 500px; width: 90%; animation: pulse 2s infinite; } .dropzone-icon { margin-bottom: 1.5rem; } .dropzone-content h3 { font-size: 1.8rem; margin-bottom: 0.75rem; } .dropzone-content p { opacity: 0.8; font-size: 1.1rem; } /* Upload toast notification */ .upload-toast { position: fixed; bottom: 2rem; right: 2rem; width: 350px; background-color: var(--card-bg); border-radius: 10px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); z-index: 1080; overflow: hidden; display: none; transform: translateY(20px); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease; } .upload-toast.active { display: block; transform: translateY(0); opacity: 1; } .upload-toast-header { display: flex; align-items: center; padding: 0.8rem 1rem; background-color: var(--primary-color); color: white; } .upload-toast-header i { margin-right: 0.75rem; } .upload-toast-close { margin-left: auto; background: none; border: none; color: white; font-size: 1.25rem; cursor: pointer; padding: 0; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s ease; } .upload-toast-close:hover { background-color: rgba(255, 255, 255, 0.2); } .upload-toast-body { padding: 1rem; } .upload-toast-progress-info { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.9rem; } .upload-toast-progress-bar-container { height: 8px; background-color: var(--border-color); border-radius: 4px; overflow: hidden; } .upload-toast-progress-bar { height: 100%; width: 0; background-color: var(--primary-color); transition: width 0.3s ease; } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } } /* File and folder views */ .files-container { padding: 20px; min-height: 300px; } /* Grid view */ .files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; } .grid-view .folder-item, .grid-view .file-item { padding: 15px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; text-align: center; background-color: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-color); position: relative; transition: all 0.3s; text-decoration: none; color: var(--text-color); height: 150px; } .grid-view .item-icon { font-size: 2.5rem; margin-bottom: 10px; color: var(--primary-color); } .grid-view .folder-item .item-icon { color: #f1c40f; } .grid-view .item-info { width: 100%; } .grid-view .item-name { font-weight: 500; margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .grid-view .item-details { font-size: 0.8rem; color: var(--text-muted); display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; } /* File actions */ .file-actions { position: absolute; top: 5px; right: 5px; display: flex; gap: 5px; opacity: 0; transition: opacity 0.2s; } .folder-item:hover .file-actions, .file-item:hover .file-actions { opacity: 1; } .action-btn { background: rgba(0, 0, 0, 0.5); border: none; color: white; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; } .action-btn:hover { background: var(--primary-color); } .action-btn.edit:hover { background: var(--info-color); } .action-btn.delete:hover { background: var(--danger-color); } /* Empty folder */ .empty-folder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 300px; text-align: center; } .empty-icon { font-size: 3rem; color: var(--border-color); margin-bottom: 15px; } .empty-message h3 { margin-bottom: 10px; font-weight: 500; } .empty-message p { color: var(--text-muted); margin-bottom: 20px; } .empty-actions { display: flex; gap: 10px; } /* Breadcrumbs */ .breadcrumbs { display: flex; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--border-color); overflow-x: auto; white-space: nowrap; } .breadcrumb-item { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; padding: 5px 0; } .breadcrumb-item:hover { color: var(--primary-color); } .breadcrumb-separator { margin: 0 8px; color: var(--secondary-color); } /* Search bar */ .search-container { position: relative; margin-right: 10px; } .search-container input { padding: 8px 15px 8px 35px; border-radius: 20px; border: 1px solid var(--border-color); background-color: rgba(0, 0, 0, 0.2); color: var(--text-color); width: 200px; transition: all 0.3s; } .search-container input:focus { width: 250px; outline: none; border-color: var(--primary-color); } .search-btn { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; } /* View toggle */ .view-toggle { display: flex; border-radius: 4px; overflow: hidden; margin-right: 10px; } .view-btn { background-color: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-muted); padding: 8px 12px; cursor: pointer; transition: all 0.2s; } .view-btn:first-child { border-radius: 4px 0 0 4px; } .view-btn:last-child { border-radius: 0 4px 4px 0; } .view-btn.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); } /* Modal */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1000; align-items: center; justify-content: center; } .modal.active { display: flex; } .modal-content { background-color: var(--card-bg); border-radius: 8px; width: 100%; max-width: 500px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); animation: modal-appear 0.3s forwards; } @keyframes modal-appear { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--border-color); } .modal-header h3 { margin: 0; font-size: 1.25rem; } .modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-color); opacity: 0.7; transition: opacity 0.2s; } .modal-close:hover { opacity: 1; } .modal-body { padding: 20px; } .form-group { margin-bottom: 20px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 500; } .form-group input { width: 100%; padding: 10px; border-radius: 4px; border: 1px solid var(--border-color); background-color: rgba(0, 0, 0, 0.2); color: var(--text-color); } .form-group input:focus { outline: none; border-color: var(--primary-color); } .form-actions { display: flex; justify-content: flex-end; gap: 10px; } /* Upload Files Panel */ .upload-files-panel { position: fixed; top: 0; right: 0; width: 320px; height: 100%; background-color: var(--card-bg); box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2); z-index: 1000; transform: translateX(100%); transition: transform 0.3s ease; overflow: hidden; display: flex; flex-direction: column; } .upload-files-panel.active { transform: translateX(0); } .upload-files-header { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid var(--border-color); } .upload-files-header h3 { margin: 0; font-size: 1.2rem; color: var(--text-color); } .upload-files-header .close-btn { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; transition: color 0.2s ease; } .upload-files-header .close-btn:hover { color: var(--danger-color); } .upload-files-content { flex: 1; padding: 15px; overflow-y: auto; } .upload-drop-area { border: 2px dashed var(--border-color); border-radius: 8px; padding: 30px 20px; text-align: center; margin-bottom: 20px; transition: border-color 0.2s ease, background-color 0.2s ease; } .upload-drop-area.drag-over { border-color: var(--primary-color); background-color: rgba(var(--primary-rgb), 0.05); } .upload-drop-area i { font-size: 2.5rem; color: var(--text-muted); margin-bottom: 10px; } .upload-drop-area p { margin: 10px 0; color: var(--text-color); } .upload-files-footer { padding: 15px; border-top: 1px solid var(--border-color); } .upload-progress { margin-bottom: 15px; } .upload-progress-label { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.9rem; color: var(--text-muted); } .upload-progress-bar { height: 6px; background-color: var(--border-color); border-radius: 3px; overflow: hidden; } .upload-progress-bar-fill { height: 100%; background-color: var(--primary-color); width: 0%; transition: width 0.3s ease; } .upload-actions { display: flex; justify-content: space-between; }