Files
Jason HokuandClaude Opus 4.7 8c8759d487 fix: strengthen dashboard filter highlight visibility for steps/cfg/upscale/type
The CSS rules and variables (--accent-steps/cfg/upscale/media) were already
added in 2c3851e; user reporting the bug was viewing a stale inlined dashboard
HTML generated before that commit. Since html_generator.py inlines report.css
at generation time, regeneration is required for CSS edits to take effect.

Added belt-and-suspenders box-shadow: inset to the four filter types so that
even if a theme override or cached page interferes with background, the inset
ring remains visible. Added a code comment documenting the regeneration
requirement.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 13:02:05 -07:00

1737 lines
32 KiB
CSS

:root {
--bg: #0b0b0b;
--card: #141414;
--accent: #00d1b2;
--accent-sch: #3e8ed0;
--accent-lora: #d0873e;
--accent-denoise: #c35500;
--accent-model: #9b59b6;
--accent-positive: #007d11;
--accent-negative: #8d0000;
--accent-size: #ffd700;
--accent-seed: #00ff88;
--accent-steps: #ff4099;
--accent-cfg: #00d4ff;
--accent-upscale: #7e57c2;
--accent-media: #ff7043;
--danger: #ff3860;
--text: #e0e0e0;
--card-width: 250px;
}
body {
background: var(--bg);
color: var(--text);
font-family: 'Segoe UI', sans-serif;
margin: 0;
overflow: hidden;
height: 100vh;
display: flex;
flex-direction: column;
}
.meta-box {
display: flex;
flex-direction: row;
gap: 1px;
align-items: center;
min-width: 0;
flex: 0 1 auto;
}
.meta-label {
color: #c7c7c7;
font-weight: 900;
text-transform: uppercase;
font-size: 9px;
white-space: nowrap;
padding-top: 1px;
}
.meta-val {
color: #bbb;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding-top: 1px;
}
#header input[type="number"] , #goto-input, #col-count {
background: #1a1a1a;
border: 1px solid #333;
color: #ccc;
padding: 0 4px;
border-radius: 3px;
width: 25px;
height: 20px;
font-size: 10px;
text-align: center;
}
#header input[type="number"]:focus {
border-color: var(--accent);
outline: none;
}
#goto-input {
width: 40px !important;
}
.session-ctrl {
display: flex;
align-items: center;
gap: 2px;
background: #0a0a0a;
padding: 3px 8px;
border-radius: 4px;
border: 1px solid #222;
}
.session-input {
background: #000;
color: #fff;
border: 1px solid #333;
padding: 3px 8px;
font-size: 11px;
width: 80px;
border-radius: 3px;
}
.session-input:focus {
border-color: var(--accent);
outline: none;
}
/* (Session button and dropdown removed - merged into cog settings panel) */
.session-name-input {
background: #0a0a0a;
border: 1px solid #333;
color: #fff;
padding: 6px 10px;
font-size: 11px;
border-radius: 3px;
width: 100%;
box-sizing: border-box;
}
.session-name-input:focus {
border-color: var(--accent);
outline: none;
}
.session-actions {
display: flex;
gap: 6px;
}
.session-action-btn {
flex: 1;
background: #2a2a2a;
color: #fff;
border: 1px solid #444;
padding: 6px 10px;
border-radius: 3px;
cursor: pointer;
font-weight: 600;
font-size: 10px;
transition: background 0.2s;
}
.session-action-btn:hover {
background: #444;
}
.session-action-btn.save-btn {
background: #005e52;
color: #fff;
border-color: #005e52;
}
.session-action-btn.save-btn:hover {
background: #00796b;
}
.session-action-btn.load-btn {
background: #9b59b6;
color: #fff;
border-color: #9b59b6;
}
.session-action-btn.load-btn:hover {
background: #8e44ad;
}
.action-btn {
background: #2a2a2a;
color: #fff;
border: 1px solid #444;
padding: 4px 10px;
border-radius: 4px;
cursor: pointer;
font-weight: 600;
font-size: 10px;
transition: background 0.2s;
}
.action-btn:hover {
background: #444;
}
.fs-btn {
background: #333;
color: #fff;
border: 1px solid #555;
width: 28px;
height: 28px;
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
transition: background 0.2s;
}
.fs-btn:hover {
background: #555;
}
.filter-popup-btn {
background: #2a2a2a;
color: var(--accent);
border: 1px solid #444;
width: 28px;
height: 28px;
padding: 0;
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
}
.filter-popup-btn:hover {
background: #444;
}
/* FILTERS POPUP */
.filters-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.7);
z-index: 999;
}
.filters-popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #111;
border: 1px solid #333;
border-radius: 8px;
width: 90%;
max-width: 800px;
max-height: 80vh;
overflow-y: auto;
z-index: 1000;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}
.filters-popup-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
border-bottom: 1px solid #333;
background: #0a0a0a;
position: sticky;
top: 0;
z-index: 10;
}
.filters-popup-header h3 {
margin: 0;
color: #fff;
font-size: 16px;
font-weight: 700;
}
.close-popup-btn {
background: #333;
color: #fff;
border: none;
width: 28px;
height: 28px;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
}
.close-popup-btn:hover {
background: var(--danger);
}
.filters-popup-content {
padding: 20px;
}
.popup-section {
margin-bottom: 25px;
}
.popup-section:last-child {
margin-bottom: 0;
}
.popup-section-title {
font-size: 11px;
font-weight: 700;
color: #666;
text-transform: uppercase;
margin-bottom: 12px;
letter-spacing: 0.5px;
}
/* Meta Info Grid */
.meta-info-grid {
display: grid;
grid-template-columns: 1fr;
gap: 10px;
}
.meta-info-item {
background: #0a0a0a;
padding: 10px 12px;
border-radius: 4px;
border: 1px solid #222;
display: flex;
flex-direction: column;
gap: 4px;
}
.meta-info-item .meta-label {
font-size: 9px;
color: #666;
}
.meta-info-item .meta-val {
color: #fff;
font-size: 12px;
word-break: break-word;
}
/* Filter Rows */
.filter-row {
display: flex;
gap: 12px;
align-items: flex-start;
margin-bottom: 12px;
padding-bottom: 12px;
border-bottom: 1px solid #1a1a1a;
}
.filter-row:last-child {
border-bottom: none;
margin-bottom: 0;
}
.filter-row .filter-label {
font-size: 10px;
font-weight: 700;
color: #888;
text-transform: uppercase;
min-width: 70px;
padding-top: 4px;
}
.filter-buttons-container {
display: flex;
flex-wrap: wrap;
gap: 6px;
flex: 1;
}
.filter-btn {
background: #222;
border: 1px solid #333;
color: #666;
padding: 4px 10px;
border-radius: 4px;
cursor: pointer;
font-size: 10px;
transition: 0.1s;
position: relative;
}
.filter-btn:hover {
background: #2a2a2a;
}
.filter-btn.active.sampler {
background: var(--accent);
color: #000;
font-weight: 700;
}
.filter-btn.active.scheduler {
background: var(--accent-sch);
color: #000;
font-weight: 700;
}
.filter-btn.active.lora {
background: var(--accent-lora);
color: #000;
font-weight: 700;
}
.filter-btn.active.denoise {
background: var(--accent-denoise);
color: #fff;
font-weight: 700;
}
.filter-btn.active.model {
background: var(--accent-model);
color: #fff;
font-weight: 700;
}
.filter-btn.active.positive {
background: var(--accent-positive);
color: #fff;
font-weight: 700;
text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.filter-btn.active.negative {
background: var(--accent-negative);
color: #fff;
font-weight: 700;
text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.filter-btn.active.size {
background: var(--accent-size);
color: #000;
font-weight: 700;
}
.filter-btn.active.seed {
background: var(--accent-seed);
color: #000;
font-weight: 700;
}
/* NOTE: Changes to report.css require dashboard HTML regeneration to take effect
(run a sampler pass or reload the session to trigger html_generator.py). */
.filter-btn.active.steps {
background: var(--accent-steps);
color: #fff;
font-weight: 700;
box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3);
}
.filter-btn.active.cfg {
background: var(--accent-cfg);
color: #000;
font-weight: 700;
box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15);
}
.filter-btn.active.upscaleMethod {
background: var(--accent-upscale);
color: #fff;
font-weight: 700;
box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3);
}
.filter-btn.active.mediaType {
background: var(--accent-media);
color: #000;
font-weight: 700;
box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15);
}
/* VIEWPORT - Pure pan mode (no scrollbars) */
#viewport {
flex: 1;
overflow: hidden;
position: relative;
background: radial-gradient(#222 1px, transparent 1px);
background-size: 30px 30px;
background-attachment: fixed;
cursor: grab;
touch-action: none;
-webkit-user-select: none;
user-select: none;
-webkit-touch-callout: none;
}
#viewport:active {
cursor: grabbing;
}
#canvas {
transform-origin: 0 0;
will-change: transform;
position: relative;
min-height: 100%;
min-width: 100%;
}
.grid {
position: relative;
width: 100%;
}
/* CARDS - Absolutely positioned */
.card {
position: absolute;
background: var(--card);
border: 1px solid #222;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0,0,0,0.5);
display: flex;
flex-direction: column;
contain: layout style paint;
will-change: transform;
transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
-webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
.card:hover {
transform: translateY(-2px);
border-color: var(--accent);
box-shadow: 0 8px 20px rgba(0,209,178,0.3);
z-index: 999999 !important;
}
}
.card:active {
transform: translateY(-2px);
border-color: var(--accent);
z-index: 999999 !important;
}
.img-wrapper {
position: relative;
width: 100%;
padding-bottom: 100%;
background: #1a1a1a;
overflow: hidden;
}
.img-wrapper img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0;
transition: opacity 0.3s;
decoding: async;
z-index: 1;
}
.time-tag {
position: absolute;
bottom: 8px;
right: 8px;
background: rgba(0,0,0,0.85);
color: #fff;
padding: 3px 7px;
border-radius: 4px;
font-weight: bold;
font-size: 10px;
pointer-events: none;
z-index: 5;
border: 1px solid rgba(255,255,255,0.1);
}
.index-tag {
position: absolute;
bottom: 8px;
left: 8px;
background: rgba(0,0,0,0.85);
color: rgba(255,255,255,0.95);
padding: 3px 7px;
border-radius: 4px;
font-weight: bold;
font-size: 10px;
pointer-events: none;
z-index: 5;
border: 1px solid rgba(255,255,255,0.2);
}
.video-badge {
position: absolute;
top: 8px;
left: 8px;
background: rgba(90, 40, 160, 0.9);
color: #fff;
padding: 3px 7px;
border-radius: 4px;
font-weight: bold;
font-size: 10px;
pointer-events: none;
z-index: 5;
border: 1px solid rgba(255, 255, 255, 0.2);
text-shadow: 0 0 4px rgba(0,0,0,0.8);
}
.card video {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
cursor: pointer;
position: absolute;
top: 0;
left: 0;
}
.label-overlay {
position: absolute;
top: 6px;
left: 6px;
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
pointer-events: none;
z-index: 4;
}
.label-tag {
background: rgba(0, 40, 80, 0.6);
color: #fff;
padding: 2px 6px;
border-radius: 3px;
font-size: var(--label-font-size, 9px);
font-weight: bold;
font-family: monospace;
white-space: nowrap;
max-width: 95%;
overflow: hidden;
text-overflow: ellipsis;
text-shadow: 0 1px 2px rgba(0,0,0,0.7);
line-height: 1.3;
}
.label-tag.label-model { background: rgba(80, 20, 100, 0.6); }
.label-tag.label-lora { background: rgba(90, 60, 10, 0.6); }
.label-tag.label-prompt { background: rgba(15, 70, 50, 0.6); }
.label-tag.label-sampler { background: rgba(20, 55, 100, 0.6); }
.label-tag.label-scheduler { background: rgba(20, 55, 100, 0.6); }
.label-tag.label-cfg { background: rgba(90, 30, 30, 0.6); }
.label-tag.label-steps { background: rgba(90, 30, 30, 0.6); }
.label-tag.label-seed { background: rgba(40, 40, 40, 0.6); }
.label-tag.label-denoise { background: rgba(0, 70, 60, 0.6); }
.label-tag.label-upscale { background: rgba(90, 30, 55, 0.6); }
.label-tag.label-hiresPrompt { background: rgba(70, 30, 90, 0.6); }
.favorite-btn {
position: absolute;
top: 8px;
right: 8px;
background: rgba(0, 0, 0, 0.85);
color: #fff;
border: 2px solid #fff;
width: 28px;
height: 28px;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
opacity: 0;
transition: opacity 0.2s, background 0.2s;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
line-height: 1;
}
.favorite-btn.favorited {
background: #ffd700;
color: #000;
border-color: #ffd700;
opacity: 1;
}
.revise-btn {
position: absolute;
top: 50px;
right: 8px;
background: var(--accent);
color: #000;
border: none;
padding: 2px 2px;
border-radius: 4px;
font-weight: bold;
font-size: 10px;
cursor: pointer;
opacity: 0;
transition: opacity 0.2s;
z-index: 10;
}
.upscale-btn {
position: absolute;
top: 78px;
right: 8px;
background: rgba(100, 50, 200, 0.85);
color: #fff;
border: 2px solid #a070e0;
width: 28px;
height: 28px;
border-radius: 4px;
font-size: 14px;
cursor: pointer;
opacity: 0;
transition: opacity 0.2s;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
}
.upscale-btn:hover {
background: rgba(130, 70, 230, 0.95);
}
.reject-btn {
position: absolute;
top: 8px;
left: 8px;
background: var(--danger);
color: #fff;
border: none;
width: 22px;
height: 22px;
border-radius: 50%;
font-weight: bold;
font-size: 13px;
cursor: pointer;
opacity: 0;
transition: opacity 0.2s;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
}
.card:hover .revise-btn,
.card:hover .reject-btn,
.card:hover .favorite-btn,
.card:hover .upscale-btn,
.card:active .revise-btn,
.card:active .reject-btn,
.card:active .favorite-btn,
.card:active .upscale-btn {
opacity: 1;
}
@media (hover: none) and (pointer: coarse) {
.revise-btn,
.reject-btn,
.favorite-btn,
.upscale-btn {
opacity: 0.7;
}
.card:active .revise-btn,
.card:active .reject-btn,
.card:active .favorite-btn,
.card:active .upscale-btn {
opacity: 1;
}
.reject-btn {
width: 32px;
height: 32px;
font-size: 16px;
}
.favorite-btn {
width: 36px;
height: 36px;
font-size: 20px;
}
.revise-btn {
padding: 8px 12px;
font-size: 11px;
}
}
.info {
padding: 12px;
font-size: 10px;
line-height: 1.5;
color: #ccc;
}
.stat {
justify-content: space-between;
border-bottom: 1px solid #222;
padding: 3px 0;
}
.stat:last-child {
border-bottom: none;
}
.stat b {
color: #888;
font-weight: 600;
margin-right: 5px;
}
.stat span {
text-align: left;
color: #eee;
}
/* JSON BARS - HORIZONTAL LAYOUT */
.json-container {
display: flex;
flex-direction: column;
z-index: 20;
position: relative;
background: var(--bg);
min-height: 25px;
border-top: 1px solid #333;
}
/* Button row at top */
.json-container > .json-view-btn {
display: inline-block;
}
.json-view-btn {
flex: 1;
background: #1a1a1a;
color: #999;
border: 1px solid #333;
border-bottom: none;
padding: 8px 12px;
font-size: 11px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
text-align: center;
font-family: 'Segoe UI', sans-serif;
}
.json-view-btn:hover {
background: #252525;
color: var(--accent);
border-color: var(--accent);
}
.json-view-btn:active {
background: #2a2a2a;
transform: scale(0.98);
}
#json-btn-good:hover {
color: #6a9955;
border-color: #6a9955;
}
#json-btn-favorite:hover {
color: #ffd700;
border-color: #ffd700;
}
#json-btn-bad:hover {
color: #ff6b6b;
border-color: #ff6b6b;
}
.json-bar {
flex: 1;
padding: 10px;
font-family: 'Consolas', monospace;
font-size: 11px;
overflow: auto;
white-space: pre-wrap;
cursor: text;
border-top: 1px solid #333;
margin-top: -1px;
max-height: 300px;
}
.json-bar:last-child {
border-right: none;
}
#json-bar-good {
background: #080808;
color: #6a9955;
}
#json-bar-favorite {
background: #1a1200;
color: #ffd700;
}
#json-bar-bad {
background: #150505;
color: #ff6b6b;
}
/* MODAL */
#modal {
display: none;
flex-direction: column;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.95);
z-index: 1000;
padding: 20px;
}
.modal-close-x {
position: absolute;
top: 12px;
right: 16px;
background: #cc3333;
color: white;
border: none;
border-radius: 4px;
width: 32px;
height: 32px;
font-size: 20px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
z-index: 1001;
line-height: 1;
}
.modal-close-x:hover {
background: #ee4444;
}
.modal-main {
display: flex;
gap: 20px;
height: 60%;
width: 100%;
min-height: 0;
}
.preview {
flex: 2;
display: flex;
justify-content: center;
background: #000;
border-radius: 8px;
overflow: hidden;
}
.preview img {
height: 100%;
width: auto;
object-fit: contain;
}
.controls {
flex: 1;
background: #111;
padding: 20px;
border-radius: 8px;
display: flex;
flex-direction: column;
gap: 10px;
overflow-y: auto;
}
.field {
display: flex;
flex-direction: column;
gap: 4px;
}
.field label {
color: #888;
font-size: 10px;
font-weight: bold;
text-transform: uppercase;
}
.field input {
background: #000;
border: 1px solid #333;
color: #fff;
padding: 8px;
font-size: 14px;
}
.reel-wrap {
margin-top: 20px;
height: 30%;
display: flex;
flex-direction: column;
gap: 5px;
}
.reel {
display: flex;
gap: 10px;
overflow-x: auto;
padding-bottom: 10px;
height: 100%;
align-items: center;
}
.reel img {
height: 90%;
border-radius: 6px;
cursor: pointer;
border: 2px solid transparent;
transition: transform 0.2s, border-color 0.2s;
}
.reel img:hover {
transform: scale(1.05);
border-color: var(--accent);
}
.sort-select {
background: #1a1a1a;
color: #ccc;
border: 1px solid #333;
padding: 1px 1px;
font-size: 10px;
border-radius: 3px;
cursor: pointer;
font-weight: 600;
width: 70px;
}
.sort-select option {
font-size: 13px;
padding: 1px;
}
.sort-select:focus {
border-color: var(--accent);
outline: none;
}
.sort-select:hover {
background: #2a2a2a;
}
@media (max-width: 800px) {
.modal-main {
flex-direction: column;
height: auto;
}
.preview {
height: 300px;
flex: none;
}
.filters-popup {
width: 95%;
max-height: 90vh;
}
.filter-row {
flex-direction: column;
gap: 8px;
}
.filter-row .filter-label {
min-width: auto;
}
}
/* MOBILE NAVIGATION BUTTONS */
.mobile-nav-btn {
display: none; /* Hidden by default */
position: fixed;
bottom: 80px; /* Above the JSON bars */
width: 100px;
height: 100px;
border-radius: 50%;
background: rgba(0, 209, 178, 0.9);
color: #000;
border: 2px solid #00d1b2;
font-size: 24px;
font-weight: bold;
cursor: pointer;
z-index: 500;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
transition: all 0.2s;
-webkit-tap-highlight-color: transparent;
user-select: none;
}
.mobile-nav-btn:active {
transform: scale(0.95);
background: rgba(0, 209, 178, 1);
}
.mobile-nav-up {
left: 16px;
}
.mobile-nav-down {
right: 16px;
}
/* Show mobile nav buttons only on touch devices */
@media (hover: none) and (pointer: coarse) {
.mobile-nav-btn {
display: flex;
align-items: center;
justify-content: center;
}
}
.error-alert-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.8);
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn 0.15s ease;
}
.error-alert-popup {
background: #2a2a2a;
border: 2px solid #f44;
border-radius: 8px;
padding: 20px;
max-width: 420px;
margin: 16px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.error-alert-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
}
.error-alert-icon {
font-size: 28px;
flex-shrink: 0;
}
.error-alert-header h3 {
margin: 0;
color: #f44;
font-size: 18px;
}
.error-alert-message {
color: #ddd;
margin: 0 0 12px;
font-size: 14px;
line-height: 1.5;
}
.error-alert-details {
margin-bottom: 16px;
background: rgba(0, 0, 0, 0.3);
border-radius: 4px;
}
.error-alert-details summary {
padding: 8px 12px;
cursor: pointer;
color: #999;
font-size: 12px;
user-select: none;
}
.error-alert-details summary:hover {
background: rgba(255, 255, 255, 0.05);
}
.error-alert-details pre {
margin: 0;
padding: 12px;
color: #f88;
font-size: 11px;
font-family: monospace;
line-height: 1.4;
overflow-x: auto;
border-top: 1px solid rgba(255, 68, 68, 0.2);
}
.error-alert-button {
width: 100%;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
font-weight: 600;
background: #f44;
color: #fff;
transition: background 0.15s ease;
}
.error-alert-button:hover {
background: #f55;
}
.error-alert-button:active {
background: #e33;
}
@keyframes fadeIn {
from { opacity: 0; }
}
/* Search Filter Section */
.search-filter-container {
margin-top: 12px;
}
.search-filter-row {
display: flex;
gap: 8px;
align-items: center;
margin-bottom: 12px;
}
.search-filter-select {
background: #1a1a1a;
border: 1px solid #333;
color: #ccc;
padding: 6px 10px;
border-radius: 4px;
font-size: 11px;
min-width: 150px;
cursor: pointer;
}
.search-filter-select:focus {
border-color: var(--accent);
outline: none;
}
.search-filter-input {
flex: 1;
background: #1a1a1a;
border: 1px solid #333;
color: #ccc;
padding: 6px 10px;
border-radius: 4px;
font-size: 11px;
}
.search-filter-input:focus {
border-color: var(--accent);
outline: none;
}
.search-filter-add-btn {
background: var(--accent);
color: #000;
border: none;
padding: 6px 16px;
border-radius: 4px;
font-size: 10px;
font-weight: 700;
cursor: pointer;
transition: 0.2s;
}
.search-filter-add-btn:hover {
background: #00f0c8;
transform: translateY(-1px);
}
.search-filter-add-btn:active {
transform: translateY(0);
}
.active-search-filters {
display: flex;
flex-wrap: wrap;
gap: 6px;
min-height: 24px;
}
.search-filter-tag {
background: #1a1a1a;
border: 1px solid #444;
border-radius: 4px;
padding: 4px 8px;
font-size: 10px;
display: flex;
align-items: center;
gap: 8px;
color: #ccc;
}
.search-filter-tag .filter-type {
font-weight: 700;
padding: 2px 6px;
border-radius: 3px;
font-size: 9px;
}
.search-filter-tag .filter-type.model {
background: var(--accent-model);
color: #fff;
}
.search-filter-tag .filter-type.positive {
background: var(--accent-positive);
color: #fff;
}
.search-filter-tag .filter-type.negative {
background: var(--accent-negative);
color: #fff;
}
.search-filter-tag .filter-type.sampler {
background: var(--accent);
color: #000;
}
.search-filter-tag .filter-type.scheduler {
background: var(--accent-sch);
color: #000;
}
.search-filter-tag .filter-type.lora {
background: var(--accent-lora);
color: #000;
}
.search-filter-tag .filter-term {
color: #fff;
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.search-filter-tag .remove-btn {
background: none;
border: none;
color: #ff3860;
cursor: pointer;
padding: 0;
font-size: 14px;
line-height: 1;
font-weight: 700;
transition: 0.2s;
}
.search-filter-tag .remove-btn:hover {
color: #ff5c7c;
transform: scale(1.2);
}
#header {
background: #111;
border-bottom: 1px solid #333;
padding: 0 6px;
height: 36px;
display: flex;
gap: 4px;
font-size: 10px;
align-items: center;
flex-wrap: nowrap;
overflow: visible; /* CHANGED: was 'hidden' */
z-index: 100;
box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
/* --- SETTINGS PANEL (Cog Menu) --- */
.cog-menu-panel {
position: fixed;
top: 40px;
right: 10px;
background: #111;
border: 1px solid #333;
border-radius: 8px;
width: 340px;
max-height: calc(100vh - 60px);
overflow-y: auto;
z-index: 1001;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}
.cog-panel-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 14px;
border-bottom: 1px solid #333;
background: #0a0a0a;
position: sticky;
top: 0;
z-index: 10;
border-radius: 8px 8px 0 0;
}
.cog-panel-content {
padding: 12px 14px;
display: flex;
flex-direction: column;
gap: 0;
}
.cog-panel-section {
padding: 12px 0;
border-bottom: 1px solid #333;
}
.cog-panel-section:first-child {
padding-top: 0;
}
.cog-panel-section:last-child {
border-bottom: none;
padding-bottom: 0;
}
.cog-panel-section-title {
font-size: 10px;
font-weight: 700;
color: #666;
text-transform: uppercase;
margin-bottom: 10px;
letter-spacing: 0.5px;
}
@media (max-width: 800px) {
.cog-menu-panel {
width: 90%;
right: 5%;
left: 5%;
}
}
.cog-menu-item {
display: flex;
align-items: center;
gap: 6px;
padding: 2px 0;
}
.cog-menu-item .meta-label {
min-width: 38px;
}
.cog-menu-item input {
background: #1a1a1a;
border: 1px solid #333;
color: #ccc;
padding: 0 4px;
border-radius: 3px;
height: 22px;
font-size: 10px;
text-align: center;
flex: 1;
}
.cog-menu-item input:focus {
border-color: var(--accent);
outline: none;
}
/* --- SORT POPUP STYLES --- */
.sort-container {
position: relative;
display: inline-block;
}
.sort-btn {
background: #1a1a1a;
color: #ccc;
border: 1px solid #333;
padding: 2px 10px;
height: 22px;
font-size: 10px;
border-radius: 3px;
cursor: pointer;
font-weight: 600;
display: flex;
align-items: center;
gap: 6px;
transition: all 0.2s;
}
.sort-btn:hover, .sort-btn.active {
background: #2a2a2a;
border-color: var(--accent);
color: #fff;
}
.sort-popup-panel {
position: absolute;
top: 100%;
right: 0; /* Align to right edge of the button */
/* left: 0; REMOVED to prevent overflow */
background: #111;
border: 1px solid #444;
border-radius: 4px;
z-index: 2000;
display: flex;
box-shadow: 0 4px 15px rgba(0,0,0,0.8);
min-width: 280px;
overflow: hidden;
}
.sort-col {
flex: 1;
display: flex;
flex-direction: column;
border-right: 1px solid #333;
}
.sort-col:last-child {
border-right: none;
}
.sort-col-header {
background: #0a0a0a;
padding: 6px 10px;
font-size: 9px;
font-weight: 700;
color: #666;
text-transform: uppercase;
border-bottom: 1px solid #333;
letter-spacing: 0.5px;
text-align: center;
}
.sort-option {
padding: 6px 12px;
font-size: 11px;
color: #aaa;
cursor: pointer;
transition: background 0.1s;
display: flex;
justify-content: space-between;
align-items: center;
}
.sort-option:hover {
background: #222;
color: #fff;
}
.sort-option.selected {
background: rgba(0, 209, 178, 0.15); /* Tint of accent */
color: var(--accent);
font-weight: 700;
}
.sort-option.secondary-selected {
background: rgba(62, 142, 208, 0.15); /* Tint of accent-sch */
color: var(--accent-sch);
font-weight: 700;
}
/* Tiny indicator dot for selected items */
.sort-option.selected::after {
content: '●';
font-size: 8px;
}
/* ========================================
TOP-LEVEL FILTER BUTTONS STYLING
Add this to your report.css file
======================================== */
/* Top-level filter buttons with color transitions */
.top-filter-btn {
flex: 1;
transition: all 0.2s ease;
color: #ffffff;
font-weight: 900;
}
/* Favorites Button */
#top-filter-favorites {
background: #663300;
border: 2px solid #663300;
}
#top-filter-favorites.active {
background: #ff9500;
border: 2px solid #d37b00;
}
/* Non-Favorited Button */
#top-filter-nonfavorited {
background: #1a3d66;
border: 2px solid #1a3d66;
}
#top-filter-nonfavorited.active {
background: #4a9eff;
border: 2px solid #295e9b;
}
/* Rejected Button */
#top-filter-rejected {
background: #222;
border: 2px solid #444;
}
#top-filter-rejected.active {
background: #666;
border: 2px solid #750000;
}
/* ============================================================
ANALYTICS MODAL
============================================================ */
.analytics-modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.82);
z-index: 10001;
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn 0.15s ease;
}
.analytics-modal-popup {
background: #111;
border: 1px solid #333;
border-radius: 8px;
width: 96vw;
max-width: none;
height: 94vh;
max-height: 94vh;
display: flex;
flex-direction: column;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
overflow: hidden;
}
.analytics-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
border-bottom: 2px solid #333;
background: #0a0a0a;
flex-shrink: 0;
}
.analytics-modal-title {
font-size: 13px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.analytics-summary {
display: flex;
gap: 10px;
align-items: center;
padding: 8px 16px;
font-size: 10px;
color: #888;
background: #0d0d0d;
border-bottom: 1px solid #222;
flex-shrink: 0;
flex-wrap: wrap;
}
.analytics-modal-body {
overflow-y: auto;
flex: 1;
padding: 0;
}
.analytics-table {
width: 100%;
border-collapse: collapse;
font-size: 11px;
}
.analytics-th {
background: #0a0a0a;
color: #666;
font-size: 9px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 8px 12px;
border-bottom: 1px solid #333;
position: sticky;
top: 0;
z-index: 5;
text-align: left;
}
.analytics-row {
border-bottom: 1px solid #1a1a1a;
transition: background 0.1s;
}
.analytics-row:hover {
background: #1a1a1a;
}
.analytics-rank {
padding: 6px 12px;
color: #555;
font-size: 10px;
width: 32px;
text-align: right;
}
.analytics-count {
padding: 6px 12px;
font-weight: 700;
font-size: 12px;
width: 140px;
text-align: right;
font-family: 'Consolas', monospace;
white-space: nowrap;
}
.analytics-name {
padding: 6px 12px;
color: #ddd;
word-break: break-all;
font-family: 'Consolas', monospace;
font-size: 10px;
line-height: 1.4;
}
@media (max-width: 800px) {
.analytics-modal-popup {
width: 98vw;
height: 96vh;
max-height: 96vh;
}
.analytics-count {
font-size: 11px;
}
}