Files
PicList/src/renderer/pages/css/Gallery.css

1591 lines
30 KiB
CSS

@import url('./common/advancedAnimation.css');
/* Global scrolling behavior */
html, body {
overflow-x: hidden;
}
.header-icon {
display: flex;
align-items: center;
color: var(--color-accent);
}
/* Custom Scrollbar Styles */
.gallery-content::-webkit-scrollbar {
width: 8px;
}
.gallery-content::-webkit-scrollbar-track {
border-radius: var(--radius-md);
background: var(--color-surface-elevated);
}
.gallery-content::-webkit-scrollbar-thumb {
border-radius: var(--radius-md);
background: var(--color-border);
transition: var(--transition-fast);
}
.gallery-content::-webkit-scrollbar-thumb:hover {
background: var(--color-text-secondary);
}
/* Container */
.gallery-container {
display: flex;
overflow: hidden;
margin: 0;
padding: 1rem;
width: 100%;
height: 100vh;
flex-direction: column;
gap: 1.25rem;
box-sizing: border-box;
}
/* Card Base */
.gallery-card {
overflow: hidden;
border: 1px solid var(--color-border-secondary);
border-radius: var(--radius-xl);
background: var(--color-background-secondary);
box-shadow: var(--shadow-sm);
transition: var(--transition-medium);
}
.gallery-card:hover {
border-color: var(--color-border);
box-shadow: var(--shadow-md);
}
/* Header Card */
.header-card .card-header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--color-border-secondary);
padding: 1rem 1.5rem;
flex-wrap: wrap;
gap: 1rem;
}
.header-content {
display: flex;
align-items: center;
gap: 1rem;
flex: 1;
}
.header-content h1 {
margin: 0;
font-size: 1.5rem;
font-weight: 600;
color: var(--color-text-primary);
letter-spacing: -0.025em;
}
.header-content p {
margin: 0;
font-size: 0.875rem;
color: var(--color-text-secondary);
}
.header-actions {
display: flex;
align-items: center;
gap: 0.75rem;
flex-wrap: wrap;
}
.action-button {
display: flex;
align-items: center;
border: none;
border-radius: var(--radius-md);
padding: 0.625rem 1rem;
font-size: 0.875rem;
font-family: inherit;
font-weight: 500;
color: white;
background: var(--color-accent);
transition: var(--transition-fast);
gap: 0.5rem;
cursor: pointer;
}
.action-button:hover {
background: var(--color-accent-hover);
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}
/* View Mode Toggle */
.view-mode-toggle {
position: relative;
}
.view-mode-toggle:hover {
background: var(--color-accent-hover) !important;
}
.sync-delete-toggle {
display: flex;
align-items: center;
gap: 0.5rem;
}
.toggle-label {
font-size: 0.875rem;
color: var(--color-text-secondary);
}
/* Custom Switch */
.custom-switch {
position: relative;
display: inline-block;
width: 44px;
height: 24px;
}
.custom-switch input {
width: 0;
height: 0;
opacity: 0;
}
.switch-slider {
position: absolute;
inset: 0;
border-radius: 24px;
background: linear-gradient(180deg, #d0d3d9 0%, #c0c4cc 100%);
box-shadow: inset 0 1px 3px rgb(0 0 0 / 15%);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
}
.switch-slider::before {
position: absolute;
bottom: 3px;
left: 3px;
border-radius: 50%;
width: 18px;
height: 18px;
background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
box-shadow:
0 2px 6px rgb(0 0 0 / 20%),
0 1px 2px rgb(0 0 0 / 10%);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
content: "";
}
input:checked + .switch-slider {
background: var(--color-accent);
box-shadow:
inset 0 1px 3px rgb(0 0 0 / 10%),
0 2px 8px rgb(64 158 255 / 30%);
}
input:checked + .switch-slider::before {
transform: translateX(20px);
}
/* Grid Size Control */
.grid-size-control {
display: flex;
align-items: center;
border: 1px solid var(--color-border-secondary);
border-radius: var(--radius-md);
padding: 0.375rem 0.5rem;
background: var(--color-background-secondary);
gap: 0.375rem;
}
.grid-size-control .control-label {
font-size: 0.75rem;
font-weight: 500;
white-space: nowrap;
color: var(--color-text-secondary);
}
.grid-slider {
border-radius: 2px;
width: 70px;
height: 4px;
background: var(--color-background-tertiary);
outline: none;
appearance: none;
cursor: pointer;
}
.grid-slider::-webkit-slider-thumb {
border-radius: 50%;
width: 14px;
height: 14px;
background: var(--color-accent);
transition: var(--transition-fast);
appearance: none;
cursor: pointer;
}
.grid-slider::-webkit-slider-thumb:hover {
transform: scale(1.15);
box-shadow: 0 0 0 3px rgb(56 114 250 / 20%);
}
.grid-slider::-moz-range-thumb {
border: none;
border-radius: 50%;
width: 14px;
height: 14px;
background: var(--color-accent);
transition: var(--transition-fast);
cursor: pointer;
}
.grid-slider::-moz-range-thumb:hover {
transform: scale(1.15);
box-shadow: 0 0 0 3px rgb(56 114 250 / 20%);
}
.grid-value {
display: inline-flex;
justify-content: center;
align-items: center;
border-radius: var(--radius-sm);
padding: 0.125rem 0.375rem;
min-width: 20px;
font-size: 0.6875rem;
font-weight: 600;
color: white;
background: var(--color-accent);
line-height: 1;
}
/* Filter Card */
.filter-card {
border-radius: var(--radius-lg);
}
.filter-content {
padding: 1rem;
}
.filter-row {
display: flex;
align-items: flex-start;
margin-bottom: 0.75rem;
gap: 0.75rem;
flex-wrap: wrap;
}
.filter-row:last-child {
margin-bottom: 0;
}
.filter-group {
display: flex;
flex-direction: column;
gap: 0.375rem;
min-width: 140px;
flex: 1 1 auto;
max-width: 220px;
}
.filter-label {
margin-bottom: 0.125rem;
font-size: 0.85rem;
font-weight: 500;
color: var(--color-text-primary);
line-height: 1.4;
}
/* Custom Select */
.custom-select {
border: 1px solid var(--color-border-secondary);
border-radius: var(--radius-md);
padding: 0.375rem 0.5rem;
width: 100%;
min-width: 0;
height: 28px;
font-size: 0.85rem;
text-align: center;
color: var(--color-text-primary);
background: var(--color-surface);
transition: var(--transition-fast);
cursor: pointer;
line-height: 1.4;
}
.custom-select:focus {
border-color: var(--color-accent-hover);
outline: none;
box-shadow: 0 0 0 3px rgb(59 130 246 / 10%);
}
/* Custom Multiselect */
.custom-multiselect {
position: relative;
}
.multiselect-trigger {
display: flex;
justify-content: space-between;
align-items: center;
border: 1px solid var(--color-border-secondary);
border-radius: var(--radius-md);
padding: 0.375rem 0.5rem;
width: 100%;
height: 28px;
font-size: 0.85rem;
color: var(--color-text-primary);
background: var(--color-surface);
transition: var(--transition-fast);
cursor: pointer;
line-height: 1.4;
}
.multiselect-trigger:hover {
border-color: var(--color-accent-hover);
}
.multiselect-trigger:focus,
.multiselect-trigger.active {
border-color: var(--color-accent-hover);
box-shadow: 0 0 0 2px rgb(59 130 246 / 10%);
}
.multiselect-dropdown {
position: fixed;
z-index: 1000;
overflow-y: auto;
margin-top: 2px;
border: 1px solid var(--color-border-secondary);
border-radius: var(--radius-md);
padding: 0.375rem 0.5rem;
min-width: 200px;
max-height: 280px;
color: var(--color-text-primary);
background: var(--color-background-tertiary);
box-shadow: var(--shadow-lg);
scrollbar-width: none;
}
.multiselect-option {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.25rem 0.5rem;
min-height: unset;
font-size: 0.95rem;
background: var(--color-background-secondary);
transition: var(--transition-fast);
gap: 0.25rem;
cursor: pointer;
line-height: 1.4;
}
.multiselect-option:hover {
background: var(--color-accent-hover);
}
.multiselect-option input[type="checkbox"] {
margin: 0;
}
/* Date Range Picker */
.date-range-picker {
display: flex;
align-items: center;
gap: 0.5rem;
width: 100%;
}
.date-input {
border: 1px solid var(--color-border-secondary);
border-radius: var(--radius-md);
padding: 0.375rem 0.5rem;
min-width: 0;
height: 28px;
font-size: 0.75rem;
color: var(--color-text-primary);
background: var(--color-surface);
transition: var(--transition-fast);
flex: 1;
line-height: 1.2;
}
.date-input:focus {
border-color: var(--color-accent-hover);
outline: none;
box-shadow: 0 0 0 3px rgb(59 130 246 / 10%);
}
.date-separator {
font-weight: 500;
color: var(--color-text-secondary);
flex-shrink: 0;
}
/* Sort Dropdown */
.sort-dropdown {
position: relative;
}
.sort-button {
display: flex;
justify-content: space-between;
align-items: center;
border: 1px solid var(--color-border-secondary);
border-radius: var(--radius-md);
padding: 0.375rem 0.5rem;
width: 100%;
height: 28px;
font-size: 0.85rem;
color: var(--color-text-primary);
background: var(--color-surface);
transition: var(--transition-fast);
gap: 0.25rem;
cursor: pointer;
line-height: 1.4;
}
.sort-button:hover {
border-color: var(--color-accent-hover);
}
.sort-button:focus,
.sort-button.active {
border-color: var(--color-accent-hover);
box-shadow: 0 0 0 2px rgb(59 130 246 / 10%);
}
.sort-options {
position: fixed;
z-index: 1000;
margin-top: 2px;
border: 1px solid var(--color-border-secondary);
border-radius: var(--radius-md);
min-width: 160px;
background: var(--color-surface-elevated);
box-shadow: var(--shadow-lg);
}
.sort-option {
display: block;
border: none;
padding: 0.25rem 0.5rem;
width: 100%;
min-height: unset;
font-size: 0.95rem;
text-align: center;
color: var(--color-text-primary);
background: var(--color-surface);
transition: var(--transition-fast);
cursor: pointer;
line-height: 1.4;
}
.sort-option:hover {
background: var(--color-accent-hover);
}
/* Search Groups */
.search-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
min-width: 180px;
flex: 1 1 auto;
max-width: 260px;
}
.search-input-wrapper {
position: relative;
display: flex;
align-items: center;
}
.search-input {
border: 1px solid var(--color-border-secondary);
border-radius: var(--radius-md);
padding: 0.5rem 0.75rem 0.5rem 2.25rem;
width: 100%;
font-size: 0.8rem;
color: var(--color-text-primary);
background: var(--color-surface);
transition: var(--transition-fast);
}
.search-input:focus {
border-color: var(--color-accent-hover);
outline: none;
box-shadow: 0 0 0 3px rgb(59 130 246 / 10%);
}
.search-icon {
position: absolute;
left: 0.75rem;
z-index: 1;
color: var(--color-text-secondary);
}
.clear-button {
position: absolute;
right: 0.75rem;
display: flex;
align-items: center;
border: none;
padding: 0;
color: var(--color-text-secondary);
background: none;
transition: var(--transition-fast);
cursor: pointer;
}
.clear-button:hover {
color: var(--color-text-primary);
}
/* Action Buttons */
.action-buttons {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
}
.action-btn {
display: flex;
align-items: center;
border: none;
border-radius: var(--radius-md);
padding: 0.625rem 1rem;
font-size: 0.875rem;
font-weight: 500;
opacity: 0.5;
transition: var(--transition-fast);
gap: 0.5rem;
cursor: not-allowed;
}
.action-btn.active {
cursor: pointer;
opacity: 1;
transform: translateY(0);
}
.action-btn.active:hover {
transform: translateY(-1px);
box-shadow: var(--shadow-sm);
}
.copy-btn {
color: white;
background: var(--color-accent);
}
.copy-btn.active:hover {
background: var(--color-accent-hover);
}
.edit-btn {
color: white;
background: var(--color-success);
}
.edit-btn.active:hover {
background: var(--color-success);
}
.delete-btn {
color: white;
background: var(--color-danger);
}
.delete-btn.active:hover {
background: var(--color-danger);
}
.select-btn {
color: white;
background: var(--color-warning);
}
.select-btn.active:hover {
background: var(--color-warning);
}
/* Filter Slide Animation */
.filter-slide-enter-active,
.filter-slide-leave-active {
overflow: hidden;
max-height: 300px;
transition: all var(--transition-medium);
}
.filter-slide-enter-from,
.filter-slide-leave-to {
max-height: 0;
opacity: 0;
transform: translateY(-10px);
}
/* Gallery Content */
.gallery-content {
display: flex;
overflow: hidden;
min-height: 0;
flex: 1;
flex-direction: column;
}
.empty-state {
display: flex;
justify-content: center;
align-items: center;
padding: 4rem 2rem;
text-align: center;
flex-direction: column;
}
.empty-icon {
margin-bottom: 1rem;
color: var(--color-text-secondary);
}
.empty-state h3 {
margin: 0 0 0.5rem;
font-size: 1.25rem;
font-weight: 600;
color: var(--color-text-primary);
}
.empty-state p {
margin: 0;
color: var(--color-text-secondary);
}
/* Gallery Grid */
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1.5rem;
padding: 1.5rem;
}
/* Image Container */
.image-placeholder {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
color: var(--color-text-secondary);
background: var(--color-surface-elevated);
}
.loader-spinner {
border: 2px solid var(--color-border-secondary);
border-top: 2px solid var(--color-accent);
border-radius: 50%;
width: 24px;
height: 24px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Image Info */
.image-name {
overflow: hidden;
margin-bottom: 0.75rem;
font-size: 0.875rem;
font-weight: 500;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--color-text-primary);
}
.image-actions {
display: flex;
justify-content: space-between;
align-items: center;
}
.action-icons {
display: flex;
gap: 0.5rem;
}
.icon-button {
display: flex;
justify-content: center;
align-items: center;
border: none;
border-radius: var(--radius-md);
width: 32px;
height: 32px;
color: var(--color-text-secondary);
background: var(--color-background-secondary);
transition: var(--transition-fast);
cursor: pointer;
}
.icon-button:hover {
color: var(--color-text-primary);
transform: translateY(-1px);
}
.copy-icon:hover {
color: var(--color-copy);
background: rgb(6 182 212 / 10%);
}
.edit-icon:hover {
color: var(--color-success);
background: rgb(16 185 129 / 10%);
}
.delete-icon:hover {
color: var(--color-error);
background: rgb(239 68 68 / 10%);
}
/* Custom Checkbox */
.custom-checkbox {
position: relative;
display: flex;
align-items: center;
cursor: pointer;
}
.custom-checkbox input[type="checkbox"] {
position: absolute;
width: 0;
height: 0;
opacity: 0;
cursor: pointer;
}
.checkbox-mark {
position: relative;
display: inline-block;
border: 2px solid var(--color-border);
border-radius: var(--radius-sm);
width: 18px;
height: 18px;
transition: var(--transition-fast);
}
.custom-checkbox input[type="checkbox"]:checked + .checkbox-mark {
border-color: var(--color-accent-hover);
background: var(--color-accent);
}
.custom-checkbox input[type="checkbox"]:checked + .checkbox-mark::after {
position: absolute;
top: -1px;
left: 3px;
font-size: 12px;
font-weight: bold;
color: white;
content: '✓';
}
/* Image Preview Modal */
.image-preview-modal {
position: fixed;
z-index: 1000;
inset: 0;
display: flex;
justify-content: center;
align-items: center;
outline: none;
}
.modal-backdrop {
position: absolute;
inset: 0;
background: rgb(0 0 0 / 80%);
}
.modal-content {
position: relative;
overflow: hidden;
border-radius: var(--radius-xl);
max-width: 90vw;
max-height: 90vh;
background: var(--color-surface);
box-shadow: var(--shadow-lg);
}
.modal-close {
position: absolute;
top: 1rem;
right: 1rem;
z-index: 10;
display: flex;
justify-content: center;
align-items: center;
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
color: white;
background: rgb(0 0 0 / 50%);
transition: var(--transition-fast);
cursor: pointer;
}
.modal-close:hover {
background: rgb(0 0 0 / 70%);
}
.image-navigation {
position: relative;
display: flex;
align-items: center;
}
.nav-button {
position: absolute;
z-index: 10;
display: flex;
justify-content: center;
align-items: center;
border: none;
border-radius: 50%;
width: 48px;
height: 48px;
color: white;
background: rgb(0 0 0 / 50%);
transition: var(--transition-fast);
cursor: pointer;
}
.nav-button:hover:not(:disabled) {
background: rgb(0 0 0 / 70%);
}
.nav-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.nav-button.prev {
left: 1rem;
}
.nav-button.next {
right: 1rem;
}
.image-viewer {
position: relative;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
width: 90vw;
height: 80vh;
background: #000000;
user-select: none;
}
.preview-image {
object-fit: contain;
display: block;
width: auto;
max-width: none;
height: auto;
max-height: none;
transform-origin: center center;
}
.image-details {
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1px solid var(--color-border-secondary);
padding: 1rem 1.5rem;
}
.image-details h3 {
overflow: hidden;
margin: 0;
margin-right: 1rem;
font-size: 1rem;
font-weight: 500;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--color-text-primary);
flex: 1;
}
.image-counter {
font-size: 0.875rem;
white-space: nowrap;
color: var(--color-text-secondary);
}
/* Modal Overlay */
.modal-overlay {
position: fixed;
inset: 0;
z-index: 1000;
display: flex;
justify-content: center;
align-items: center;
background: rgb(0 0 0 / 50%);
}
.modal-container {
overflow-y: auto;
border-radius: var(--radius-xl);
width: 90%;
max-width: 500px;
max-height: 90vh;
background: var(--color-background-tertiary);
box-shadow: var(--shadow-lg);
}
.modal-container.large {
max-width: 700px;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--color-border-secondary);
padding: 1.5rem;
}
.modal-header h3 {
margin: 0;
font-size: 1.25rem;
font-weight: 600;
color: var(--color-text-primary);
}
.modal-close-btn {
display: flex;
justify-content: center;
align-items: center;
border: none;
border-radius: var(--radius-md);
width: 32px;
height: 32px;
color: var(--color-text-secondary);
background: var(--color-surface-elevated);
transition: var(--transition-fast);
cursor: pointer;
}
.modal-close-btn:hover {
color: var(--color-text-primary);
background: var(--color-border-secondary);
}
.modal-body {
padding: 1.5rem;
}
.modal-footer {
display: flex;
justify-content: flex-end;
border-top: 1px solid var(--color-border-secondary);
padding: 1.5rem;
gap: 0.75rem;
}
/* Form Elements */
.form-group {
margin-bottom: 1.5rem;
}
.form-group:last-child {
margin-bottom: 0;
}
.form-label {
display: flex;
align-items: center;
margin-bottom: 0.5rem;
font-size: 0.875rem;
font-weight: 500;
color: var(--color-text-primary);
gap: 0.5rem;
}
.form-input {
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
padding: 0.75rem;
width: 100%;
font-size: 0.875rem;
color: var(--color-text-primary);
background: var(--color-background-secondary);
transition: var(--transition-fast);
box-sizing: border-box;
}
.form-input:focus {
border-color: var(--color-blue-common);
outline: none;
box-shadow: 0 0 0 3px rgb(59 130 246 / 10%);
}
.info-button {
display: flex;
justify-content: center;
align-items: center;
border: none;
border-radius: 50%;
width: 20px;
height: 20px;
color: white;
background: var(--color-accent);
transition: var(--transition-fast);
cursor: pointer;
}
.info-button:hover {
background: var(--color-accent-hover);
}
.info-panel {
margin-top: 1rem;
border: 1px solid var(--color-border-secondary);
border-radius: var(--radius-md);
padding: 1rem;
background: var(--color-surface-elevated);
}
.info-panel h4 {
margin: 0 0 0.75rem;
font-size: 0.875rem;
font-weight: 600;
color: var(--color-text-primary);
}
.placeholder-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 0;
padding: 0.5rem 0;
}
.placeholder-item {
display: flex;
gap: 0.5rem;
align-items: center;
margin: 0;
border-radius: 0;
padding: 0.5rem 1rem;
font-size: 0.875rem;
line-height: 1.4;
}
.placeholder-item code {
margin-right: 0.875rem;
border: 1px solid rgb(255 255 255 / 20%);
border-radius: 8px;
padding: 0.3rem 0.6rem;
min-width: 80px;
font-size: 1rem;
font-family: 'SF Mono', Monaco, Menlo, 'Ubuntu Mono', monospace;
font-weight: 600;
text-align: center;
color: var(--color-text-primary);
background: var(--color-background-secondary);
box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 2px rgb(0 0 0 / 24%);
letter-spacing: 0.02em;
flex-shrink: 0;
}
.placeholder-item span {
font-size: 0.75rem;
font-weight: 500;
color: var(--color-text-primary);
flex: 1;
}
/* Buttons */
.btn-primary {
display: flex;
align-items: center;
border: none;
border-radius: var(--radius-md);
padding: 0.75rem 1.5rem;
font-size: 0.875rem;
font-family: inherit;
font-weight: 500;
color: white;
background: var(--color-accent);
transition: var(--transition-fast);
gap: 0.5rem;
cursor: pointer;
}
.btn-primary:hover {
background: var(--color-accent-hover);
transform: translateY(-1px);
box-shadow: var(--shadow-sm);
}
.btn-secondary {
display: flex;
align-items: center;
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
padding: 0.75rem 1.5rem;
font-size: 0.875rem;
font-family: inherit;
font-weight: 500;
color: var(--color-text-primary);
background: var(--color-background-secondary);
transition: var(--transition-fast);
gap: 0.5rem;
cursor: pointer;
}
.btn-secondary:hover {
background: var(--color-border-secondary);
transform: translateY(-1px);
box-shadow: var(--shadow-sm);
}
/* Responsive Design */
@media (width <= 768px) {
.gallery-container {
padding: 0.75rem;
gap: 1rem;
}
.header-content {
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
}
.header-actions {
justify-content: flex-start;
width: 100%;
}
.filter-row {
flex-direction: column;
}
.action-buttons {
width: 100%;
}
.gallery-grid {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 1rem;
padding: 1rem;
}
.modal-container {
margin: 1rem;
width: calc(100% - 2rem);
}
.image-viewer {
width: 90vw;
height: 50vh;
}
.nav-button.prev {
left: 0.5rem;
}
.nav-button.next {
right: 0.5rem;
}
}
/* Lazy Loading */
.load-more-trigger {
grid-column: 1 / -1;
display: flex;
justify-content: center;
align-items: center;
padding: 2rem;
min-height: 100px;
}
.loading-indicator {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
color: var(--color-text-secondary);
}
.loading-indicator span {
font-size: 0.875rem;
}
/* Improve responsive layout for smaller screens */
@media (width <= 1024px) {
.filter-group,
.search-group {
min-width: 160px;
max-width: 220px;
}
}
@media (width <= 768px) {
.filter-group,
.search-group {
min-width: 140px;
max-width: 100%;
flex: 1 1 100%;
}
.filter-row {
gap: 0.5rem;
}
.filter-content {
padding: 0.75rem;
}
.date-range-picker {
flex-direction: column;
gap: 0.5rem;
}
.date-input {
width: 100%;
}
.date-separator {
display: none;
}
}
@media (width <= 480px) {
.filter-content {
padding: 0.5rem;
}
.filter-row {
gap: 0.5rem;
}
.filter-group,
.search-group {
min-width: 100px;
}
.filter-label {
font-size: 0.75rem;
}
}
/* Virtual Scroller Styles */
.virtual-gallery-scroller {
width: 100%;
flex: 1;
padding: 1rem;
min-height: 0;
}
.virtual-gallery-scroller .virtual-scroller {
width: 100%;
height: 100%;
}
.virtual-gallery-scroller .virtual-scroller-item {
overflow: visible;
box-sizing: border-box;
}
/* Ensure gallery items work well with virtual scroller */
.virtual-gallery-scroller .gallery-item {
display: flex;
overflow: hidden;
border: 1px solid var(--color-border-secondary);
border-radius: var(--radius-lg);
margin: 0;
background: var(--color-background-secondary);
cursor: pointer;
width: 100%;
height: calc(100% - 8px);
box-sizing: border-box;
flex-direction: column;
transition: var(--transition-medium);
}
.virtual-gallery-scroller .gallery-item:hover {
border-color: var(--color-border);
box-shadow: var(--shadow-md);
transform: translateY(-2px);
}
.virtual-gallery-scroller .gallery-item.selected {
border-color: var(--color-blue-common);
box-shadow: 0 0 0 2px rgb(59 130 246 / 20%);
}
.virtual-gallery-scroller .image-container {
position: relative;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
min-height: 0;
background: var(--color-background-secondary);
flex: 1;
aspect-ratio: auto;
}
.virtual-gallery-scroller .image-container.selected {
outline: 2px solid var(--color-blue-common);
box-shadow: 0 0 0 2px rgb(59 130 246 / 20%);
}
.virtual-gallery-scroller .image-info {
display: flex;
justify-content: space-between;
padding: 0.75rem;
min-height: 80px;
flex-shrink: 0;
flex-direction: column;
}
.virtual-gallery-scroller .gallery-image {
width: 100%;
height: 100%;
object-fit: contain;
transition: var(--transition-medium);
}
.virtual-gallery-scroller .gallery-image.loading {
opacity: 0;
}
.virtual-gallery-scroller .image-loader {
position: absolute;
inset: 0;
display: flex;
justify-content: center;
align-items: center;
background: var(--color-surface-elevated);
}
/* Enhanced Image Preview Styles */
.zoom-controls {
position: absolute;
top: 1rem;
left: 1rem;
z-index: 10;
display: flex;
align-items: center;
border-radius: var(--radius-lg);
padding: 0.5rem;
background: rgb(0 0 0 / 70%);
gap: 0.5rem;
}
.zoom-btn {
display: flex;
justify-content: center;
align-items: center;
border: none;
border-radius: var(--radius-md);
width: 32px;
height: 32px;
font-size: 0.875rem;
font-weight: 600;
color: white;
background: rgb(255 255 255 / 10%);
transition: var(--transition-fast);
cursor: pointer;
}
.zoom-btn:hover:not(:disabled) {
background: rgb(255 255 255 / 20%);
}
.zoom-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.zoom-btn.reset-btn {
padding: 0 0.75rem;
width: auto;
font-size: 0.75rem;
}
.zoom-level {
min-width: 50px;
font-size: 0.875rem;
font-weight: 500;
text-align: center;
color: white;
}
.image-help-text {
margin-top: 0.25rem;
font-size: 0.75rem;
text-align: center;
color: var(--color-text-tertiary);
}
.image-viewer:active {
cursor: grabbing !important;
}
/* Responsive adjustments for mobile */
@media (width <= 768px) {
.zoom-controls {
top: 0.5rem;
left: 0.5rem;
gap: 0.25rem;
padding: 0.25rem;
}
.zoom-btn {
width: 28px;
height: 28px;
font-size: 0.75rem;
}
.zoom-level {
min-width: 40px;
font-size: 0.75rem;
}
.modal-close {
top: 0.5rem;
right: 0.5rem;
width: 36px;
height: 36px;
}
.nav-button {
width: 40px;
height: 40px;
}
.nav-button.prev {
left: 0.5rem;
}
.nav-button.next {
right: 0.5rem;
}
}
/* Placeholder Help Styles */
.placeholder-help {
overflow-y: auto;
margin-top: 0.75rem;
border: 1px solid var(--color-border);
border-radius: 12px;
padding: 0;
max-height: 400px;
background: var(--color-background-tertiary);
box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
}
.placeholder-category {
border-bottom: 1px solid var(--color-border-light);
}
.placeholder-category:last-child {
border-bottom: none;
}
.category-title {
margin: 0;
border-bottom: 1px solid var(--color-border-light);
padding: 0.875rem 1rem 0.5rem;
font-size: 0.875rem;
font-weight: 600;
color: var(--color-text-secondary);
background: linear-gradient(135deg, var(--color-background-secondary) 0%, var(--color-background-tertiary) 100%);
letter-spacing: 0.02em;
}
.placeholder-item:hover {
background: rgb(var(--color-accent-rgb), 0.08);
}
.matched-urls-tooltip {
position: absolute;
z-index: 1000;
margin-top: 0.5rem;
border: 1px solid var(--color-border-secondary);
border-radius: var(--radius-md);
padding: 0;
max-width: 100%;
max-height: 300px;
background: var(--color-background-tertiary);
box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
overflow: hidden;
}
.matched-urls-tooltip .tooltip-header {
border-bottom: 1px solid var(--color-border-secondary);
padding: 0.75rem 1rem;
font-size: 0.875rem;
font-weight: 600;
color: var(--color-text-primary);
background: var(--color-background-secondary);
}
.matched-urls-tooltip .tooltip-content {
padding: 0.5rem;
max-height: 240px;
overflow-y: auto;
}
.matched-urls-tooltip .url-item {
padding: 0.5rem 0.75rem;
font-family: var(--font-mono, 'Courier New', monospace);
font-size: 0.813rem;
color: var(--color-text-secondary);
word-break: break-all;
border-radius: var(--radius-sm);
transition: var(--transition-fast);
}
.matched-urls-tooltip .url-item:hover {
background: var(--color-surface-elevated);
}
.matched-urls-tooltip .tooltip-content::-webkit-scrollbar {
width: 6px;
}
.matched-urls-tooltip .tooltip-content::-webkit-scrollbar-track {
border-radius: var(--radius-sm);
background: var(--color-surface-elevated);
}
.matched-urls-tooltip .tooltip-content::-webkit-scrollbar-thumb {
border-radius: var(--radius-sm);
background: var(--color-border);
}
.matched-urls-tooltip .tooltip-content::-webkit-scrollbar-thumb:hover {
background: var(--color-text-secondary);
}