:root { --primary: #3b82f6; --primary-hover: #2563eb; --secondary: #6b7280; --success: #10b981; --warning: #f59e0b; --error: #ef4444; --background: #ffffff; --surface: #f9fafb; --border: #e5e7eb; --text: #111827; --text-secondary: #6b7280; --shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } * { box-sizing: border-box; margin: 0; padding: 0; } html, body { width: 400px; height: 550px; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 14px; line-height: 1.5; color: var(--text); background: var(--background); overflow: hidden; } header { padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface); display: flex; justify-content: space-between; align-items: center; } header h1 { font-size: 16px; font-weight: 600; color: var(--primary); } #sync-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-secondary); } #sync-indicator { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); } #sync-indicator.syncing { background: var(--warning); animation: pulse 1.5s infinite; } #sync-indicator.synced { background: var(--success); } #sync-indicator.error { background: var(--error); } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } /* Tabs */ #tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--surface); } .tab { flex: 1; padding: 8px; border: none; background: none; font-size: 12px; font-weight: 500; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; } .tab:hover { color: var(--text); } .tab.active { color: var(--primary); border-bottom-color: var(--primary); } .tab-content { display: none; overflow-y: auto; height: calc(100% - 120px); } .tab-content.active { display: block; } /* Sections */ section { padding: 10px 12px; border-bottom: 1px solid var(--border); } h2 { font-size: 12px; font-weight: 600; color: var(--secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; } /* Forms */ .form-group { margin-bottom: 10px; } .form-group label { display: block; font-size: 11px; color: var(--text-secondary); margin-bottom: 3px; font-weight: 500; } .form-group input, .form-group textarea, .form-group select { width: 100%; padding: 7px 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 12px; background: var(--background); font-family: inherit; } .form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15); } .checkbox-group label { display: flex; align-items: center; gap: 6px; cursor: pointer; } .checkbox-group input[type="checkbox"] { width: auto; } /* Buttons */ button { padding: 7px 14px; border: none; border-radius: 4px; font-size: 12px; font-weight: 500; cursor: pointer; transition: background 0.2s; font-family: inherit; } #submit-btn { width: 100%; background: var(--primary); color: white; } #submit-btn:hover { background: var(--primary-hover); } .btn-primary { background: var(--primary); color: white; } .btn-primary:hover { background: var(--primary-hover); } .btn-small { padding: 5px 10px; font-size: 11px; background: var(--surface); border: 1px solid var(--border); } .btn-small:hover { background: var(--border); } /* Search */ #search-filter { margin-bottom: 8px; } #search { width: 100%; padding: 7px 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 12px; } /* Bookmark items */ .bookmark-item { padding: 8px; border: 1px solid var(--border); border-radius: 4px; margin-bottom: 6px; background: var(--surface); cursor: pointer; transition: border-color 0.2s; } .bookmark-item:hover { border-color: var(--primary); } .bookmark-item a { display: block; color: var(--primary); text-decoration: none; font-size: 11px; word-break: break-all; margin-bottom: 2px; } .bookmark-item a:hover { text-decoration: underline; } .bookmark-item .bm-title { font-weight: 500; font-size: 12px; margin-bottom: 2px; } .bookmark-item .bm-desc { font-size: 11px; color: var(--text-secondary); } .bookmark-item .bm-tags { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 3px; } .bookmark-item .bm-tag { font-size: 10px; padding: 1px 5px; background: var(--border); border-radius: 3px; color: var(--text-secondary); } /* Collection items */ .collection-item { padding: 8px; border: 1px solid var(--border); border-radius: 4px; margin-bottom: 6px; background: var(--surface); } .collection-item h3 { font-size: 12px; margin-bottom: 2px; } .collection-item p { font-size: 11px; color: var(--text-secondary); } .collection-item .col-type { font-size: 10px; color: var(--primary); font-weight: 500; } /* Query panel */ .query-actions { display: flex; gap: 6px; margin-bottom: 8px; } #query-result { padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; font-size: 11px; max-height: 120px; overflow-y: auto; margin-bottom: 8px; } .query-help { font-size: 10px; color: var(--text-secondary); padding: 6px; background: var(--surface); border-radius: 4px; } .query-help code { background: var(--border); padding: 1px 4px; border-radius: 2px; font-size: 10px; } /* Footer */ footer { padding: 8px 12px; background: var(--surface); border-top: 1px solid var(--border); display: flex; gap: 8px; } footer button { flex: 1; padding: 8px; background: var(--background); border: 1px solid var(--border); color: var(--text); } footer button:hover { background: var(--border); } #sync-btn { position: relative; } /* Notifications */ #notification-container { position: fixed; top: 50px; left: 12px; right: 12px; z-index: 100; pointer-events: none; } .notification { padding: 8px 12px; border-radius: 4px; font-size: 12px; margin-bottom: 4px; animation: slideIn 0.3s ease; pointer-events: auto; } .notification.success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; } .notification.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; } .notification.info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; } @keyframes slideIn { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } /* Modal */ .modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 200; align-items: center; justify-content: center; } .modal.open { display: flex; } .modal-content { background: var(--background); border-radius: 8px; width: 360px; max-height: 500px; overflow-y: auto; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); } .modal-header { padding: 12px 16px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; } .modal-header h2 { font-size: 14px; color: var(--text); text-transform: none; letter-spacing: normal; margin: 0; } .close-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-secondary); padding: 0; line-height: 1; } .close-btn:hover { color: var(--text); } #settings-form { padding: 16px; } .input-with-toggle { display: flex; gap: 4px; } .input-with-toggle input { flex: 1; } .toggle-btn { padding: 7px 8px; font-size: 11px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; white-space: nowrap; } .settings-actions { display: flex; gap: 8px; margin-top: 12px; } .settings-actions button { flex: 1; } /* Empty state */ .empty-state { text-align: center; color: var(--text-secondary); font-size: 12px; padding: 20px; } /* Scrollbar */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: var(--surface); } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--secondary); }