/* retoor */ /* Mobile-First Responsive Styles */ :root { --touch-target-min: 44px; --touch-target-comfortable: 48px; --sidebar-width-mobile: 280px; --header-height-mobile: 56px; --safe-area-inset-top: env(safe-area-inset-top, 0); --safe-area-inset-bottom: env(safe-area-inset-bottom, 0); --safe-area-inset-left: env(safe-area-inset-left, 0); --safe-area-inset-right: env(safe-area-inset-right, 0); } /* Hamburger Button */ .hamburger-btn { display: none; flex-direction: column; justify-content: center; align-items: center; width: var(--touch-target-min); height: var(--touch-target-min); padding: 8px; background: transparent; border: none; cursor: pointer; gap: 5px; margin-right: 8px; border-radius: 8px; -webkit-tap-highlight-color: transparent; } .hamburger-btn span { display: block; width: 24px; height: 2px; background-color: var(--primary-color); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; } .hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); } .hamburger-btn.active span:nth-child(2) { opacity: 0; } .hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); } .hamburger-btn:active { background-color: rgba(0, 51, 153, 0.1); } /* Sidebar Overlay */ .sidebar-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 149; opacity: 0; transition: opacity 0.3s ease; -webkit-tap-highlight-color: transparent; pointer-events: none; } .sidebar-overlay.visible { opacity: 1; pointer-events: auto; } /* Pull to Refresh Indicator */ .pull-to-refresh-indicator { display: flex; align-items: center; justify-content: center; gap: 12px; height: 0; overflow: hidden; background-color: var(--background-color); transition: height 0.2s ease; opacity: 0; } .pull-spinner { width: 24px; height: 24px; border: 2px solid var(--border-color); border-top-color: var(--primary-color); border-radius: 50%; } .pull-to-refresh-indicator.refreshing .pull-spinner { animation: spin 0.8s linear infinite; } .pull-to-refresh-indicator.ready .pull-spinner { border-color: var(--primary-color); border-top-color: var(--primary-color); } .pull-text { font-size: 0.875rem; color: var(--text-color-light); } @keyframes spin { to { transform: rotate(360deg); } } /* Context Menu */ .context-menu { position: fixed; min-width: 180px; max-width: 280px; background-color: var(--accent-color); border-radius: 12px; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15); z-index: 1000; padding: 8px 0; opacity: 0; transform: scale(0.95); transition: opacity 0.2s ease, transform 0.2s ease; overflow: hidden; } .context-menu.visible { opacity: 1; transform: scale(1); } .context-menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; background: none; border: none; font-size: 1rem; color: var(--text-color); text-align: left; cursor: pointer; min-height: var(--touch-target-min); -webkit-tap-highlight-color: transparent; } .context-menu-item:active { background-color: rgba(0, 51, 153, 0.1); } .context-menu-item.destructive { color: #d32f2f; } .context-menu-icon { width: 20px; text-align: center; } .context-menu-separator { height: 1px; background-color: var(--border-color); margin: 8px 0; } /* Mobile Base Styles (320px+) */ @media (max-width: 767px) { .hamburger-btn { display: flex; } .sidebar-overlay { display: block; } .app-header { height: var(--header-height-mobile); padding: 0 8px; padding-top: var(--safe-area-inset-top); flex-wrap: nowrap; } .header-left { flex-shrink: 0; display: flex; align-items: center; } .app-title { font-size: 1.125rem; } .header-center { flex: 1; min-width: 0; max-width: none; margin: 0 8px; } .search-input { height: var(--touch-target-min); font-size: 16px; } .header-right { flex-shrink: 0; gap: 4px; } .header-right .user-info { display: none; } .header-right .button { min-width: var(--touch-target-min); min-height: var(--touch-target-min); padding: 8px 10px; font-size: 0.875rem; } .app-body { flex-direction: column; } .app-sidebar { position: fixed; top: 0; left: 0; width: var(--sidebar-width-mobile); height: 100vh; height: 100dvh; transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 150; background-color: var(--accent-color); box-shadow: none; padding-top: var(--safe-area-inset-top); overflow-y: auto; } .app-sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15); } .sidebar-nav { padding: 16px; } .nav-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-color-light); margin: 16px 0 8px; } .nav-title:first-child { margin-top: 0; } .nav-list { list-style: none; padding: 0; margin: 0; } .nav-link { display: flex; align-items: center; min-height: var(--touch-target-comfortable); padding: 12px 16px; color: var(--text-color); text-decoration: none; border-radius: 8px; font-size: 1rem; -webkit-tap-highlight-color: transparent; } .nav-link:active { background-color: rgba(0, 51, 153, 0.1); } .nav-link.active { background-color: rgba(0, 51, 153, 0.1); color: var(--primary-color); font-weight: 500; } .app-main { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; } .app-footer { padding: 12px 16px; padding-bottom: calc(12px + var(--safe-area-inset-bottom)); } .footer-links { flex-wrap: wrap; gap: 2px 10px; justify-content: center; } .footer-links li a { font-size: 0.65rem; min-height: 32px; display: flex; align-items: center; padding: 4px 0; } .footer-text { font-size: 0.65rem; margin-top: 8px; } /* File List Mobile */ .file-list-header { padding: 12px; flex-wrap: wrap; gap: 8px; } .file-list-title { font-size: 1.25rem; } .file-actions { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; } .file-actions .button { min-height: var(--touch-target-min); flex: 1; min-width: calc(50% - 4px); justify-content: center; } .file-grid { grid-template-columns: 1fr; gap: 1px; background-color: var(--border-color); padding: 0; } .file-item { flex-direction: row; align-items: center; min-height: 56px; padding: 12px 16px; background-color: var(--accent-color); gap: 12px; border-radius: 0; border: none; } .file-item-checkbox { width: 24px; height: 24px; min-width: 24px; } .file-item-checkbox::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: var(--touch-target-min); height: var(--touch-target-min); } .file-item-icon { width: 40px; height: 40px; } .file-item-info { flex: 1; min-width: 0; } .file-item-name { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .file-item-meta { font-size: 0.75rem; color: var(--text-color-light); } .file-item-actions { display: flex; gap: 4px; } .file-item-actions .action-btn { width: var(--touch-target-min); height: var(--touch-target-min); min-width: var(--touch-target-min); } /* Breadcrumb Mobile */ .breadcrumb { padding: 8px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; } .breadcrumb-item { min-height: var(--touch-target-min); display: inline-flex; align-items: center; padding: 0 8px; } /* Overlays & Modals Mobile */ .modal-overlay, .file-upload-overlay, .file-preview-overlay, .code-editor-overlay { padding: 0; } .modal-content, .upload-content, .preview-content, .editor-content { width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; margin: 0; } /* Bottom Sheet Style Modal */ .bottom-sheet { position: fixed; bottom: 0; left: 0; right: 0; max-height: 90vh; border-radius: 16px 16px 0 0; padding-bottom: var(--safe-area-inset-bottom); transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .bottom-sheet.visible { transform: translateY(0); } .bottom-sheet-handle { width: 36px; height: 4px; background-color: var(--border-color); border-radius: 2px; margin: 8px auto 16px; } /* Login View Mobile */ .login-container { padding: 16px; padding-top: calc(16px + var(--safe-area-inset-top)); } .auth-tabs { min-height: var(--touch-target-comfortable); } .auth-tab { min-height: var(--touch-target-comfortable); font-size: 1rem; } .auth-form input { height: var(--touch-target-comfortable); font-size: 16px; padding: 12px 16px; } .auth-form .button { min-height: var(--touch-target-comfortable); font-size: 1rem; } /* Photo Gallery Mobile */ .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; } .gallery-item { aspect-ratio: 1; } /* Toast Mobile */ .toast-notification { left: 16px; right: 16px; bottom: calc(16px + var(--safe-area-inset-bottom)); max-width: none; transform: translateY(100px); } .toast-notification.visible { transform: translateY(0); } /* Billing Dashboard Mobile */ .billing-container { padding: 16px; } .billing-cards { flex-direction: column; } .billing-card { width: 100%; } .invoice-table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; } .invoice-table { min-width: 500px; } /* Admin Dashboard Mobile */ .admin-container { padding: 16px; } .user-table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; } .user-table { min-width: 600px; } /* User Settings Mobile */ .settings-container { padding: 16px; } .settings-section .button { width: 100%; min-height: var(--touch-target-comfortable); } /* Share Modal Mobile - Bottom Sheet */ .share-modal { top: auto; bottom: 0; left: 0; right: 0; transform: translateY(100%); max-height: 85vh; border-radius: 16px 16px 0 0; padding-bottom: var(--safe-area-inset-bottom); } .share-modal.visible { transform: translateY(0); } .share-modal-content { padding: 16px; } .share-form input, .share-form select { height: var(--touch-target-comfortable); font-size: 16px; } .share-form .button { min-height: var(--touch-target-comfortable); width: 100%; } /* Cookie Consent Mobile */ .cookie-consent { left: 8px; right: 8px; bottom: calc(8px + var(--safe-area-inset-bottom)); padding: 16px; } .cookie-consent-buttons { flex-direction: column; gap: 8px; } .cookie-consent-buttons .button { width: 100%; min-height: var(--touch-target-min); } } /* Mobile Landscape (480px+) */ @media (min-width: 480px) and (max-width: 767px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } .file-actions .button { min-width: auto; flex: 0 1 auto; } } /* Tablet (768px+) */ @media (min-width: 768px) { .hamburger-btn { display: none; } .sidebar-overlay { display: none; } .app-sidebar { position: relative; transform: none; width: var(--sidebar-width); } .file-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } } /* Desktop (1024px+) */ @media (min-width: 1024px) { .file-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } } /* Touch-specific styles */ @media (hover: none) and (pointer: coarse) { .button:hover, .nav-link:hover, .file-item:hover { background-color: inherit; } .button:active, .nav-link:active { background-color: rgba(0, 51, 153, 0.1); } .file-item:active { background-color: rgba(0, 51, 153, 0.05); } * { -webkit-tap-highlight-color: transparent; } } /* Dark Mode Mobile Adjustments */ body.dark-mode .hamburger-btn span { background-color: var(--text-color); } body.dark-mode .hamburger-btn:active { background-color: rgba(255, 255, 255, 0.1); } body.dark-mode .nav-link:active, body.dark-mode .button:active { background-color: rgba(255, 255, 255, 0.1); } body.dark-mode .context-menu { background-color: #333; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4); } body.dark-mode .context-menu-item:active { background-color: rgba(255, 255, 255, 0.1); } body.dark-mode .pull-to-refresh-indicator { background-color: var(--background-color); } body.dark-mode .file-item { background-color: var(--background-color); }