Files
Flibens-comfyui-image-browser/ui.html
T

1582 lines
66 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Image Browser</title>
<meta charset="UTF-8">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
/* GPU Acceleration for smooth scrolling - ONLY for gallery */
.gallery {
will-change: scroll-position;
transform: translateZ(0);
}
.image-card {
will-change: transform;
transform: translateZ(0);
backface-visibility: hidden;
}
.image-card img,
.image-card video {
transform: translateZ(0);
backface-visibility: hidden;
}
.image-card:not(:hover) {
will-change: auto;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #1a1a1a; color: #fff; }
.ui-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-right: 0.4rem; font-size: 0.8rem; line-height: 1; }
.header { background: #2a2a2a; padding: 1rem 2rem; border-bottom: 2px solid #3a3a3a; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; position: sticky; top: 0; z-index: 100; }
.header h1 { font-size: 1.5rem; }
.controls { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.search-container { display: flex; align-items: center; background: #1a1a1a; padding: 0.5rem; border-radius: 4px; border: 1px solid #3a3a3a; }
.search-container input { background: transparent; border: none; color: #fff; outline: none; min-width: 200px; font-size: 0.9rem; }
select, button { background: #3a3a3a; color: #fff; border: 1px solid #4a4a4a; padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; font-size: 0.9rem; }
button:hover { background: #4a4a4a; }
button.active { background: #4a9eff; border-color: #4a9eff; }
#compareBtn { display: none; background: #2ecc71; border-color: #27ae60; }
#compareBtn:hover { background: #27ae60; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; padding: 2rem; }
.image-card { background: #2a2a2a; border-radius: 8px; overflow: hidden; position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer; }
.image-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,0.5); }
.image-card.selected { box-shadow: 0 0 20px #4a9eff; border: 3px solid #4a9eff; transform: scale(1.02); }
.image-card.selected:hover { transform: translateY(-8px) scale(1.02); }
.image-card.selected-for-compare { transform: scale(1.02); }
.image-card.selected-for-compare:hover { transform: translateY(-8px) scale(1.02); }
.image-card.compare-first {
box-shadow: 0 0 20px #2ecc71;
border: 3px solid #2ecc71;
}
.image-card.compare-first:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 0 25px #2ecc71, 0 12px 24px rgba(0,0,0,0.5);
}
.image-card.compare-second {
box-shadow: 0 0 20px #e74c3c;
border: 3px solid #e74c3c;
}
.image-card.compare-second:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 0 25px #e74c3c, 0 12px 24px rgba(0,0,0,0.5);
}
.image-card.favorited { box-shadow: 0 0 10px #ffd700; }
.image-card.favorited:hover { transform: translateY(-8px); box-shadow: 0 0 20px #ffd700, 0 12px 24px rgba(0,0,0,0.5); }
.image-card img, .image-card video { width: 100%; height: 250px; object-fit: cover; display: block; cursor: pointer; }
.video-indicator { position: absolute; top: 0.5rem; right: 0.5rem; background: rgba(0, 0, 0, 0.75); color: #fff; padding: 0.4rem 0.6rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; gap: 0.3rem; backdrop-filter: blur(4px); z-index: 5; pointer-events: none; }
.video-indicator::before { content: '▶'; font-size: 0.7rem; }
.audio-indicator { position: absolute; top: 0.5rem; right: 0.5rem; background: rgba(138, 43, 226, 0.85); color: #fff; padding: 0.4rem 0.6rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; gap: 0.3rem; backdrop-filter: blur(4px); z-index: 5; pointer-events: none; }
.audio-indicator::before { content: '♪'; font-size: 0.7rem; }
.audio-thumbnail { width: 100%; height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); cursor: pointer; }
.audio-thumbnail .audio-icon { font-size: 4rem; margin-bottom: 0.5rem; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
.audio-thumbnail audio { display: none; }
.audio-modal-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); border-radius: 12px; min-width: 400px; }
.audio-modal-icon { font-size: 8rem; margin-bottom: 2rem; animation: pulse 2s ease-in-out infinite; }
.audio-modal-container audio { width: 100%; max-width: 500px; }
.image-info { padding: 0.75rem; }
.image-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loading { text-align: center; padding: 2rem; color: #888; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 1000; }
.modal.active { display: flex; align-items: center; justify-content: center; }
.modal-content { display: flex; width: 100%; height: 100%; background: transparent; }
.modal-left { flex: 1; display: flex; align-items: center; justify-content: center; background: transparent; padding: 2rem; padding-right: 0; position: relative; overflow: hidden; }
.modal-left img, .modal-left video { max-width: 100%; max-height: 100%; display: block; object-fit: contain; }
.modal-zoom-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.modal-zoom-stage img { transform-origin: center center; transition: transform 0.12s ease; user-select: none; -webkit-user-drag: none; }
.modal-zoom-controls { position: absolute; top: 2.5rem; left: 2.5rem; z-index: 1002; display: flex; align-items: center; gap: 0.45rem; background: rgba(0, 0, 0, 0.65); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 6px; padding: 0.35rem; backdrop-filter: blur(4px); }
.modal-zoom-btn { width: 30px; height: 30px; border: 1px solid #4a4a4a; border-radius: 4px; padding: 0; font-size: 1rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; }
.modal-zoom-btn-reset { width: 64px; flex: 0 0 64px; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.modal-zoom-btn-reset #modalZoomLevel { display: inline-block; width: 100%; text-align: center; white-space: nowrap; }
.modal-right { width: 380px; padding: 0; overflow-y: auto; background: #1e1e1e; display: flex; flex-direction: column; height: 100%; }
.modal-close { position: absolute; top: 2.5rem; right: 420px; color: #fff; font-size: 1.5rem; cursor: pointer; z-index: 1001; background: rgba(0,0,0,0.7); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 4px; transition: background 0.2s; }
.modal-close:hover { background: rgba(0,0,0,0.9); }
.favorite-btn { position: absolute; top: 0.5rem; left: 0.5rem; background: rgba(0, 0, 0, 0.6); border: 1px solid #fff; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; z-index: 10; }
.favorite-btn.favorited { background: #ffd700; border-color: #ffd700; color: #000; }
.image-card.favorited { box-shadow: 0 0 10px #ffd700; }
.modal-header-actions { padding: 1rem; border-bottom: 1px solid #2a2a2a; }
.modal-action-btn { background: transparent; color: #4a9eff; border: 1px solid #3a3a3a; padding: 0.7rem; border-radius: 4px; cursor: pointer; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; transition: all 0.2s; }
.modal-action-btn:hover { background: #252525; border-color: #4a9eff; }
.modal-action-btn.favorite { background: transparent; color: #ffd700; border-color: #ffd700; }
.modal-action-btn.favorite:hover { background: rgba(255, 215, 0, 0.1); }
.modal-action-btn span { font-size: 1rem; }
.modal-view-toggle { margin-top: 0.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.modal-view-btn { background: #2a2a2a; color: #b8d9ff; border: 1px solid #3a3a3a; padding: 0.55rem 0.6rem; border-radius: 4px; cursor: pointer; font-size: 0.8rem; font-weight: 600; }
.modal-view-btn:hover { background: #303030; }
.modal-view-btn.active { background: #4a9eff; border-color: #4a9eff; color: #fff; }
.metadata-section { border-bottom: 1px solid #2a2a2a; }
.metadata-section-header { padding: 0.9rem 1rem; background: transparent; display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 600; color: #4a9eff; cursor: default; user-select: none; }
.metadata-section-header .icon { font-size: 0.95rem; }
.metadata-section-content { padding: 0 1rem 1rem 1rem; background: #1e1e1e; }
.metadata-item { margin-bottom: 1rem; }
.metadata-item:last-child { margin-bottom: 0; }
.metadata-label { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 0.4rem; font-weight: 600; }
.metadata-label-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; }
.metadata-label-row .metadata-label { margin-bottom: 0; }
.metadata-copy-btn { background: #2f2f2f; color: #b8d9ff; border: 1px solid #3a3a3a; padding: 0.2rem 0.55rem; border-radius: 4px; cursor: pointer; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.metadata-copy-btn:hover { background: #353535; border-color: #4a9eff; color: #fff; }
.metadata-value { color: #e0e0e0; font-size: 0.875rem; word-wrap: break-word; line-height: 1.5; }
.metadata-prompt { background: #252525; padding: 0.85rem; border-radius: 4px; font-size: 0.82rem; line-height: 1.65; max-height: 250px; overflow-y: auto; border: 1px solid #2a2a2a; color: #d0d0d0; }
.metadata-kv { background: #252525; padding: 0.75rem; border-radius: 4px; margin-bottom: 0.6rem; border: 1px solid #2a2a2a; }
.metadata-kv .label { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 0.4rem; font-weight: 600; }
.metadata-kv .value { font-size: 0.85rem; color: #e0e0e0; word-break: break-word; white-space: pre-wrap; line-height: 1.5; }
.lora-item { background: #252525; padding: 0.75rem; border-radius: 4px; margin-bottom: 0.6rem; border: 1px solid #2a2a2a; }
.lora-item:last-child { margin-bottom: 0; }
.lora-item.inactive { opacity: 0.5; }
.lora-item.inactive .lora-name { text-decoration: line-through; }
.lora-name { font-weight: 600; font-size: 0.875rem; color: #4a9eff; margin-bottom: 0.3rem; }
.lora-strength { font-size: 0.75rem; color: #888; }
.file-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.file-info-item { background: #252525; padding: 0.75rem; border-radius: 4px; border: 1px solid #2a2a2a; }
.file-info-item.full-width { grid-column: 1 / -1; }
.file-info-item .label { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 0.4rem; font-weight: 600; }
.file-info-item .value { font-size: 0.875rem; color: #e0e0e0; font-weight: 500; word-break: break-all; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.settings-grid .metadata-item { margin-bottom: 0; background: #252525; padding: 0.75rem; border-radius: 4px; border: 1px solid #2a2a2a; }
.settings-grid .metadata-item.full-width { grid-column: 1 / -1; }
.modal-delete-btn { background: #dc3545; border: none; color: #fff; padding: 1rem; width: 100%; cursor: pointer; font-size: 0.875rem; font-weight: 600; transition: background 0.2s; margin-top: auto; }
.modal-delete-btn:hover { background: #c82333; }
.workflow-node-item { background: #252525; border: 1px solid #2f2f2f; border-radius: 6px; margin-bottom: 0.75rem; overflow: hidden; }
.workflow-node-header { background: #323232; padding: 0.65rem 0.75rem; font-size: 0.82rem; font-weight: 700; color: #9ed0ff; border-bottom: 1px solid #3a3a3a; }
.workflow-node-meta { color: #9c9c9c; font-weight: 500; margin-left: 0.45rem; font-size: 0.72rem; }
.workflow-node-params { list-style: none; padding: 0.7rem 0.75rem; margin: 0; }
.workflow-node-params li { margin-bottom: 0.5rem; font-size: 0.82rem; line-height: 1.5; color: #d6d6d6; }
.workflow-node-params li:last-child { margin-bottom: 0; }
.workflow-param-name { color: #a6a6a6; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-right: 0.45rem; }
.workflow-param-value { color: #ececec; white-space: pre-wrap; word-break: break-word; }
.workflow-empty { color: #8d8d8d; margin: 0; font-size: 0.88rem; }
.modal-nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.7); color: #fff; border: 2px solid #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; z-index: 1001; transition: background 0.2s; }
.modal-nav:hover { background: rgba(74, 158, 255, 0.9); }
.modal-nav svg { display: block; margin: 0 auto; }
.modal-nav-prev { left: 2.5rem; }
.modal-nav-prev svg { transform: translateX(-1px); }
.modal-nav-next { right: 420px; }
.modal-nav-next svg { transform: translateX(1px); }
.folder-manager { position: relative; }
.folder-dropdown { display: none; position: absolute; top: 100%; right: 0; background: #2a2a2a; border: 1px solid #3a3a3a; border-radius: 4px; padding: 1rem; min-width: 300px; margin-top: 0.5rem; z-index: 101; }
.folder-dropdown.active { display: block; }
.folder-list { max-height: 200px; overflow-y: auto; margin-bottom: 1rem; }
.folder-item { padding: 0.5rem; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.folder-item-content { flex: 1; }
.folder-item-delete {
background: transparent;
border: none;
color: #dc3545;
cursor: pointer;
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 1rem;
opacity: 0;
transition: opacity 0.2s;
}
.folder-item:hover .folder-item-delete { opacity: 1; }
.folder-item-delete:hover { background: rgba(220, 53, 69, 0.2); }
.folder-item:hover { background: #3a3a3a; }
.folder-item.active { background: #4a9eff; }
.folder-add-form input { width: 100%; background: #1a1a1a; border: 1px solid #3a3a3a; color: #fff; padding: 0.5rem; border-radius: 4px; margin-bottom: 0.5rem; }
.context-menu { position: absolute; background: #2a2a2a; border: 1px solid #3a3a3a; border-radius: 8px; padding: 0.5rem; min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 1px rgba(255,255,255,0.1); z-index: 10000; display: none; backdrop-filter: blur(10px); }
.context-menu-item { padding: 0.65rem 1rem; cursor: pointer; display: flex; align-items: center; gap: 0.75rem; border-radius: 5px; font-size: 0.875rem; transition: all 0.15s ease; color: #e0e0e0; }
.context-menu-item:hover { background: rgba(74, 158, 255, 0.15); color: #4a9eff; transform: translateX(2px); }
.context-menu-item span { width: 20px; text-align: center; font-size: 1rem; }
.context-menu-divider { height: 1px; background: #3a3a3a; margin: 0.5rem 0; }
.context-menu-item-danger { color: #e0e0e0; }
.context-menu-item-danger:hover { background: rgba(220, 53, 69, 0.15); color: #dc3545; }
.multi-select-actions { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); background: #2a2a2a; border: 2px solid #4a9eff; border-radius: 8px; padding: 1rem 1.5rem; display: none; align-items: center; gap: 1rem; box-shadow: 0 4px 12px rgba(0,0,0,0.5); z-index: 200; }
.multi-select-actions .selected-info { font-weight: 600; color: #4a9eff; margin-right: 0.5rem; }
.multi-select-actions button { margin: 0; }
.notification { position: fixed; top: 2rem; right: 2rem; background: #2a2a2a; border: 2px solid #2ecc71; border-radius: 4px; padding: 1rem 1.5rem; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.5); z-index: 10001; transform: translateX(400px); transition: transform 0.3s ease; }
.notification.show { transform: translateX(0); }
.notification-error { border-color: #dc3545; }
.notification-success { border-color: #2ecc71; }
.compare-wrapper { width: 100%; height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; position: relative; }
.compare-labels { display: flex; justify-content: space-between; width: 100%; max-width: 90vw; padding: 0 1rem; }
.compare-label { background: rgba(0, 0, 0, 0.7); padding: 0.5rem 1rem; border-radius: 4px; font-size: 0.9rem; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-label-left { border-left: 4px solid #2ecc71; }
.compare-label-right { border-right: 4px solid #e74c3c; text-align: right; }
.compare-zoom-controls { position: fixed; top: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 1010; display: flex; align-items: center; gap: 0.45rem; background: rgba(0, 0, 0, 0.78); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 6px; padding: 0.35rem; backdrop-filter: blur(4px); }
.compare-zoom-btn { width: 30px; height: 30px; border: 1px solid #4a4a4a; border-radius: 4px; padding: 0; font-size: 1rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; }
.compare-zoom-reset { width: 64px; flex: 0 0 64px; font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.compare-zoom-reset #compareZoomLevel { display: inline-block; width: 100%; text-align: center; white-space: nowrap; }
.compare-image-container { position: relative; max-width: 90vw; max-height: 80vh; overflow: hidden; user-select: none; transform-origin: center center; transition: transform 0.12s ease; }
.compare-img { display: block; max-width: 90vw; max-height: 90vh; width: auto; height: auto; pointer-events: none; }
.compare-img-back { position: relative; }
.compare-img-front-wrapper { position: absolute; top: 0; left: 0; height: 100%; width: 50%; overflow: hidden; }
.compare-img-front { display: block; max-width: 90vw; max-height: 90vh; width: auto; height: auto; }
.compare-slider { position: absolute; top: 0; left: 50%; width: 4px; height: 100%; background: #2ecc71; cursor: ew-resize; z-index: 10; transform: translateX(-50%); }
.compare-slider-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: #2ecc71; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
.compare-slider-handle::before, .compare-slider-handle::after { content: ''; position: absolute; top: 50%; width: 8px; height: 2px; background: #fff; }
.compare-slider-handle::before { left: 8px; transform: translateY(-50%); }
.compare-slider-handle::after { right: 8px; transform: translateY(-50%); }
/* ===== THEME: NIER AUTOMATA ===== */
body[data-theme="nier"] {
background: #a79f8a;
color: #2a241b;
font-family: "PT Mono", "IBM Plex Mono", "Segoe UI", monospace;
letter-spacing: 0.02em;
}
body[data-theme="nier"] .ui-icon {
color: #5a503f;
border: 1px solid #8a7a5f;
background: #bfb39a;
width: 18px;
height: 18px;
margin-right: 0.5rem;
text-transform: none;
}
body[data-theme="nier"] button,
body[data-theme="nier"] select,
body[data-theme="nier"] input,
body[data-theme="nier"] .image-card,
body[data-theme="nier"] .folder-dropdown,
body[data-theme="nier"] .context-menu,
body[data-theme="nier"] .modal-right,
body[data-theme="nier"] .modal-action-btn,
body[data-theme="nier"] .notification,
body[data-theme="nier"] .multi-select-actions {
border-radius: 0;
}
body[data-theme="nier"]::before {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
background-image:
repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0, rgba(0, 0, 0, 0.12) 1px, transparent 1px, transparent 12px),
repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0, rgba(0, 0, 0, 0.12) 1px, transparent 1px, transparent 12px);
background-size: 12px 12px, 12px 12px;
mix-blend-mode: multiply;
opacity: 0.55;
z-index: 0;
}
body[data-theme="nier"]::after {
content: "";
position: fixed;
left: 0;
right: 0;
bottom: 0;
height: 3px;
background: linear-gradient(90deg, transparent, #7c6d53, transparent);
pointer-events: none;
z-index: 0;
}
body[data-theme="nier"] * {
scrollbar-color: #5a4f3f #cfc6b2;
scrollbar-width: thin;
}
body[data-theme="nier"] ::-webkit-scrollbar {
width: 12px;
height: 12px;
}
body[data-theme="nier"] ::-webkit-scrollbar-track {
background: #cfc6b2;
border: 1px solid #8a7a5f;
}
body[data-theme="nier"] ::-webkit-scrollbar-thumb {
background: #5a4f3f;
border: 2px solid #cfc6b2;
}
body[data-theme="nier"] ::-webkit-scrollbar-thumb:hover {
background: #4a4032;
}
body[data-theme="nier"] ::-webkit-scrollbar-corner {
background: #cfc6b2;
}
body[data-theme="nier"] .header {
background: #bfb39a;
border-bottom: 1px solid #8a7a5f;
box-shadow: 0 8px 20px rgba(90, 80, 60, 0.25);
position: sticky;
z-index: 2;
}
body[data-theme="nier"] .header::after {
content: "";
display: block;
height: 6px;
background-image: radial-gradient(#5f5442 1px, transparent 1px);
background-size: 12px 6px;
background-position: 0 2px;
opacity: 0.6;
}
body[data-theme="nier"] .header h1 {
text-transform: uppercase;
letter-spacing: 0.18em;
}
body[data-theme="nier"] .controls {
gap: 0.75rem;
}
body[data-theme="nier"] .search-container {
background: #ded4c0;
border-color: #8a7a5f;
}
body[data-theme="nier"] .search-container span {
color: #5a503f;
}
body[data-theme="nier"] .search-container input {
color: #2a241b;
}
body[data-theme="nier"] input::placeholder {
color: #6b5d46;
}
body[data-theme="nier"] select,
body[data-theme="nier"] button {
background: #b8ae9a;
color: #2a241b;
border-color: #8a7a5f;
text-transform: uppercase;
letter-spacing: 0.08em;
}
body[data-theme="nier"] select {
padding-right: 1.4rem;
}
body[data-theme="nier"] select option {
background: #cfc7b5;
color: #2a241b;
}
body[data-theme="nier"] button:hover {
background: #a99f8a;
}
body[data-theme="nier"] button.active {
background: #cbb784;
border-color: #eadbb7;
color: #1a1712;
}
body[data-theme="nier"] button:focus,
body[data-theme="nier"] select:focus,
body[data-theme="nier"] input:focus {
outline: none;
box-shadow: 0 0 0 2px rgba(203, 183, 132, 0.25);
border-color: #cbb784;
}
body[data-theme="nier"] #compareBtn {
background: #cbb784;
border-color: #eadbb7;
color: #1a1712;
}
body[data-theme="nier"] #compareBtn:hover {
background: #e0ce9f;
}
body[data-theme="nier"] .gallery {
background: transparent;
position: relative;
z-index: 1;
}
body[data-theme="nier"] .gallery::before {
content: "";
position: absolute;
left: 2rem;
right: 2rem;
top: 0;
height: 2px;
background: linear-gradient(90deg, transparent, #8a7a5f, transparent);
opacity: 0.6;
}
body[data-theme="nier"] .image-card {
background: #c8c0ae;
border: 1px solid #8a7a5f;
box-shadow: 0 8px 16px rgba(8, 6, 4, 0.35);
}
body[data-theme="nier"] .image-card img,
body[data-theme="nier"] .image-card video {
border-bottom: 1px solid #8a7a5f;
}
body[data-theme="nier"] .image-card:hover {
box-shadow: 0 12px 24px rgba(8, 6, 4, 0.45);
}
body[data-theme="nier"] .image-card.selected {
box-shadow:
inset 0 0 0 2px #1a1712,
0 0 0 3px #f3e1b8,
0 0 28px rgba(243, 225, 184, 0.95);
border-color: #f3e1b8;
}
body[data-theme="nier"] .image-card.compare-first {
box-shadow:
inset 0 0 0 2px #8eb98f,
0 0 0 2px #8eb98f,
0 0 20px rgba(142, 185, 143, 0.65);
border-color: #8eb98f;
}
body[data-theme="nier"] .image-card.compare-second {
box-shadow:
inset 0 0 0 2px #b34a3e,
0 0 0 2px #b34a3e,
0 0 20px rgba(179, 74, 62, 0.65);
border-color: #b34a3e;
}
body[data-theme="nier"] .image-card.favorited.compare-first,
body[data-theme="nier"] .image-card.favorited.compare-second {
border-color: currentColor;
}
body[data-theme="nier"] .image-card.favorited.compare-first {
box-shadow:
inset 0 0 0 2px #8eb98f,
0 0 0 2px #8eb98f,
0 0 24px rgba(142, 185, 143, 0.75);
}
body[data-theme="nier"] .image-card.favorited.compare-second {
box-shadow:
inset 0 0 0 2px #b34a3e,
0 0 0 2px #b34a3e,
0 0 24px rgba(179, 74, 62, 0.75);
}
body[data-theme="nier"] .image-card.favorited {
box-shadow:
inset 0 0 0 2px #d1ad74,
0 0 0 2px #d1ad74,
0 0 24px rgba(209, 173, 116, 0.7);
border-color: #d1ad74;
}
body[data-theme="nier"] .image-card.selected.favorited {
box-shadow:
inset 0 0 0 2px #1a1712,
0 0 0 3px #f3e1b8,
0 0 0 6px rgba(209, 173, 116, 0.95),
0 0 30px rgba(243, 225, 184, 0.95);
border-color: #f3e1b8;
}
body[data-theme="nier"] .image-card.favorited::after {
content: "FAV";
position: absolute;
left: 0.5rem;
bottom: 3.1rem;
background: #d1ad74;
color: #1a1712;
border: 1px solid #eadbb7;
padding: 0.1rem 0.4rem;
font-size: 0.65rem;
letter-spacing: 0.12em;
text-transform: uppercase;
box-shadow: 0 4px 10px rgba(8, 6, 4, 0.35);
}
body[data-theme="nier"] .video-indicator {
background: rgba(15, 12, 9, 0.6);
color: #f3ead6;
border: 1px solid #6b5d46;
}
body[data-theme="nier"] .video-indicator::before,
body[data-theme="nier"] .audio-indicator::before {
color: #f3ead6;
}
body[data-theme="nier"] .audio-indicator {
background: rgba(138, 43, 226, 0.65);
}
body[data-theme="nier"] .audio-thumbnail {
background: linear-gradient(135deg, #a79f8a 0%, #bfb39a 50%, #cfc7b5 100%);
}
body[data-theme="nier"] .audio-thumbnail .audio-icon {
color: #2a241b;
}
body[data-theme="nier"] .image-info {
background: #bfb6a1;
border-top: 1px solid #8a7a5f;
}
body[data-theme="nier"] .image-name {
color: #2a241b;
text-transform: uppercase;
letter-spacing: 0.04em;
}
body[data-theme="nier"] .favorite-btn {
background: rgba(15, 12, 9, 0.55);
border-color: #eadbb7;
color: #f3ead6;
}
body[data-theme="nier"] .favorite-btn.favorited {
background: #d1ad74;
border-color: #eadbb7;
color: #1a1712;
}
body[data-theme="nier"] .modal {
background: rgba(12, 10, 7, 0.82);
}
body[data-theme="nier"] .modal-right {
background: #cfc7b5;
border-left: 1px solid #8a7a5f;
}
body[data-theme="nier"] .modal-left {
background: rgba(183, 171, 150, 0.35);
}
body[data-theme="nier"] .modal-right::-webkit-scrollbar-track {
background: #cfc6b2;
}
body[data-theme="nier"] .modal-close {
background: rgba(15, 12, 9, 0.6);
border: 1px solid #8a7a5f;
color: #f3ead6;
}
body[data-theme="nier"] .modal-close:hover {
background: rgba(15, 12, 9, 0.85);
}
body[data-theme="nier"] .modal-header-actions {
border-bottom-color: #8a7a5f;
}
body[data-theme="nier"] .modal-header-actions {
background: #bfb39a;
}
body[data-theme="nier"] .modal-action-btn {
color: #2a241b;
border-color: #8a7a5f;
}
body[data-theme="nier"] .modal-action-btn:hover {
background: #d7cfbc;
border-color: #cbb784;
}
body[data-theme="nier"] .modal-action-btn.favorite {
color: #8a2b21;
border-color: #8a2b21;
}
body[data-theme="nier"] .modal-view-btn {
background: #b8ae9a;
color: #2a241b;
border-color: #8a7a5f;
text-transform: uppercase;
letter-spacing: 0.06em;
}
body[data-theme="nier"] .modal-view-btn:hover {
background: #a99f8a;
}
body[data-theme="nier"] .modal-view-btn.active {
background: #cbb784;
border-color: #eadbb7;
color: #1a1712;
}
body[data-theme="nier"] .metadata-section {
border-bottom-color: #8a7a5f;
}
body[data-theme="nier"] .metadata-section-header {
color: #2a241b;
text-transform: uppercase;
letter-spacing: 0.08em;
}
body[data-theme="nier"] .metadata-section-header {
background: #b8ae9a;
border-bottom: 1px solid #8a7a5f;
}
body[data-theme="nier"] .metadata-section-header .icon {
color: #6b5d46;
}
body[data-theme="nier"] .metadata-section-content {
background: #cfc7b5;
}
body[data-theme="nier"] .metadata-label,
body[data-theme="nier"] .lora-strength,
body[data-theme="nier"] .file-info-item .label,
body[data-theme="nier"] .metadata-kv .label {
color: #5a503f;
}
body[data-theme="nier"] .metadata-kv .value {
color: #2a241b;
}
body[data-theme="nier"] .metadata-value,
body[data-theme="nier"] .file-info-item .value,
body[data-theme="nier"] .metadata-prompt {
color: #2a241b;
}
body[data-theme="nier"] .metadata-prompt,
body[data-theme="nier"] .metadata-kv,
body[data-theme="nier"] .lora-item,
body[data-theme="nier"] .file-info-item,
body[data-theme="nier"] .settings-grid .metadata-item,
body[data-theme="nier"] .workflow-node-item {
background: #ded4c0;
border-color: #8a7a5f;
}
body[data-theme="nier"] .workflow-node-header {
background: #b8ae9a;
color: #2a241b;
border-bottom: 1px solid #8a7a5f;
text-transform: uppercase;
letter-spacing: 0.06em;
}
body[data-theme="nier"] .workflow-node-meta,
body[data-theme="nier"] .workflow-param-name,
body[data-theme="nier"] .workflow-empty {
color: #5a503f;
}
body[data-theme="nier"] .workflow-param-value {
color: #2a241b;
}
body[data-theme="nier"] .lora-name {
color: #6b5d46;
}
body[data-theme="nier"] .modal-delete-btn {
background: #8a2b21;
}
body[data-theme="nier"] .modal-delete-btn:hover {
background: #6e211a;
}
body[data-theme="nier"] .modal-nav {
background: rgba(15, 12, 9, 0.6);
color: #f3ead6;
border-color: #eadbb7;
}
body[data-theme="nier"] .modal-nav {
border-radius: 0;
width: 46px;
height: 46px;
}
body[data-theme="nier"] .modal-nav:hover {
background: rgba(203, 183, 132, 0.9);
color: #1a1712;
}
body[data-theme="nier"] .folder-dropdown {
background: #c8c0ae;
border-color: #8a7a5f;
}
body[data-theme="nier"] .folder-list {
border: 1px solid rgba(138, 122, 95, 0.5);
padding: 0.3rem;
}
body[data-theme="nier"] .folder-dropdown hr {
border-color: #8a7a5f !important;
}
body[data-theme="nier"] .folder-item:hover {
background: #bfb6a1;
}
body[data-theme="nier"] .folder-item.active {
background: #cbb784;
color: #1a1712;
}
body[data-theme="nier"] .folder-item {
text-transform: uppercase;
letter-spacing: 0.06em;
}
body[data-theme="nier"] .folder-item-delete {
color: #8a2b21;
}
body[data-theme="nier"] .folder-add-form input {
background: #ded4c0;
color: #2a241b;
border-color: #8a7a5f;
}
body[data-theme="nier"] .context-menu {
background: #c8c0ae;
border-color: #8a7a5f;
box-shadow: 0 8px 24px rgba(8, 6, 4, 0.35);
}
body[data-theme="nier"] .context-menu-item {
color: #2a241b;
}
body[data-theme="nier"] .context-menu-item {
text-transform: uppercase;
letter-spacing: 0.05em;
}
body[data-theme="nier"] .context-menu-item:hover {
background: rgba(203, 183, 132, 0.3);
color: #1a1712;
}
body[data-theme="nier"] .context-menu-divider {
background: #8a7a5f;
}
body[data-theme="nier"] .context-menu-item-danger:hover {
background: rgba(138, 43, 33, 0.2);
color: #8a2b21;
}
body[data-theme="nier"] .multi-select-actions {
background: #c8c0ae;
border-color: #cbb784;
box-shadow: 0 4px 12px rgba(8, 6, 4, 0.35);
}
body[data-theme="nier"] .multi-select-actions {
border-width: 1px;
}
body[data-theme="nier"] .multi-select-actions .selected-info {
color: #2a241b;
}
body[data-theme="nier"] .notification {
background: #c8c0ae;
color: #2a241b;
border-color: #8eb98f;
}
body[data-theme="nier"] .loading {
color: #5a503f;
text-transform: uppercase;
letter-spacing: 0.08em;
}
body[data-theme="nier"] .notification-error {
border-color: #8a2b21;
}
body[data-theme="nier"] .compare-label {
background: rgba(15, 12, 9, 0.55);
color: #f3ead6;
}
body[data-theme="nier"] .compare-label-left {
border-left-color: #8eb98f;
}
body[data-theme="nier"] .compare-label-right {
border-right-color: #b34a3e;
}
body[data-theme="nier"] .compare-slider,
body[data-theme="nier"] .compare-slider-handle {
background: #8eb98f;
}
body[data-theme="nier"] .compare-slider-handle {
border-color: #f3ead6;
}
body[data-theme="nier"] .compare-slider-handle::before,
body[data-theme="nier"] .compare-slider-handle::after {
background: #f3ead6;
}
body[data-theme="nier"] .compare-wrapper {
background: transparent;
border: none;
box-shadow: none;
padding: 0;
}
body[data-theme="nier"] .compare-labels {
color: #2a241b;
}
body[data-theme="nier"] .compare-image-container {
border: 1px solid #d9c89d;
background: transparent;
}
/* ===== THEME: VERDANT FOREST ===== */
body[data-theme="forest"] {
background: #0f1a12;
color: #dce8d8;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}
body[data-theme="forest"]::before {
content: "";
position: fixed;
inset: 0;
background:
radial-gradient(ellipse 90% 50% at 10% 0%, rgba(34, 120, 60, 0.1) 0%, transparent 60%),
radial-gradient(ellipse 70% 50% at 90% 20%, rgba(16, 90, 50, 0.08) 0%, transparent 50%),
radial-gradient(ellipse 60% 50% at 40% 100%, rgba(120, 90, 30, 0.05) 0%, transparent 50%);
pointer-events: none;
z-index: 0;
}
body[data-theme="forest"] .ui-icon {
color: #6dba7a;
border: none;
background: transparent;
font-size: 0.85rem;
}
body[data-theme="forest"] .header {
background: rgba(18, 32, 20, 0.82);
-webkit-backdrop-filter: blur(18px) saturate(1.3);
backdrop-filter: blur(18px) saturate(1.3);
border-bottom: 1px solid rgba(77, 150, 90, 0.18);
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(77, 150, 90, 0.1);
position: sticky;
z-index: 2;
}
body[data-theme="forest"] .header h1 {
color: #8fd49a;
font-weight: 700;
letter-spacing: 0.02em;
text-shadow: 0 0 20px rgba(100, 180, 110, 0.2);
}
body[data-theme="forest"] .search-container {
background: rgba(24, 44, 28, 0.55);
border: 1px solid rgba(77, 150, 90, 0.15);
border-radius: 10px;
transition: border-color 0.3s, box-shadow 0.3s;
}
body[data-theme="forest"] .search-container:focus-within {
border-color: rgba(77, 150, 90, 0.45);
box-shadow: 0 0 0 3px rgba(77, 150, 90, 0.08);
}
body[data-theme="forest"] .search-container input {
color: #dce8d8;
}
body[data-theme="forest"] input::placeholder {
color: #6a7d65;
}
body[data-theme="forest"] select,
body[data-theme="forest"] button {
background: rgba(24, 44, 28, 0.55);
color: #b5ccaf;
border: 1px solid rgba(77, 150, 90, 0.15);
border-radius: 10px;
transition: all 0.25s ease;
}
body[data-theme="forest"] select option {
background: #162018;
color: #dce8d8;
}
body[data-theme="forest"] button:hover {
background: rgba(77, 150, 90, 0.15);
border-color: rgba(77, 150, 90, 0.35);
color: #dce8d8;
box-shadow: 0 0 10px rgba(77, 150, 90, 0.1);
}
body[data-theme="forest"] button.active {
background: rgba(56, 130, 70, 0.25);
border-color: #6dba7a;
color: #e0f0e0;
box-shadow: 0 0 14px rgba(77, 150, 90, 0.2);
}
body[data-theme="forest"] button:focus,
body[data-theme="forest"] select:focus,
body[data-theme="forest"] input:focus {
outline: none;
box-shadow: 0 0 0 2px rgba(77, 150, 90, 0.2);
}
body[data-theme="forest"] #compareBtn {
background: rgba(34, 140, 100, 0.2);
border-color: rgba(34, 140, 100, 0.4);
}
body[data-theme="forest"] #compareBtn:hover {
background: rgba(34, 140, 100, 0.3);
box-shadow: 0 0 14px rgba(34, 140, 100, 0.15);
}
body[data-theme="forest"] .gallery {
position: relative;
z-index: 1;
}
body[data-theme="forest"] .image-card {
background: rgba(22, 38, 24, 0.55);
border: 1px solid rgba(77, 150, 90, 0.1);
border-radius: 12px;
box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
body[data-theme="forest"] .image-card img,
body[data-theme="forest"] .image-card video {
border-radius: 12px 12px 0 0;
}
body[data-theme="forest"] .image-card:hover {
border-color: rgba(77, 150, 90, 0.25);
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), 0 0 16px rgba(77, 150, 90, 0.06);
transform: translateY(-2px);
}
body[data-theme="forest"] .image-card.selected {
border-color: #6dba7a;
box-shadow: 0 0 0 2px rgba(109, 186, 122, 0.35), 0 0 20px rgba(77, 150, 90, 0.12);
}
body[data-theme="forest"] .image-card.compare-first {
border-color: #4ade80;
box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.3), 0 0 16px rgba(74, 222, 128, 0.1);
}
body[data-theme="forest"] .image-card.compare-second {
border-color: #d97706;
box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.3), 0 0 16px rgba(217, 119, 6, 0.1);
}
body[data-theme="forest"] .image-card.favorited {
border-color: #d4a030;
box-shadow: 0 0 0 2px rgba(212, 160, 48, 0.25), 0 0 14px rgba(212, 160, 48, 0.08);
}
body[data-theme="forest"] .video-indicator {
background: rgba(15, 26, 18, 0.75);
color: #4ade80;
border: 1px solid rgba(74, 222, 128, 0.25);
border-radius: 6px;
}
body[data-theme="forest"] .video-indicator::before { color: #4ade80; }
body[data-theme="forest"] .audio-indicator {
background: rgba(56, 100, 60, 0.7);
border: 1px solid rgba(109, 186, 122, 0.25);
border-radius: 6px;
}
body[data-theme="forest"] .audio-thumbnail {
background: linear-gradient(135deg, #0f1a12 0%, #1a2e1c 50%, #0f1a12 100%);
}
body[data-theme="forest"] .audio-thumbnail .audio-icon { color: #6dba7a; }
body[data-theme="forest"] .image-info { background: rgba(15, 26, 18, 0.5); }
body[data-theme="forest"] .image-name { color: #b5ccaf; }
body[data-theme="forest"] .favorite-btn {
background: rgba(15, 26, 18, 0.55);
border: 1px solid rgba(212, 160, 48, 0.3);
color: #8a9a82;
border-radius: 50%;
transition: all 0.25s ease;
}
body[data-theme="forest"] .favorite-btn:hover {
color: #d4a030;
border-color: #d4a030;
box-shadow: 0 0 8px rgba(212, 160, 48, 0.15);
}
body[data-theme="forest"] .favorite-btn.favorited {
background: rgba(212, 160, 48, 0.12);
border-color: #d4a030;
color: #d4a030;
}
body[data-theme="forest"] .modal {
background: rgba(8, 14, 9, 0.92);
}
body[data-theme="forest"] .modal-right {
background: rgba(15, 26, 18, 0.92);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
border-left: 1px solid rgba(77, 150, 90, 0.12);
}
body[data-theme="forest"] .modal-close {
background: rgba(15, 26, 18, 0.65);
border: 1px solid rgba(77, 150, 90, 0.2);
color: #b5ccaf;
border-radius: 10px;
}
body[data-theme="forest"] .modal-close:hover {
background: rgba(77, 150, 90, 0.15);
border-color: #6dba7a;
}
body[data-theme="forest"] .modal-header-actions {
background: rgba(22, 38, 24, 0.4);
border-bottom: 1px solid rgba(77, 150, 90, 0.08);
}
body[data-theme="forest"] .modal-action-btn {
color: #6dba7a;
border: 1px solid rgba(77, 150, 90, 0.2);
border-radius: 10px;
}
body[data-theme="forest"] .modal-action-btn:hover {
background: rgba(77, 150, 90, 0.1);
border-color: #6dba7a;
}
body[data-theme="forest"] .modal-action-btn.favorite {
color: #d4a030;
border-color: rgba(212, 160, 48, 0.3);
}
body[data-theme="forest"] .modal-action-btn.favorite:hover {
background: rgba(212, 160, 48, 0.1);
}
body[data-theme="forest"] .modal-view-btn {
background: rgba(22, 38, 24, 0.55);
color: #8a9a82;
border: 1px solid rgba(77, 150, 90, 0.12);
border-radius: 8px;
}
body[data-theme="forest"] .modal-view-btn:hover {
background: rgba(77, 150, 90, 0.1);
color: #b5ccaf;
}
body[data-theme="forest"] .modal-view-btn.active {
background: rgba(56, 130, 70, 0.2);
border-color: #6dba7a;
color: #e0f0e0;
}
body[data-theme="forest"] .metadata-section {
border-bottom: 1px solid rgba(77, 150, 90, 0.06);
}
body[data-theme="forest"] .metadata-section-header {
color: #6dba7a;
background: rgba(22, 38, 24, 0.3);
}
body[data-theme="forest"] .metadata-section-content {
background: rgba(15, 26, 18, 0.5);
}
body[data-theme="forest"] .metadata-label,
body[data-theme="forest"] .lora-strength,
body[data-theme="forest"] .file-info-item .label,
body[data-theme="forest"] .metadata-kv .label {
color: #6a7d65;
}
body[data-theme="forest"] .metadata-value,
body[data-theme="forest"] .file-info-item .value,
body[data-theme="forest"] .metadata-kv .value {
color: #dce8d8;
}
body[data-theme="forest"] .metadata-prompt,
body[data-theme="forest"] .metadata-kv,
body[data-theme="forest"] .lora-item,
body[data-theme="forest"] .file-info-item,
body[data-theme="forest"] .settings-grid .metadata-item {
background: rgba(22, 38, 24, 0.45);
border: 1px solid rgba(77, 150, 90, 0.06);
border-radius: 10px;
}
body[data-theme="forest"] .metadata-prompt {
color: #b5ccaf;
}
body[data-theme="forest"] .metadata-copy-btn {
background: rgba(56, 100, 60, 0.15);
color: #6dba7a;
border: 1px solid rgba(77, 150, 90, 0.2);
border-radius: 6px;
}
body[data-theme="forest"] .metadata-copy-btn:hover {
background: rgba(77, 150, 90, 0.2);
border-color: #6dba7a;
color: #e0f0e0;
}
body[data-theme="forest"] .lora-name { color: #4ade80; }
body[data-theme="forest"] .workflow-node-item {
background: rgba(22, 38, 24, 0.45);
border: 1px solid rgba(77, 150, 90, 0.08);
border-radius: 10px;
overflow: hidden;
}
body[data-theme="forest"] .workflow-node-header {
background: rgba(56, 100, 60, 0.1);
color: #6dba7a;
border-bottom: 1px solid rgba(77, 150, 90, 0.08);
}
body[data-theme="forest"] .workflow-node-meta { color: #6a7d65; }
body[data-theme="forest"] .workflow-param-name { color: #6a7d65; }
body[data-theme="forest"] .workflow-param-value { color: #dce8d8; }
body[data-theme="forest"] .workflow-empty { color: #4a5e46; }
body[data-theme="forest"] .modal-delete-btn {
background: linear-gradient(135deg, #8b2e1a, #6e2414);
border-radius: 0;
}
body[data-theme="forest"] .modal-delete-btn:hover {
background: linear-gradient(135deg, #a8391f, #8b2e1a);
}
body[data-theme="forest"] .modal-nav {
background: rgba(15, 26, 18, 0.65);
border: 1px solid rgba(77, 150, 90, 0.18);
color: #b5ccaf;
border-radius: 50%;
transition: all 0.25s ease;
}
body[data-theme="forest"] .modal-nav:hover {
background: rgba(77, 150, 90, 0.18);
border-color: #6dba7a;
box-shadow: 0 0 12px rgba(77, 150, 90, 0.12);
}
body[data-theme="forest"] .modal-zoom-controls,
body[data-theme="forest"] .compare-zoom-controls {
background: rgba(15, 26, 18, 0.75);
border: 1px solid rgba(77, 150, 90, 0.18);
border-radius: 10px;
}
body[data-theme="forest"] .modal-zoom-btn,
body[data-theme="forest"] .compare-zoom-btn {
border-color: rgba(77, 150, 90, 0.15);
border-radius: 6px;
}
body[data-theme="forest"] .folder-dropdown {
background: rgba(15, 26, 18, 0.92);
-webkit-backdrop-filter: blur(16px);
backdrop-filter: blur(16px);
border: 1px solid rgba(77, 150, 90, 0.18);
border-radius: 12px;
box-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
}
body[data-theme="forest"] .folder-item {
border-radius: 8px;
transition: all 0.2s ease;
}
body[data-theme="forest"] .folder-item:hover {
background: rgba(77, 150, 90, 0.1);
}
body[data-theme="forest"] .folder-item.active {
background: rgba(56, 130, 70, 0.2);
color: #e0f0e0;
}
body[data-theme="forest"] .folder-item-delete { color: #c45a3a; }
body[data-theme="forest"] .folder-add-form input {
background: rgba(24, 44, 28, 0.5);
border: 1px solid rgba(77, 150, 90, 0.12);
color: #dce8d8;
border-radius: 8px;
}
body[data-theme="forest"] .folder-add-form input:focus {
border-color: rgba(77, 150, 90, 0.4);
}
body[data-theme="forest"] .context-menu {
background: rgba(15, 26, 18, 0.94);
-webkit-backdrop-filter: blur(16px);
backdrop-filter: blur(16px);
border: 1px solid rgba(77, 150, 90, 0.18);
border-radius: 12px;
box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
}
body[data-theme="forest"] .context-menu-item {
color: #b5ccaf;
border-radius: 8px;
}
body[data-theme="forest"] .context-menu-item:hover {
background: rgba(77, 150, 90, 0.1);
color: #6dba7a;
}
body[data-theme="forest"] .context-menu-divider {
background: rgba(77, 150, 90, 0.08);
}
body[data-theme="forest"] .context-menu-item-danger:hover {
background: rgba(196, 90, 58, 0.1);
color: #c45a3a;
}
body[data-theme="forest"] .multi-select-actions {
background: rgba(15, 26, 18, 0.88);
-webkit-backdrop-filter: blur(16px);
backdrop-filter: blur(16px);
border: 1px solid rgba(77, 150, 90, 0.25);
border-radius: 14px;
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
body[data-theme="forest"] .multi-select-actions .selected-info {
color: #6dba7a;
}
body[data-theme="forest"] .notification {
background: rgba(15, 26, 18, 0.94);
-webkit-backdrop-filter: blur(16px);
backdrop-filter: blur(16px);
color: #dce8d8;
border: 1px solid rgba(74, 222, 128, 0.3);
border-radius: 12px;
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
body[data-theme="forest"] .notification-error {
border-color: rgba(196, 90, 58, 0.4);
}
body[data-theme="forest"] .notification-success {
border-color: rgba(74, 222, 128, 0.3);
}
body[data-theme="forest"] .loading {
color: #6a7d65;
}
body[data-theme="forest"] .compare-label {
background: rgba(15, 26, 18, 0.75);
-webkit-backdrop-filter: blur(8px);
backdrop-filter: blur(8px);
border-radius: 8px;
color: #dce8d8;
}
body[data-theme="forest"] .compare-label-left { border-left-color: #4ade80; }
body[data-theme="forest"] .compare-label-right { border-right-color: #d97706; }
body[data-theme="forest"] .compare-slider { background: #4ade80; }
body[data-theme="forest"] .compare-slider-handle {
background: #4ade80;
border-color: #fff;
}
body[data-theme="forest"] .compare-slider-handle::before,
body[data-theme="forest"] .compare-slider-handle::after { background: #fff; }
body[data-theme="forest"] .compare-image-container {
border: 1px solid rgba(77, 150, 90, 0.12);
border-radius: 12px;
}
body[data-theme="forest"] * {
scrollbar-color: #2a4a2e #0f1a12;
scrollbar-width: thin;
}
body[data-theme="forest"] ::-webkit-scrollbar { width: 7px; height: 7px; }
body[data-theme="forest"] ::-webkit-scrollbar-track { background: #0f1a12; }
body[data-theme="forest"] ::-webkit-scrollbar-thumb {
background: linear-gradient(180deg, #2d6b38, #4ade80);
border-radius: 4px;
}
body[data-theme="forest"] ::-webkit-scrollbar-thumb:hover { background: #4ade80; }
/* Forest mini mode overrides */
body.mini-mode[data-theme="forest"] .header {
background: rgba(15, 26, 18, 0.85);
border-color: rgba(77, 150, 90, 0.18);
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
body.mini-mode[data-theme="forest"] .search-container {
background: rgba(24, 44, 28, 0.45);
border-color: rgba(77, 150, 90, 0.1);
}
body.mini-mode[data-theme="forest"] select,
body.mini-mode[data-theme="forest"] button {
background: rgba(24, 44, 28, 0.45);
border-color: rgba(77, 150, 90, 0.1);
}
body.mini-mode[data-theme="forest"] button:hover {
background: rgba(77, 150, 90, 0.12);
}
body.mini-mode[data-theme="forest"] .image-card {
background: rgba(22, 38, 24, 0.5);
border-color: rgba(77, 150, 90, 0.06);
}
body.mini-mode[data-theme="forest"] .image-card img,
body.mini-mode[data-theme="forest"] .image-card video {
background: #0f1a12;
}
/* ===== MINI MODE ===== */
body.mini-mode {
overflow-x: hidden;
}
body.mini-mode .header {
position: fixed;
bottom: 12px;
left: 50%;
transform: translateX(-50%);
top: auto;
background: rgba(30, 30, 30, 0.88);
-webkit-backdrop-filter: blur(16px);
backdrop-filter: blur(16px);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 18px;
padding: 8px 12px;
z-index: 500;
box-shadow: 0 8px 32px rgba(0,0,0,0.5);
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
justify-content: center;
width: auto;
max-width: calc(100% - 16px);
}
body.mini-mode .header h1 { display: none; }
body.mini-mode .controls {
gap: 5px;
flex-wrap: wrap;
width: 100%;
justify-content: center;
}
body.mini-mode .search-container {
min-width: 0;
flex: 1 1 100%;
padding: 5px 10px;
border-radius: 12px;
background: rgba(255,255,255,0.06);
border-color: rgba(255,255,255,0.08);
order: -1;
}
body.mini-mode .search-container input { min-width: 60px; font-size: 0.8rem; }
body.mini-mode select,
body.mini-mode button {
padding: 4px 8px;
font-size: 0;
min-width: 32px;
height: 32px;
border-radius: 16px;
display: inline-flex;
align-items: center;
justify-content: center;
background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.08);
}
body.mini-mode select {
font-size: 0.75rem;
min-width: auto;
padding: 4px 6px;
border-radius: 16px;
max-width: 85px;
}
body.mini-mode select option {
background: #2a2a2a;
color: #fff;
}
body.mini-mode button .ui-icon {
margin: 0;
font-size: 0.9rem;
}
body.mini-mode button:hover {
background: rgba(74, 158, 255, 0.2);
}
/* Hide heavy features in mini mode */
body.mini-mode #compareModeBtn,
body.mini-mode #multiSelectModeBtn,
body.mini-mode #compareBtn,
body.mini-mode .multi-select-actions,
body.mini-mode .folder-manager { display: none !important; }
/* Mini mode gallery */
body.mini-mode .gallery {
padding: 8px;
padding-bottom: 80px;
gap: 6px;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
body.mini-mode .image-card {
border-radius: 10px;
overflow: hidden;
position: relative;
background: #222;
}
body.mini-mode .image-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
body.mini-mode .image-card img,
body.mini-mode .image-card video {
width: 100%;
height: auto;
aspect-ratio: 1 / 1;
object-fit: contain;
display: block;
background: #181818;
}
body.mini-mode .audio-thumbnail {
height: auto;
aspect-ratio: 1 / 1;
}
/* Filename as hover overlay */
body.mini-mode .image-info {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 24px 8px 8px 8px;
background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
opacity: 0;
transform: translateY(4px);
transition: opacity 0.2s, transform 0.2s;
pointer-events: none;
}
body.mini-mode .image-card:hover .image-info {
opacity: 1;
transform: translateY(0);
}
body.mini-mode .image-name {
font-size: 0.7rem;
color: #fff;
}
body.mini-mode .favorite-btn {
width: 24px;
height: 24px;
font-size: 0.9rem;
}
/* Mini mode modal - simple lightbox */
body.mini-mode .modal-right { display: none; }
body.mini-mode .modal-left { padding: 1rem; }
body.mini-mode .modal button,
body.mini-mode .modal .modal-close {
font-size: 1rem;
}
body.mini-mode .modal-zoom-btn-reset {
font-size: 0.78rem !important;
}
body.mini-mode .modal-close {
right: 1rem;
top: 1rem;
}
body.mini-mode .modal-nav-next {
right: 1rem;
}
/* Mini mode: Mode switcher styling */
body.mini-mode #openModeSelect {
min-width: auto;
max-width: 75px;
}
/* Nier mini mode overrides */
body.mini-mode[data-theme="nier"] .header {
background: rgba(191, 179, 154, 0.88);
border-color: rgba(138, 122, 95, 0.5);
}
body.mini-mode[data-theme="nier"] .search-container {
background: rgba(222, 212, 192, 0.5);
border-color: rgba(138, 122, 95, 0.3);
}
body.mini-mode[data-theme="nier"] select,
body.mini-mode[data-theme="nier"] button {
background: rgba(184, 174, 154, 0.5);
border-color: rgba(138, 122, 95, 0.3);
}
body.mini-mode[data-theme="nier"] button:hover {
background: rgba(203, 183, 132, 0.4);
}
body.mini-mode[data-theme="nier"] .image-card {
background: #c8c0ae;
}
body.mini-mode[data-theme="nier"] .image-card img,
body.mini-mode[data-theme="nier"] .image-card video {
background: #b8b0a0;
}
</style>
</head>
<body>
<script>
(function() {
const params = new URLSearchParams(window.location.search);
if (params.get('mode') === 'mini') {
document.body.classList.add('mini-mode');
}
})();
</script>
<div class="header">
<h1>Image Browser</h1>
<div class="controls">
<div class="search-container">
<span class="ui-icon">◆</span>
<input type="text" id="searchInput" placeholder="Search filename...">
</div>
<div class="folder-manager">
<button id="folderBtn"><span class="ui-icon">▣</span>Folders</button>
<div class="folder-dropdown" id="folderDropdown">
<div class="folder-list" id="folderList"></div>
<hr style="border-color: #3a3a3a; margin: 1rem 0;">
<div class="folder-add-form">
<p style="margin-bottom: 0.5rem;">Add external folder:</p>
<input type="text" id="folderName" placeholder="Folder display name">
<input type="text" id="folderPath" placeholder="Full path (e.g., C:\...)">
<button id="addFolderBtn">Add Folder</button>
</div>
</div>
</div>
<button id="compareModeBtn"><span class="ui-icon">⇄</span>Compare Mode</button>
<button id="multiSelectModeBtn"><span class="ui-icon">◫</span>Multi-Select Mode</button>
<button id="compareBtn"><span class="ui-icon">▥</span>Compare Selected</button>
<button id="favoritesFilterBtn"><span class="ui-icon">★</span>Favorites</button>
<select id="sortSelect" aria-label="Sort order" title="Sort order">
<option value="date_desc">Newest First</option>
<option value="date_asc">Oldest First</option>
<option value="name_asc">Name A-Z</option>
<option value="name_desc">Name Z-A</option>
</select>
<select id="themeSelect" aria-label="Theme">
<option value="dark">Dark</option>
<option value="nier">Nier Automata</option>
<option value="forest">Verdant Forest</option>
</select>
<select id="openModeSelect" aria-label="Open Mode" title="How to open the browser">
<option value="tab">📄 Tab</option>
<option value="mini">🪟 Mini</option>
</select>
<button id="refreshBtn"><span class="ui-icon">↻</span>Refresh</button>
</div>
</div>
<div class="gallery" id="gallery"></div>
<div class="loading" id="loading" style="display: none;">Loading more images...</div>
<div class="multi-select-actions" id="multiSelectActions">
<span class="selected-info"><span id="selectedCount">0</span> selected</span>
<button id="deleteSelectedBtn"><span class="ui-icon">■</span>Delete</button>
<button id="favoriteSelectedBtn"><span class="ui-icon">★</span>Favorite</button>
<button id="unfavoriteSelectedBtn"><span class="ui-icon">☆</span>Unfavorite</button>
<button id="clearSelectionBtn"><span class="ui-icon">✕</span>Clear</button>
</div>
<div class="modal" id="modal">
<span class="modal-close" onclick="closeModal()">&times;</span>
<button class="modal-nav modal-nav-prev" id="modalNavPrev" onclick="navigatePrev()">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="15 18 9 12 15 6"></polyline>
</svg>
</button>
<button class="modal-nav modal-nav-next" id="modalNavNext" onclick="navigateNext()">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<polyline points="9 18 15 12 9 6"></polyline>
</svg>
</button>
<div class="modal-content">
<div class="modal-left" id="modalMediaContainer"></div>
<div class="modal-right" id="metadataPanel"></div>
</div>
</div>
<div class="modal" id="compareModal">
<span class="modal-close" onclick="closeCompareModal()">&times;</span>
<div id="compareContainer"></div>
</div>
<script src="/gemini-image-browser/js"></script>
</body>
</html>