/* Mobile Cloud Library (Immich Cloud) Styles */ .mob-lib-root { display: flex; flex-direction: column; height: 100%; width: 100%; background: #101014; color: #f4f4f5; font-family: var(--sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif); overflow: hidden; position: relative; user-select: none; -webkit-user-select: none; } /* --- Top Header Bar --- */ .mob-lib-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: max(10px, env(safe-area-inset-top)) 16px 10px; background: rgba(16, 16, 20, 0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); flex-shrink: 0; } .mob-lib-header-left { display: flex; align-items: center; gap: 8px; } .mob-lib-brand { display: flex; align-items: center; gap: 7px; text-decoration: none; color: #ffffff; } .mob-lib-brand-img { width: 25px; height: 25px; border-radius: 6px; flex-shrink: 0; display: block; } .mob-lib-logo-svg { width: 22px; height: 22px; flex-shrink: 0; } .mob-lib-brand-text { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: #ffffff; line-height: 1; } .mob-lib-brand-text em { font-style: normal; font-weight: 500; color: #ff5a36; } .mob-lib-header-title { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.55); padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, 0.15); line-height: 1.2; } .mob-lib-header-folder-info { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 170px; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, 0.15); } .mob-lib-header-folder-icon { font-size: 14px; display: inline-flex; align-items: center; flex-shrink: 0; } .mob-lib-header-folder-name { font-size: 13px; font-weight: 600; color: #f4f4f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mob-lib-folder-brand { display: flex; align-items: center; gap: 5px; min-width: 0; overflow: hidden; } .mob-lib-folder-brand-text { font-size: 14px; font-weight: 700; color: #f4f4f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* --- Subbar when Immich Cloud or Folder is open --- */ .mob-lib-immich-subbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: rgba(22, 22, 28, 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); flex-shrink: 0; z-index: 25; } .mob-lib-immich-subbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; } .mob-lib-immich-brand { display: flex; align-items: center; gap: 6px; flex-shrink: 0; } .mob-lib-immich-brand .mob-lib-logo-svg { width: 18px; height: 18px; flex-shrink: 0; } .mob-lib-immich-text { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: #ffffff; line-height: 1; } .mob-lib-immich-pill { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; background: rgba(66, 133, 244, 0.18); color: #60a5fa; border: 1px solid rgba(66, 133, 244, 0.35); line-height: 1.4; } .mob-lib-immich-album-name { font-size: 13px; font-weight: 600; color: #e4e4e7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mob-lib-immich-subbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; } .mob-lib-immich-count { font-size: 11px; color: #a1a1aa; } .mob-lib-header-right { display: flex; align-items: center; gap: 12px; } .mob-lib-status-btn { display: flex; align-items: center; justify-content: center; background: transparent; border: none; color: #d4d4d8; cursor: pointer; padding: 4px; border-radius: 50%; transition: opacity 0.2s; } .mob-lib-status-btn:active { opacity: 0.6; } .mob-lib-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; border: 1.5px solid rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; background: #27272a; } .mob-lib-avatar img { width: 100%; height: 100%; object-fit: cover; } .mob-lib-studio-link { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #f4f4f5; font-size: 11px; font-weight: 600; text-decoration: none; letter-spacing: 0.02em; transition: background 0.2s; } .mob-lib-studio-link:active { background: rgba(255, 255, 255, 0.2); } /* --- Main Content Area --- */ .mob-lib-content { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-bottom: calc(72px + env(safe-area-inset-bottom)); position: relative; scrollbar-width: none; -ms-overflow-style: none; } .mob-lib-content::-webkit-scrollbar { display: none; } /* --- Timeline / Date Grouping --- */ .mob-lib-date-group { margin-bottom: 12px; } .mob-lib-date-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 8px; font-size: 16px; font-weight: 600; color: #f4f4f5; letter-spacing: -0.01em; } .mob-lib-date-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.3); display: flex; align-items: center; justify-content: center; color: transparent; cursor: pointer; background: transparent; padding: 0; transition: all 0.2s; } .mob-lib-date-check.checked { background: var(--accent, #f59e0b); border-color: var(--accent, #f59e0b); color: #000; } /* --- 3-Column Photo Grid --- */ .mob-lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; } .mob-lib-thumb-cell { position: relative; aspect-ratio: 1; background: #1c1c22; overflow: hidden; cursor: pointer; touch-action: manipulation; content-visibility: auto; contain-intrinsic-size: 110px 110px; } .mob-lib-thumb-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.2s; } .mob-lib-thumb-cell:active img { opacity: 0.8; } .mob-lib-cloud-badge { position: absolute; bottom: 4px; right: 4px; width: 16px; height: 16px; color: #ffffff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85)); pointer-events: none; opacity: 0.95; } .mob-lib-edited-badge { position: absolute; top: 4px; left: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent, #f59e0b); box-shadow: 0 0 4px rgba(0, 0, 0, 0.8); pointer-events: none; } .mob-lib-star-badge { position: absolute; top: 4px; right: 4px; display: flex; align-items: center; gap: 1px; background: rgba(0, 0, 0, 0.6); padding: 1px 4px; border-radius: 4px; font-size: 10px; color: #fbbf24; backdrop-filter: blur(4px); pointer-events: none; } /* --- Floating Fast Scroll Indicator replacing side scrollbar --- */ .mob-lib-scroll-handle { position: fixed; right: 6px; z-index: 45; width: 28px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: rgba(28, 30, 38, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6); color: #ffffff; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.15s ease; } .mob-lib-scroll-handle.visible { opacity: 1; pointer-events: auto; } .mob-lib-scroll-handle:active { cursor: grabbing; transform: scale(1.08); background: rgba(45, 48, 62, 0.98); border-color: rgba(255, 255, 255, 0.4); } .mob-lib-scroll-arrow { display: flex; align-items: center; justify-content: center; pointer-events: none; color: #f4f4f5; opacity: 0.9; } /* --- Search View --- */ .mob-lib-search-pane { padding: 12px; } .mob-lib-search-input-wrap { position: relative; display: flex; align-items: center; margin-bottom: 12px; } .mob-lib-search-icon { position: absolute; left: 12px; color: #71717a; pointer-events: none; } .mob-lib-search-input { width: 100%; padding: 10px 36px 10px 38px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: #1c1c22; color: #ffffff; font-size: 14px; outline: none; transition: border-color 0.2s; } .mob-lib-search-input:focus { border-color: var(--accent, #f59e0b); } .mob-lib-search-clear { position: absolute; right: 12px; background: transparent; border: none; color: #71717a; cursor: pointer; padding: 4px; display: flex; } .mob-lib-chips-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; scrollbar-width: none; } .mob-lib-chips-row::-webkit-scrollbar { display: none; } .mob-lib-chip { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; border: 1px solid rgba(255, 255, 255, 0.12); background: #1c1c22; color: #d4d4d8; cursor: pointer; } .mob-lib-chip.active { background: var(--accent, #f59e0b); color: #000000; border-color: var(--accent, #f59e0b); font-weight: 600; } /* --- Sticky Search & Filter Bar neo ở top của UI Preview --- */ .mob-lib-sticky-search { position: sticky; top: 0; z-index: 30; background: rgba(16, 16, 20, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); } .mob-lib-search-close-btn { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.15); color: #e4e4e7; font-size: 13px; font-weight: 600; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: background 0.2s; flex-shrink: 0; padding: 0; } .mob-lib-search-close-btn:active { background: rgba(255, 255, 255, 0.2); } /* --- Search Top Row with Input, View Mode Toggle, and Close --- */ .mob-lib-search-top-row { display: flex; align-items: center; gap: 8px; width: 100%; } .mob-lib-view-toggle { display: inline-flex; align-items: center; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 8px; padding: 2px; flex-shrink: 0; gap: 2px; } .mob-lib-view-btn { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; border: none; background: transparent; color: #a1a1aa; cursor: pointer; transition: all 0.15s ease; padding: 0; } .mob-lib-view-btn:active { transform: scale(0.95); } .mob-lib-view-btn.active { background: rgba(255, 255, 255, 0.22); color: #ffffff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); } /* --- Filter Scope Row (Toggle between All Immich Photos and Current Album) --- */ .mob-lib-filter-scope-row { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; } .mob-lib-filter-scope-row::-webkit-scrollbar { display: none; } .mob-lib-filter-scope-label { font-size: 11px; font-weight: 600; color: #a1a1aa; text-transform: uppercase; letter-spacing: 0.5px; flex-shrink: 0; margin-right: 2px; } .mob-lib-scope-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 9999px; font-size: 12px; font-weight: 500; color: #a1a1aa; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: all 0.15s ease; } .mob-lib-scope-pill:active { transform: scale(0.96); } .mob-lib-scope-pill.active { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.6); color: #60a5fa; font-weight: 600; box-shadow: 0 1px 4px rgba(59, 130, 246, 0.2); } /* --- Dropbox Row --- */ .mob-lib-dropbox-row { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .mob-lib-dropbox-row::-webkit-scrollbar { display: none; } .mob-lib-dropbox { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; padding: 0 8px; height: 32px; font-size: 12px; color: #e4e4e7; cursor: pointer; transition: all 0.15s ease; white-space: nowrap; } .mob-lib-dropbox.active, .mob-lib-dropbox-btn.active { background: rgba(245, 158, 11, 0.18); border-color: rgba(245, 158, 11, 0.6); color: #fbbf24; font-weight: 600; } .mob-lib-dropbox-btn { position: relative; display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; padding: 0 10px; height: 32px; font-size: 12px; color: #e4e4e7; cursor: pointer; transition: all 0.15s ease; white-space: nowrap; } .mob-lib-dropbox-btn.open { border-color: rgba(96, 165, 250, 0.7); background: rgba(59, 130, 246, 0.18); color: #93c5fd; } .mob-lib-dropbox-select { appearance: none; -webkit-appearance: none; background: transparent; border: none; color: inherit; font-size: 12px; font-weight: inherit; padding: 0 12px 0 0; cursor: pointer; outline: none; height: 100%; } .mob-lib-dropbox-select option { background: #1c1c24; color: #ffffff; } .mob-lib-dropbox-caret { font-size: 10px; opacity: 0.7; margin-left: 2px; pointer-events: none; } /* --- Popover Card for Year/Month/Date & Time --- */ .mob-lib-popover-card { margin-top: 4px; background: #18181f; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); animation: mobLibFadeDown 0.18s ease-out; } @keyframes mobLibFadeDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } } .mob-lib-popover-header { display: flex; align-items: center; justify-content: space-between; } .mob-lib-popover-title { font-size: 12px; font-weight: 700; color: #d4d4d8; letter-spacing: 0.02em; } .mob-lib-popover-reset-btn { background: transparent; border: none; color: #ef4444; font-size: 11px; font-weight: 600; cursor: pointer; padding: 2px 6px; border-radius: 4px; } .mob-lib-popover-reset-btn:active { background: rgba(239, 68, 68, 0.15); } .mob-lib-popover-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .mob-lib-popover-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } .mob-lib-popover-col { display: flex; flex-direction: column; gap: 4px; } .mob-lib-popover-label { font-size: 10px; font-weight: 600; color: #a1a1aa; text-transform: uppercase; } .mob-lib-popover-select { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); color: #ffffff; border-radius: 8px; padding: 6px 8px; font-size: 12px; outline: none; } .mob-lib-popover-select option { background: #1c1c24; color: #ffffff; } .mob-lib-popover-footer { display: flex; justify-content: flex-end; } .mob-lib-popover-done-btn { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); color: #ffffff; font-size: 11px; font-weight: 600; padding: 5px 14px; border-radius: 6px; cursor: pointer; } .mob-lib-popover-done-btn:active { background: rgba(255, 255, 255, 0.24); } /* --- Single Photo Mode (1 large card per row) --- */ .mob-lib-single-list { display: flex; flex-direction: column; gap: 16px; padding: 12px 14px; } .mob-lib-single-card { background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease; content-visibility: auto; contain-intrinsic-size: 320px 280px; } .mob-lib-single-card:active { transform: scale(0.99); border-color: rgba(255, 255, 255, 0.2); } .mob-lib-single-img-wrap { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #09090b; display: flex; align-items: center; justify-content: center; overflow: hidden; } .mob-lib-single-img { width: 100%; height: 100%; object-fit: contain; } .mob-lib-single-badges { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; gap: 6px; z-index: 2; } .mob-lib-single-info { padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; background: rgba(18, 18, 22, 0.7); } .mob-lib-single-name { font-size: 13px; font-weight: 600; color: #ffffff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mob-lib-single-date { font-size: 11px; color: #a1a1aa; } /* --- Album Folder Tree Column (Desktop style on Mobile) --- */ .mob-lib-tree-pane { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 100%; } .mob-lib-tree-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 10px; } .mob-lib-tree-toolbar-title { font-size: 13px; font-weight: 700; color: #f4f4f5; } .mob-lib-tree-list { display: flex; flex-direction: column; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px; overflow: hidden; } .mob-lib-tree-row { display: flex; align-items: center; gap: 8px; padding: 11px 12px; color: #d4d4d8; cursor: pointer; user-select: none; -webkit-user-select: none; border-bottom: 1px solid rgba(255, 255, 255, 0.04); transition: background 0.15s, color 0.15s; } .mob-lib-tree-row:last-child { border-bottom: none; } .mob-lib-tree-row:active { background: rgba(255, 255, 255, 0.08); } .mob-lib-tree-row.selected { background: rgba(245, 158, 11, 0.15); color: #f59e0b; } .mob-lib-tree-caret { display: inline-block; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid rgba(255, 255, 255, 0.6); transition: transform 0.15s; flex-shrink: 0; cursor: pointer; padding: 4px; background-clip: content-box; } .mob-lib-tree-caret.open { transform: rotate(90deg); } .mob-lib-tree-caret.leaf { border-left-color: transparent; cursor: default; } .mob-lib-tree-icon { font-size: 15px; flex-shrink: 0; } .mob-lib-tree-label { flex: 1 1 auto; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .mob-lib-tree-count { font-size: 11px; font-family: var(--mono, ui-monospace, monospace); color: #71717a; background: rgba(255, 255, 255, 0.06); padding: 2px 7px; border-radius: 999px; flex-shrink: 0; } .mob-lib-tree-more-btn { background: transparent; border: none; color: #a1a1aa; font-size: 18px; padding: 4px 8px; cursor: pointer; border-radius: 6px; flex-shrink: 0; line-height: 1; } .mob-lib-tree-more-btn:active { background: rgba(255, 255, 255, 0.12); color: #ffffff; } /* --- Context Menu Backdrop & Panel --- */ .mob-lib-menu-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.45); } .mob-lib-context-menu { position: fixed; z-index: 61; min-width: 200px; padding: 6px; background: #1c1c24; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8); display: flex; flex-direction: column; gap: 2px; animation: mobMenuPop 0.15s ease-out; } @keyframes mobMenuPop { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } } .mob-lib-context-header { padding: 6px 10px 6px; font-size: 11px; font-weight: 700; color: #a1a1aa; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid rgba(255, 255, 255, 0.06); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* --- Albums View --- */ .mob-lib-albums-pane { padding: 12px; } .mob-lib-albums-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; } .mob-lib-album-card { display: flex; flex-direction: column; background: #18181e; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform 0.15s, border-color 0.2s; } .mob-lib-album-card:active { transform: scale(0.98); border-color: var(--accent, #f59e0b); } .mob-lib-album-cover { width: 100%; aspect-ratio: 1; background: #23232b; position: relative; overflow: hidden; } .mob-lib-album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; } .mob-lib-album-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #71717a; } .mob-lib-album-info { padding: 10px; display: flex; flex-direction: column; gap: 2px; } .mob-lib-album-title { font-size: 14px; font-weight: 600; color: #f4f4f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mob-lib-album-count { font-size: 12px; color: #a1a1aa; } /* --- Library / Cloud Management View --- */ .mob-lib-manage-pane { padding: 16px; display: flex; flex-direction: column; gap: 16px; } .mob-lib-card { background: #18181e; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; } .mob-lib-card-header { display: flex; align-items: center; justify-content: space-between; } .mob-lib-card-title { font-size: 15px; font-weight: 600; color: #f4f4f5; display: flex; align-items: center; gap: 8px; } .mob-lib-badge-connected { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #34d399; background: rgba(52, 211, 153, 0.12); padding: 2px 8px; border-radius: 999px; } .mob-lib-badge-connected::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #34d399; } .mob-lib-card-meta { font-size: 12px; color: #a1a1aa; display: flex; flex-direction: column; gap: 4px; } .mob-lib-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; } .mob-lib-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.12); background: #23232b; color: #f4f4f5; cursor: pointer; transition: all 0.2s; } .mob-lib-btn:active { transform: scale(0.97); } .mob-lib-btn.primary { background: var(--accent, #f59e0b); color: #000000; border-color: var(--accent, #f59e0b); } .mob-lib-btn.danger { background: rgba(239, 68, 68, 0.15); color: #f87171; border-color: rgba(239, 68, 68, 0.3); } .mob-lib-add-immich-banner { background: linear-gradient(135deg, rgba(66, 133, 244, 0.15), rgba(52, 211, 153, 0.15)); border: 1px solid rgba(66, 133, 244, 0.3); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; } .mob-lib-add-immich-btn { width: 100%; padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; background: #2563eb; color: #ffffff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4); } .mob-lib-add-immich-btn:active { transform: scale(0.98); } /* --- Empty States --- */ .mob-lib-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 24px; gap: 14px; color: #a1a1aa; } .mob-lib-empty-icon { width: 48px; height: 48px; color: #52525b; } .mob-lib-empty-title { font-size: 16px; font-weight: 600; color: #e4e4e7; } .mob-lib-empty-desc { font-size: 13px; line-height: 1.5; max-width: 320px; } /* --- Bottom Navigation Bar --- */ .mob-lib-tab-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #18181b; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: space-around; user-select: none; } .mob-lib-tab-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: transparent; border: none; color: rgba(255, 255, 255, 0.55); cursor: pointer; padding: 6px 0; text-decoration: none; transition: color 0.15s; } .mob-lib-tab-pill { padding: 4px 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; transition: background 0.15s; } .mob-lib-tab-item.active .mob-lib-tab-pill { background: rgba(255, 255, 255, 0.14); } .mob-lib-tab-item.active { color: #ffffff; } .mob-lib-tab-label { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; line-height: 1; } .mob-lib-tab-item.active .mob-lib-tab-label { font-weight: 600; color: #ffffff; } /* --- Fullscreen Photo Preview Modal --- */ .mob-lib-preview-modal { position: fixed; inset: 0; z-index: 60; background: #09090b; display: flex; flex-direction: column; overflow: hidden; animation: mobLibFadeIn 0.2s ease-out; } @keyframes mobLibFadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } } .mob-lib-preview-topbar { display: flex; align-items: center; justify-content: space-between; padding: max(10px, env(safe-area-inset-top)) 16px 10px; background: rgba(9, 9, 11, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); flex-shrink: 0; z-index: 10; } .mob-lib-preview-title { font-size: 14px; font-weight: 600; color: #f4f4f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; text-align: center; } .mob-lib-preview-body { flex: 1 1 auto; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000000; } .mob-lib-preview-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; } .mob-lib-preview-footer { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px max(14px, env(safe-area-inset-bottom)); background: rgba(9, 9, 11, 0.9); backdrop-filter: blur(16px); border-top: 1px solid rgba(255, 255, 255, 0.08); flex-shrink: 0; z-index: 10; } .mob-lib-preview-tools { display: flex; align-items: center; justify-content: space-between; } .mob-lib-preview-stars { display: flex; gap: 4px; } .mob-lib-star-btn { background: transparent; border: none; font-size: 20px; color: rgba(255, 255, 255, 0.25); cursor: pointer; padding: 4px; line-height: 1; } .mob-lib-star-btn.active { color: #fbbf24; } .mob-lib-preview-rot-btns { display: flex; gap: 6px; } .mob-lib-open-studio-btn { width: 100%; padding: 12px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: 0.03em; background: var(--accent, #f59e0b); color: #000000; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35); } .mob-lib-open-studio-btn:active { transform: scale(0.98); } /* --- Photo Metadata (Desktop style, displayed above Open in Studio) --- */ .mob-lib-preview-meta { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: #a1a1aa; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 10px; padding: 9px 12px; min-width: 0; max-height: 140px; overflow-y: auto; line-height: 1.4; } .mob-lib-meta-name { color: #f4f4f5; font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace); font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mob-lib-meta-line { display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; } .mob-lib-meta-place { color: #60a5fa; } .mob-lib-meta-specs { color: #e4e4e7; font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace); font-size: 11px; }