.dialog-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 10000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); } .dialog-overlay.closing { animation: dialogFadeOut 0.2s ease-in; } .sage-overlay-parent { position: relative; } .dialog-container { background: #2a2a2a; border: 1px solid #555; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7); width: var(--dialog-width, auto); height: var(--dialog-height, auto); max-width: 90%; max-height: 90%; overflow: auto; animation: dialogFadeIn 0.2s ease-out; } .dialog-header { padding: 15px 20px; border-bottom: 1px solid #444; display: flex; justify-content: space-between; align-items: center; background: #353535; border-radius: 8px 8px 0 0; } .dialog-title { color: #fff; font-size: 16px; font-weight: bold; margin: 0; } .dialog-close { background: none; border: none; color: #999; font-size: 20px; cursor: pointer; padding: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 4px; } .dialog-close:hover { background: #555; color: #fff; } .dialog-content { padding: 20px; color: #fff; } .dialog-content--relative { position: relative; } .hidden { display: none !important; } .dialog-footer-button:disabled { opacity: 0.5; cursor: not-allowed; } .dialog-footer { padding: 15px 20px; border-top: 1px solid #444; display: flex; justify-content: flex-end; gap: 10px; background: #353535; border-radius: 0 0 8px 8px; } .dialog-footer-button { padding: 8px 16px; background: var(--dialog-footer-button-bg, #007acc); color: var(--dialog-footer-button-color, white); border: none; border-radius: 4px; cursor: pointer; font-size: 14px; } .dialog-footer-button--secondary { --dialog-footer-button-bg: #666; } .dialog-footer-button--danger { background: #d32f2f; } .dialog-footer-button--success { background: #4CAF50; } .dialog-footer-button:hover { background: #005a9e; } .dialog-message { margin: 0; font-size: 14px; line-height: 1.5; } .dialog-input { width: 100%; padding: 8px; margin-top: 10px; background: #333; color: #fff; border: 1px solid #555; border-radius: 4px; font-size: 14px; box-sizing: border-box; } .dialog-image-preview { max-width: 100%; max-height: 70vh; object-fit: contain; display: block; margin: 0 auto; } .markdown-overlay, .image-overlay, .video-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #1e1e1e; border: 1px solid #3e3e3e; border-radius: 6px; padding: 8px; box-sizing: border-box; z-index: 1; overflow: auto; } .image-overlay, .video-overlay { display: flex; align-items: center; justify-content: center; } .markdown-overlay { display: block; } .display-overlay-media { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; margin: auto; } .display-error-container { color: #ff6b6b; text-align: center; padding: 20px; } .display-error-heading { margin-bottom: 16px; font-size: 18px; color: #ff6b6b; } .display-error-text { font-size: 14px; margin-bottom: 12px; opacity: 0.85; } .display-error-box { background: #2d2d2d; border-radius: 8px; padding: 16px; margin: 16px 0; text-align: left; } .display-error-item { margin: 4px 0; color: #ccc; } .display-error-success { color: #4fc3f7; font-weight: bold; } .display-error-warning { color: #ff6b6b; font-weight: bold; } .dialog-metadata-content { font-family: monospace; font-size: 12px; line-height: 1.4; white-space: pre-wrap; max-height: 60vh; overflow-y: auto; background: #1e1e1e; padding: 15px; border-radius: 4px; border: 1px solid #444; } .dialog-content-wide { min-width: 800px; max-width: 1000px; min-height: 500px; } .dialog-panel { margin-bottom: 20px; padding: 15px; background: #1e1e1e; border-radius: 6px; border: 1px solid #444; } .dialog-info-text { color: #ccc; margin-bottom: 10px; font-size: 13px; } .dialog-info-line { margin-bottom: 8px; } .dialog-checkbox-row { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; } .dialog-checkbox-row input[type="checkbox"] { cursor: pointer; } .dialog-checkbox-label { color: #ccc; font-size: 13px; cursor: pointer; user-select: none; } .dialog-progress-panel { margin-top: 15px; padding: 12px; background: #2a2a2a; border-radius: 4px; border: 1px solid #555; } .dialog-progress-status, .dialog-progress-overlay-text { color: #4CAF50; margin-bottom: 8px; font-size: 14px; } .dialog-progress-status.error { color: #f44336; } .dialog-progress-bar, .dialog-progress-overlay-bar { height: 20px; background: #333; border-radius: 10px; overflow: hidden; border: 1px solid #555; position: relative; } .dialog-progress-overlay-bar { width: 300px; } .dialog-progress-fill, .dialog-progress-overlay-fill { width: 0%; height: 100%; background: linear-gradient(90deg, #4CAF50, #66BB6A); transition: width 0.3s ease; } .dialog-progress-fill.error { background: #f44336; } .dialog-progress-text { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 11px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); pointer-events: none; } .dialog-results-section { display: none; } .dialog-results-summary { padding: 15px; background: #1e1e1e; border-radius: 6px; border: 1px solid #444; margin-bottom: 20px; } .dialog-summary-title { color: #ff9800; font-size: 16px; font-weight: bold; margin-bottom: 10px; } .dialog-summary-message { color: #ccc; font-size: 13px; } .dialog-summary-tip { color: #888; font-size: 12px; margin-top: 8px; font-style: italic; } .dialog-warning-text { color: #ff9800; } .dialog-no-preview { color: #888; font-size: 12px; } .dialog-error-message { color: #f44336; padding: 20px; text-align: center; } .dialog-results-grid { max-height: 450px; overflow-y: auto; padding: 10px; background: #2a2a2a; border-radius: 6px; border: 1px solid #444; } .dialog-group { margin-bottom: 20px; padding: 15px; background: #1e1e1e; border-radius: 6px; border: 1px solid #555; } .dialog-group-header { font-weight: bold; color: #fff; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #444; display: flex; justify-content: space-between; align-items: center; } .dialog-select-all-btn { padding: 4px 12px; background: #666; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 12px; } .dialog-select-all-btn:hover { background: #555; } .dialog-image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .duplicate-image-item { background: #2a2a2a; border: 2px solid #555; border-radius: 6px; padding: 8px; position: relative; display: flex; flex-direction: column; } .duplicate-image-item.duplicate-original { border-color: #4CAF50; } .duplicate-image-item.duplicate-selected { border-color: #d32f2f; } .duplicate-thumbnail { width: 100%; height: 120px; background: #1e1e1e; border-radius: 4px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; } .duplicate-thumbnail img { max-width: 100%; max-height: 100%; object-fit: contain; } .duplicate-info { color: #ccc; font-size: 11px; margin-bottom: 8px; } .duplicate-info-title { font-weight: bold; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .duplicate-info-subtitle { color: #888; } .duplicate-checkbox-row { display: flex; align-items: center; gap: 6px; margin-top: auto; } .duplicate-checkbox-row input[type="checkbox"] { cursor: pointer; margin: 0; } .duplicate-checkbox-label { font-size: 11px; user-select: none; } .duplicate-checkbox-label.keep { color: #4CAF50; cursor: default; } .duplicate-checkbox-label.delete { color: #fff; cursor: pointer; } .dialog-progress-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; flex-direction: column; z-index: 1000; } .dialog-loading-section { text-align: center; padding: 40px; color: #888; } .dialog-loading-title { font-size: 16px; margin-bottom: 10px; } .dialog-loading-subtitle { font-size: 12px; } .scan-dialog-content { min-width: 550px; max-width: 600px; display: flex; flex-direction: column; gap: 16px; } .scan-options { display: flex; flex-direction: column; gap: 16px; } .option-group { display: flex; flex-direction: column; gap: 8px; } .option-label { color: var(--input-text); font-weight: 500; } .folder-list { border: 1px solid var(--border-color); border-radius: 4px; max-height: 150px; overflow-y: auto; background: var(--comfy-input-bg); } .folder-summary { display: none; padding: 8px 12px; background: var(--comfy-menu-bg); border: 1px solid var(--border-color); border-radius: 4px; } .help-text { display: block; margin-top: 4px; margin-left: 24px; color: var(--descrip-text); font-size: 12px; line-height: 1.4; } .folder-summary-text { margin: 0; font-weight: 500; color: var(--input-text); font-size: 12px; } .scan-progress { border: 1px solid var(--border-color); border-radius: 6px; padding: 16px; background: var(--comfy-input-bg); } .progress-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .progress-stats { flex: 1; } .stats-text { color: var(--descrip-text); font-size: 13px; } .progress-time { color: var(--descrip-text); font-size: 14px; font-family: monospace; } .progress-bar-container { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .progress-bar { flex: 1; height: 20px; background: var(--comfy-menu-bg, #2a2a2a); border: 1px solid var(--border-color, #555); border-radius: 10px; overflow: hidden; position: relative; } .progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary-color, #007acc), var(--primary-color-hover, #005a9e)); transition: width 0.3s ease; width: 0%; } .progress-percentage { min-width: 45px; text-align: right; color: var(--input-text); font-family: monospace; font-size: 13px; } .scan-log { max-height: 120px; overflow-y: auto; font-family: monospace; font-size: 12px; line-height: 1.4; background: var(--comfy-menu-bg); border: 1px solid var(--border-color); border-radius: 4px; padding: 8px; } .log-entry { margin-bottom: 2px; color: var(--descrip-text); } .log-entry.info { color: var(--info-text, #2196F3); } .log-entry.success { color: var(--success-text, #4CAF50); } .log-entry.error { color: var(--error-text, #f44336); } .folder-item { padding: 8px 12px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 8px; } .folder-name { flex: 1; color: var(--input-text); font-family: monospace; font-size: 13px; cursor: pointer; } .folder-count { color: var(--descrip-text); font-size: 12px; } .loading-message { padding: 20px; text-align: center; color: var(--descrip-text); } .loading-message.error { color: var(--error-text, #f44336); } .settings-dialog-content { display: flex; flex-direction: column; gap: 20px; } .settings-section { padding: 15px; background: #1e1e1e; border-radius: 6px; border: 1px solid #444; } .settings-section-title { margin: 0 0 15px 0; color: #4CAF50; font-size: 16px; font-weight: 600; } .settings-divider { height: 1px; background: #444; margin: 15px 0; } .settings-label { display: block; color: #ccc; font-size: 14px; margin-bottom: 8px; font-weight: 500; } .settings-description { color: #888; font-size: 12px; margin-bottom: 10px; font-style: italic; } .settings-group { margin-bottom: 15px; } .settings-item-spacing { margin-bottom: 5px; } .settings-input-label { display: block; color: #ccc; font-size: 13px; margin-bottom: 5px; } .settings-input-container { margin-bottom: 10px; } .settings-input { width: 100%; padding: 8px; background: #2a2a2a; border: 1px solid #555; border-radius: 4px; color: #ccc; font-size: 13px; box-sizing: border-box; } .settings-input--small { width: 100px; } .settings-radio-group { gap: 20px; margin-left: 10px; } .settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; align-items: center; } .settings-indent { margin-left: 20px; } .settings-indent-large { margin-top: 10px; }