@import url('../shared/fonts.css'); @import url('../shared/colors.css'); @import url('../shared/base.css'); @import url('../shared/layout.css'); @import url('../shared/word-list.css'); @import url('../shared/ui-components.css'); body { width: 380px; min-height: 500px; max-height: 600px; overflow: hidden; display: flex; flex-direction: column; } /* Loading Overlay */ .loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.2s ease-out; } .loading-overlay.hidden { opacity: 0; pointer-events: none; } .loading-spinner { width: 32px; height: 32px; border: 3px solid var(--input-border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Main Container */ .popup-container { display: flex; flex-direction: column; flex: 1; background: var(--bg-color); overflow: hidden; min-height: 0; } /* Popup header uses shared .app-header; override padding only */ .header.app-header { padding: 6px 12px; } .header-content.app-header-content { gap: 6px; } .header-title.app-title { font-size: var(--text-base); letter-spacing: var(--tracking-tight); } .header-settings-btn, .header-power-toggle { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; min-width: 28px; min-height: 28px; padding: 0; line-height: 0; flex-shrink: 0; } .header-settings-btn i { font-size: 14px; display: flex; align-items: center; justify-content: center; } /* Header power toggle (on/off) */ .header-power-toggle { cursor: pointer; border-radius: 6px; } .header-power-input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; pointer-events: none; } .power-icon-wrapper { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; line-height: 0; color: var(--text-color); opacity: 0.4; transition: color 0.2s, opacity 0.2s; } .power-icon-wrapper i { font-size: 14px; display: flex; align-items: center; justify-content: center; width: 1em; height: 1em; line-height: 1; /* Compensate for Font Awesome power-off glyph optical offset */ transform: translate(1px, 1px); margin-right: 4px; } .power-icon-wrapper:hover { opacity: 0.7; } .header-power-toggle .header-power-input:checked ~ .power-icon-wrapper { color: var(--accent); opacity: 1; } .header-power-toggle .header-power-input:checked ~ .power-icon-wrapper:hover { opacity: 1; } /* Tabs */ .tabs { display: flex; align-items: center; gap: 2px; padding: 4px 6px; border-bottom: 1px solid var(--input-border); background: transparent; flex-shrink: 0; min-width: 0; } .tab-button { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 5px 4px; font-size: 11px; font-weight: 500; color: var(--tab-inactive-color); background: transparent; border: none; border-radius: 5px; cursor: pointer; transition: all 0.2s; } .tab-button:hover { color: var(--text-color); } .tab-button.active { background: var(--tab-active-bg); color: var(--text-color); } .tab-button i { font-size: 11px; flex-shrink: 0; opacity: 0.9; } .tab-button.active i { opacity: 1; } .tab-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } /* Tab Content */ .tab-content { display: none; flex: 1; overflow: hidden; } .tab-content.active { display: flex; flex-direction: column; } .tab-inner { flex: 1; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; min-height: 0; } /* Lists Tab Styles */ .list-selector-section { display: flex; flex-direction: column; gap: 6px; } .list-selector-row { display: flex; gap: 6px; } .list-dropdown-wrapper { flex: 1; position: relative; } .list-dropdown-button { width: 100%; height: 32px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 6px; cursor: pointer; transition: all 0.2s; font-size: var(--text-md); color: var(--text-color); } .list-dropdown-button:hover { background: var(--section-bg); } .list-dropdown-content { display: flex; align-items: center; gap: 6px; } .list-color-indicator { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; } .list-dropdown-text { font-size: var(--text-base); color: var(--text-color); } .list-dropdown-button i { font-size: 16px; color: var(--text-color); opacity: 0.6; } .list-dropdown-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 8px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); z-index: 100; max-height: 200px; overflow-y: auto; } .list-dropdown-menu.open { display: block; } .list-dropdown-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; transition: background 0.2s; } .list-dropdown-item:hover { background: var(--section-bg); } .list-dropdown-item.selected { background: var(--section-bg); } .list-dropdown-item-check { margin-left: auto; color: var(--accent); font-size: 16px; } .icon-button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 6px; cursor: pointer; transition: all 0.2s; flex-shrink: 0; } .icon-button:hover { background: var(--section-bg); } .icon-button.danger:hover { background: rgba(239, 68, 68, 0.1); color: var(--danger); border-color: rgba(239, 68, 68, 0.5); } .icon-button i { font-size: 14px; color: var(--text-color); } .icon-button.danger i { color: var(--text-color); } .icon-button.danger:hover i { color: var(--danger); } .list-export-import-row { display: flex; gap: 8px; align-items: center; } .list-export-import-btn { flex: 1; height: 28px; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 6px; cursor: pointer; transition: all 0.2s; font-size: var(--text-base); font-weight: 500; color: var(--text-color); } .list-export-import-btn:hover { background: var(--section-bg); } .list-export-import-btn i { font-size: 14px; } /* Color Pickers */ .color-pickers-row { display: flex; flex-direction: row; gap: 8px; min-width: 0; } .color-picker-group { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; } .color-picker-group .color-picker-label { flex-shrink: 0; } .color-picker-label { font-size: var(--text-xs); font-weight: 500; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-color); opacity: 0.6; } .color-picker-input-group { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; } .color-picker-swatch { width: 32px; height: 32px; border-radius: 5px; border: 2px solid var(--input-border); cursor: pointer; background: transparent; padding: 0; } .color-picker-swatch::-webkit-color-swatch-wrapper { padding: 0; border-radius: 4px; } .color-picker-swatch::-webkit-color-swatch { border: none; border-radius: 4px; } .color-picker-text { flex: 1; min-width: 0; height: 32px; padding: 0 8px; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 6px; font-size: var(--text-sm); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-color); } .color-picker-text:focus { outline: none; border-color: var(--accent); } /* Preview */ .preview-section { display: flex; flex-direction: column; gap: 2px; } .preview-label { font-size: var(--text-xs); font-weight: 500; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-color); opacity: 0.6; } .preview-box { padding: 6px 10px; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 6px; } .preview-text { font-size: var(--text-base); color: var(--text-color); line-height: var(--leading-relaxed); } .preview-highlight { padding: 2px 4px; border-radius: 3px; transition: all 0.2s ease; } /* Enable Toggle */ .enable-toggle-section { padding: 6px 10px; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 6px; } .enable-toggle-content { display: flex; align-items: center; justify-content: space-between; } .enable-toggle-text { display: flex; flex-direction: column; gap: 2px; } .enable-toggle-title { font-size: var(--text-base); font-weight: 500; color: var(--text-color); } .enable-toggle-subtitle { font-size: var(--text-xs); color: var(--text-color); opacity: 0.6; } /* Apply button uses shared .btn-primary-subdued */ .apply-button { width: 100%; height: 32px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; cursor: pointer; font-size: var(--text-base); font-weight: 600; letter-spacing: var(--tracking-tight); transition: all 0.2s; } .apply-button i { font-size: 14px; } /* Words Tab Styles – layout only; shared word-list.css does the rest */ .add-words-section { display: flex; flex-direction: column; gap: 4px; } .section-label { display: flex; align-items: center; gap: 4px; font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-color); opacity: 0.7; } .section-label i { font-size: 12px; } .word-count-badge { color: var(--accent); opacity: 1; } .add-words-button { width: 100%; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; font-size: var(--text-md); font-weight: 600; transition: all 0.2s; } .add-words-button:disabled { opacity: 0.5; cursor: not-allowed; } .add-words-textarea { resize: none; line-height: var(--leading-relaxed); } .add-words-textarea::placeholder { font-size: 12px; } .word-list-section { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; } .word-list-header { display: flex; align-items: center; justify-content: space-between; } .word-action-btn:disabled { opacity: 0.5; cursor: not-allowed; } .word-search-wrapper { position: relative; } .word-list-container { max-height: 200px; } .word-list-hint { font-size: 12px; color: var(--text-color); opacity: 0.6; text-align: center; } /* Pagination (Words tab) */ .pagination-container { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px; padding: 6px 8px; background: var(--section-bg); border: 1px solid var(--input-border); border-radius: 8px; flex-shrink: 0; flex-wrap: wrap; font-size: 11px; } .pagination-info { font-size: 11px; opacity: 0.8; white-space: nowrap; } .pagination-controls { display: flex; align-items: center; gap: 4px; } .pagination-btn { background: var(--input-bg); border: 1px solid var(--input-border); color: var(--text-color); border-radius: 6px; padding: 3px 5px; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; font-size: 11px; } .pagination-btn:hover:not(:disabled) { background: var(--section-bg); border-color: var(--accent); } .pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; } .pagination-pages { display: flex; align-items: center; padding: 0 4px; } .pagination-pages .page-info { font-size: 11px; opacity: 0.9; font-weight: 500; } /* Word item 3-dot menu dropdown */ .word-item-menu-dropdown { display: none; position: fixed; min-width: 160px; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 8px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15); z-index: 200; overflow: hidden; } .word-item-menu-dropdown.open { display: block; } .word-item-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; border: none; background: none; font-size: 13px; color: var(--text-color); cursor: pointer; text-align: left; transition: background 0.15s; } .word-item-menu-item:hover:not(.disabled) { background: var(--section-bg); } .word-item-menu-item.disabled { opacity: 0.6; cursor: default; } .word-item-menu-item.danger { color: var(--danger); } .word-item-menu-item.danger:hover:not(.disabled) { background: rgba(239, 68, 68, 0.1); } .word-item-menu-item i { font-size: 12px; opacity: 0.8; flex-shrink: 0; } .word-item-menu-item .list-color-indicator { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } /* Empty State */ .empty-state { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; } .empty-state p { font-size: 14px; color: var(--text-color); opacity: 0.6; } /* Page Highlights Tab */ .page-highlights-section { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; } .page-highlights-header-row { display: flex; align-items: center; gap: 8px; flex-shrink: 0; } .page-highlights-total-label { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-color); opacity: 0.7; flex-shrink: 0; } .page-highlights-total-count { flex: 1; font-size: var(--text-base); font-weight: 600; color: var(--accent); text-align: right; } .page-highlights-controls { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; } .page-highlights-group-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 8px 10px; margin: 0 -2px; border-radius: 6px; font-size: var(--text-sm); color: var(--text-color); background: var(--input-bg); border: 1px solid var(--input-border); transition: background 0.2s, border-color 0.2s; } .page-highlights-group-toggle:hover { background: var(--section-bg); } .page-highlights-group-toggle .switch-wrapper { flex-shrink: 0; } .page-highlights-group-label { flex: 1; font-weight: 500; user-select: none; } .page-highlights-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .page-highlights-filter-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: var(--text-xs); border-radius: 6px; cursor: pointer; background: var(--input-bg); border: 1px solid var(--input-border); color: var(--text-color); transition: all 0.2s; } .page-highlights-filter-chip:hover { background: var(--section-bg); } .page-highlights-filter-chip.active { border-color: var(--list-color, var(--accent)); background: color-mix(in srgb, var(--list-color, var(--accent)) 14%, var(--input-bg)); color: var(--text-color); } .page-highlights-filter-chip .filter-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; } .page-highlights-list { flex: 1; overflow-y: auto; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 6px; min-height: 0; } .page-highlights-empty { padding: 16px; text-align: center; font-size: 14px; color: var(--text-color); opacity: 0.6; } .page-highlights-group-section { border-bottom: 1px solid var(--input-border); } .page-highlights-group-section:last-child { border-bottom: none; } .page-highlights-group-header { display: flex; align-items: center; gap: 6px; padding: 6px 12px; cursor: pointer; font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-color); opacity: 0.7; background: var(--section-bg); transition: background 0.2s; } .page-highlights-group-header:hover { opacity: 0.9; } .page-highlights-group-header i { font-size: 10px; transition: transform 0.2s; } .page-highlights-group-section.collapsed .page-highlights-group-header i { transform: rotate(-90deg); } .page-highlights-group-header .group-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .page-highlight-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 12px 6px 14px; border-bottom: 1px solid var(--input-border); cursor: pointer; transition: all 0.2s; border-left: 3px solid transparent; background: var(--input-bg); } .page-highlight-item:last-child { border-bottom: none; } .page-highlight-item:hover { background: var(--section-bg); } .page-highlight-item[style*="--item-tint"] { background: color-mix(in srgb, var(--item-tint) 4%, var(--input-bg)); } .page-highlight-word { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; } .page-highlight-preview { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; font-size: var(--text-base); font-weight: 500; color: var(--text-color); } .page-highlight-preview .preview-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; } .page-highlight-list-tag { font-size: var(--text-xs); color: var(--text-color); opacity: 0.5; font-weight: 400; } .page-highlight-position { font-size: 11px; color: var(--text-color); opacity: 0.6; margin-left: 4px; } .page-highlight-nav { display: flex; gap: 2px; flex-shrink: 0; } .page-highlight-nav button { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; border-radius: 4px; cursor: pointer; transition: color 0.2s; padding: 0; } .page-highlight-nav button i { font-size: 14px; color: var(--text-color); opacity: 0.7; transition: color 0.2s, opacity 0.2s; } .page-highlight-nav button:hover i { color: var(--accent); opacity: 1; } /* Exceptions Tab */ .exceptions-section { display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; } .exceptions-mode-card { padding: 6px 10px; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 6px; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; } .exceptions-mode-label { font-size: var(--text-xs); font-weight: 500; letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-color); opacity: 0.6; } .exceptions-mode-select { width: 100%; min-height: 32px; padding: 0 10px; font-size: var(--text-base); color: var(--text-color); background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 6px; cursor: pointer; } .exceptions-add-row { display: flex; align-items: center; gap: 8px; flex-shrink: 0; } .exception-domain-input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; font-size: var(--text-base); background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 6px; color: var(--text-color); } .exception-domain-input:focus { outline: none; border-color: var(--accent); } .exception-add-btn { width: 32px; height: 32px; min-width: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; transition: all 0.2s; flex-shrink: 0; } .exception-add-btn i { font-size: 14px; } .exceptions-list-wrapper { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; } .exceptions-list-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-shrink: 0; } .clear-exceptions-link { background: none; border: none; padding: 0; font-size: var(--text-xs); font-weight: 500; color: var(--text-color); opacity: 0.6; cursor: pointer; transition: opacity 0.2s, color 0.2s; } .clear-exceptions-link:hover { opacity: 1; color: var(--danger); text-decoration: underline; } .exceptions-list { flex: 1; overflow-y: auto; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 6px; min-height: 0; } .exception-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--input-border); transition: background 0.2s; } .exception-item .exception-domain-icon { width: 22px; height: 22px; min-width: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 10px; color: var(--text-color); opacity: 0.5; background: var(--section-bg); border-radius: 50%; } .exception-item .exception-domain-icon i { font-size: 10px; } .exception-item.exception-empty { justify-content: center; color: var(--text-color); opacity: 0.6; } .exception-item:last-child { border-bottom: none; } .exception-item:hover { background: var(--section-bg); } .exception-domain { flex: 1; font-size: var(--text-base); color: var(--text-color); word-break: break-word; line-height: 1.4; min-width: 0; } .exception-remove { background: none; border: none; padding: 4px; cursor: pointer; flex-shrink: 0; transition: color 0.2s; display: flex; align-items: center; justify-content: center; color: #9ca3af; opacity: 0; } .exception-item:hover .exception-remove { opacity: 1; } .exception-remove:hover { color: var(--danger); } .exception-remove i { font-size: 12px; } /* Settings Overlay */ .settings-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 1000; align-items: center; justify-content: center; padding: 16px; } .settings-overlay.open { display: flex; } .settings-overlay-content { background: var(--bg-color); border: 1px solid var(--input-border); border-radius: 8px; max-width: 100%; max-height: 100%; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); } .settings-overlay-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--input-border); flex-shrink: 0; } .settings-overlay-title { font-size: var(--text-md); font-weight: 600; letter-spacing: var(--tracking-tight); color: var(--text-color); margin: 0; } .settings-close-btn { width: 28px; height: 28px; } .settings-overlay-body { padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; } /* Options (used in overlay) */ .options-checkboxes { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 6px; } .option-checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-color); } .option-checkbox { width: 18px; height: 18px; border: 2px solid var(--input-border); border-radius: 4px; cursor: pointer; flex-shrink: 0; appearance: none; background: var(--input-bg); position: relative; } .option-checkbox:checked { background: var(--accent); border-color: var(--accent); } .option-checkbox:checked::after { content: "✓"; position: absolute; top: -2px; left: 3px; color: white; font-size: 14px; font-weight: bold; } .theme-toggle-section { padding: 8px 10px; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 6px; } .theme-toggle-content { display: flex; align-items: center; justify-content: space-between; } .theme-toggle-text { display: flex; flex-direction: column; gap: 2px; } .theme-toggle-title { font-size: var(--text-md); font-weight: 500; color: var(--text-color); } .theme-toggle-subtitle { font-size: var(--text-sm); color: var(--text-color); opacity: 0.6; } .settings-export-import-section { padding: 8px 10px; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 6px; display: flex; flex-direction: column; gap: 8px; } .settings-export-import-label { font-size: var(--text-md); font-weight: 500; color: var(--text-color); margin: 0; } .settings-export-import-hint { font-size: var(--text-sm); color: var(--text-color); opacity: 0.6; margin: 0; } .options-buttons { display: flex; gap: 8px; } .option-button { flex: 1; height: 32px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 8px; cursor: pointer; font-size: var(--text-md); font-weight: 500; color: var(--text-color); transition: all 0.2s; } .option-button:hover { background: var(--section-bg); } .option-button i { font-size: 16px; } /* Footer */ .footer { display: flex; align-items: center; justify-content: space-between; padding: 5px 12px; border-top: 1px solid var(--input-border); background: var(--section-bg); flex-shrink: 0; } .footer-version { font-size: var(--text-xs); color: var(--footer-text); } .footer-link { display: flex; align-items: center; gap: 4px; font-size: var(--text-xs); color: var(--footer-text); text-decoration: none; transition: all 0.2s; } .footer-link:hover { opacity: 1; color: var(--accent); } .footer-link i { font-size: 12px; } /* Scrollbar Styles */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--input-border); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--accent); }