// Layout containers .book-browser-container { position: relative; display: flex; flex-direction: column; min-width: 0; width: 100%; height: 100%; min-height: 0; } .book-browser-main { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; width: 100%; min-height: 0; } .book-browser-body { position: relative; display: flex; flex: 1 1 auto; flex-direction: row; min-width: 0; min-height: 0; } .book-browser-content { position: relative; display: flex; flex: 1 1 0; flex-direction: column; min-width: 0; min-height: 0; } // Header bar .book-browser-header { display: flex; align-items: center; justify-content: space-between; gap: 0.25rem; padding: 0.35rem; margin-right: 2px; flex-shrink: 0; background-color: var(--card-background); border-bottom: 1px solid var(--p-content-border-color); @media (width >= 768px) { gap: 1rem; padding: 0.5rem 1rem; } } // Entity info section .entity-info-wrapper { display: flex; align-items: center; min-width: 0; flex-shrink: 1; overflow: hidden; } .entity-info { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; overflow: hidden; @media (width <= 767px) { gap: 0; } } .entity-title { font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; @media (width <= 767px) { font-size: 1rem; padding-left: 0.25rem; } } .series-collapsed-info { font-size: 0.875rem; color: #6b7280; margin: 0; @media (width <= 767px) { display: none; margin: 0; padding: 0; height: 0; } } .entity-menu-wrapper { margin-left: 0.5rem; flex-shrink: 0; } // Toolbar actions .toolbar-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.25rem; flex-shrink: 0; @media (width >= 768px) { gap: 1rem; } } .toolbar-icons { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.25rem; @media (width >= 768px) { gap: 1.5rem; } } // Icon with orange color for filter .filter-clear-icon { color: orange; } // Popover content containers .column-popover-content { width: 200px; } .column-popover-footer { display: flex; align-items: center; gap: 0.5rem; padding-top: 1rem; padding-left: 0.25rem; } .display-settings-popover { width: 220px; padding: 0.5rem; display: flex; flex-direction: column; gap: 1rem; font-size: 0.875rem; } .display-settings-section { display: flex; flex-direction: column; gap: 0.5rem; } .display-settings-checkbox-row { display: flex; align-items: center; gap: 0.5rem; } .display-settings-label { font-weight: 500; } // Sort button wrapper .sort-button-wrapper { position: relative; .sort-badge { position: absolute; top: -6px; right: -6px; } } // Sort menu item (kept for backward compat) .sort-menu-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 1rem; cursor: pointer; } // Search section .mobile-search-wrapper { position: relative; @media (width >= 768px) { display: none; } } .desktop-search-wrapper { display: none; position: relative; @media (width >= 768px) { display: block; } } .search-popover-content { position: relative; width: 100%; } .search-input-full { width: 100%; } .search-clear-btn { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); } // Footer bar .book-browser-footer { position: absolute; bottom: 0; left: 10%; right: 10%; display: flex; align-items: center; overflow: hidden; padding: 1rem 0.5rem 0.5rem; z-index: 1; border-radius: 10px 10px 0 0; border: 1px solid rgb(255 255 255 / 50%); border-width: 1px 1px 0; background-color: var(--card-background); transition: transform 0.15s ease-out, opacity 0.15s ease-out; transform: translateY(0); opacity: 1; &.footer-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; } @media (width <= 768px) { left: 0; right: 0; } } .footer-content { display: flex; align-items: center; min-width: 0; flex: 1; } .footer-left { display: flex; align-items: center; padding-left: 0.5rem; flex-shrink: 0; width: 120px; @media (width <= 768px) { width: auto; } } .footer-center { display: flex; justify-content: center; flex: 1; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; mask-image: linear-gradient(to right, transparent 0, black 12px, black calc(100% - 32px), transparent 100%); padding: 0 16px; &::-webkit-scrollbar { display: none; } @media (width <= 768px) { justify-content: flex-start; } } .footer-right { flex-shrink: 0; width: 120px; @media (width <= 768px) { display: none; } } .selected-count-badge { display: inline-flex; align-items: center; padding: 0.5rem 1rem; font-size: 0.9rem; color: #e4e4e7; i { font-size: 1rem; margin-right: 0.5rem; } @media (width <= 768px) { padding: 0.4rem 0.8rem; font-size: 0.85rem; i { font-size: 0.9rem; } } } .selected-count { font-weight: 700; font-size: 1rem; color: var(--primary-color); } .selected-label { margin-left: 0.25rem; } .action-buttons-group { display: flex; flex-shrink: 0; gap: 0.5rem; @media (width >= 768px) { gap: 1.5rem; } } .more-actions-wrapper { display: flex; justify-content: center; } // Virtual scroller and grid .virtual-scroller { width: 100%; height: 100%; padding: 1rem; box-sizing: border-box; overflow-y: auto; } .virtual-loader-cell { border-radius: 8px; background: var(--p-content-border-color); animation: skeleton-pulse 1.5s ease-in-out infinite; pointer-events: none; will-change: opacity; } @keyframes skeleton-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.6; } } @media (prefers-reduced-motion: reduce) { .virtual-loader-cell { animation: none; will-change: auto; } } // No books state .no-books-container { padding-top: 3rem; display: flex; justify-content: center; align-items: center; } .no-books-text { font-size: 1rem; font-weight: 500; color: var(--text-color); background: var(--card-background); padding: 0.75rem 1rem; border-radius: 0.5rem; } // Toolbar actions (icon buttons) .toolbar-item { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--border-color); width: 2.5rem; height: 2.5rem; transition: outline-color 0.2s, border-color 0.2s; border-radius: 6px; margin: 0; padding: 0; outline-color: transparent; background-color: var(--card-background); cursor: pointer; @media (width <= 767px) { width: 2rem; height: 2rem; } &:hover { border-color: var(--primary-color); } i, span { color: var(--primary-color); font-size: 1.25rem; font-weight: 100; @media (width <= 767px) { font-size: 1rem; } } } // Search input styling .search-icon { position: absolute; top: 50%; left: 10px; transform: translateY(-50%); color: var(--text-secondary-color); font-size: 1rem; pointer-events: none; } .search-input { min-width: 22rem; padding-left: 30px; height: 2.5rem; line-height: 2.5rem; font-size: 1rem; box-sizing: border-box; @media (width <= 767px) { min-width: 0; } } // Filter overlay (mobile sidebar) .mobile-filter-mask { @media (width <= 991px) { position: absolute; top: 0; left: 0; z-index: 998; width: 100%; height: 100%; background-color: rgb(0 0 0 / 40%); } } .filter-overlay-container { --book-filter-sidebar-width: 225px; flex-shrink: 0; z-index: 50; @media (width <= 991px) { width: var(--book-filter-sidebar-width); position: absolute; top: 0; right: 0; bottom: 0; height: 100%; background-color: var(--card-background); box-shadow: -2px 0 10px rgb(0 0 0 / 15%); transform: translateX(100%); transition: transform 0.3s ease; z-index: 1001; &.active { transform: translateX(0); margin-left: 0; } } @media (width >= 992px) { position: relative; overflow: hidden; flex-shrink: 0; &:not(.active) { width: 0 !important; opacity: 0; pointer-events: none; margin-left: 0; } &.active { width: var(--book-filter-sidebar-width); opacity: 1; pointer-events: auto; margin-left: 0; } } }