/* PassKeeper Extension Popup */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } body { width: 320px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 13px; color: #1a1a2e; background: #fff; overflow: hidden; } .view { display: flex; flex-direction: column; min-height: 0; } .view.hidden { display: none; } /* ── Login ───────────────────────────────────────────────────────── */ .login-header { display: flex; flex-direction: column; align-items: center; padding: 28px 20px 18px; background: linear-gradient(135deg, #c0392b, #922b21); color: #fff; } .login-logo { font-size: 36px; margin-bottom: 8px; } .login-header h1 { font-size: 18px; font-weight: 600; letter-spacing: 0.3px; } .login-body { padding: 18px 20px 20px; } .pk-hint { font-size: 12px; color: #666; margin-bottom: 12px; text-align: center; } .form-group { margin-bottom: 11px; } .form-group label { display: block; font-size: 11px; color: #555; font-weight: 500; margin-bottom: 3px; } .form-group input { width: 100%; padding: 8px 11px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; outline: none; background: #fff; color: #1a1a2e; transition: border-color 0.15s, box-shadow 0.15s; } .form-group input:focus { border-color: #c0392b; box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.12); } /* ── Buttons ─────────────────────────────────────────────────────── */ .btn-primary { display: block; width: 100%; padding: 9px; background: #c0392b; color: #fff; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; margin-top: 10px; transition: background 0.15s; } .btn-primary:hover { background: #a93226; } .btn-primary:disabled { background: #e8a49e; cursor: default; } .btn-sm { width: auto; padding: 6px 16px; margin-top: 8px; } .btn-ghost { display: block; width: 100%; padding: 9px; background: transparent; color: #c0392b; border: 1px solid #e5c0bb; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; margin-top: 6px; transition: background 0.15s; } .btn-ghost:hover { background: #fdf2f1; } /* ── Vault top bar ───────────────────────────────────────────────── */ .vault-topbar { display: flex; align-items: center; gap: 6px; padding: 10px 10px 8px; background: #fff; border-bottom: 1px solid #f0f0f0; } .search-wrap { flex: 1; display: flex; align-items: center; background: #f3f4f6; border-radius: 8px; padding: 6px 10px; gap: 7px; } .search-icon { flex-shrink: 0; opacity: 0.6; } #vault-search { flex: 1; border: none; background: transparent; font-size: 13px; outline: none; color: #1a1a2e; } #vault-search::placeholder { color: #9ca3af; } .btn-vault-link { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; background: #1a1a2e; color: #fff; border: none; border-radius: 7px; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 0.15s; flex-shrink: 0; } .btn-vault-link:hover { background: #2d2d4e; } .btn-add { width: 32px; height: 32px; background: #f3f4f6; color: #1a1a2e; border: none; border-radius: 7px; font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s; } .btn-add:hover { background: #e5e7eb; } /* ── Tabs ────────────────────────────────────────────────────────── */ .vault-tabs { display: flex; gap: 0; padding: 8px 10px 0; border-bottom: 1px solid #f0f0f0; background: #fff; overflow-x: auto; scrollbar-width: none; } .vault-tabs::-webkit-scrollbar { display: none; } .tab-btn { padding: 6px 12px 8px; background: none; border: none; font-size: 12px; font-weight: 500; color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.15s, border-color 0.15s; margin-bottom: -1px; } .tab-btn:hover { color: #1a1a2e; } .tab-btn.active { color: #1a1a2e; border-bottom-color: #1a1a2e; font-weight: 600; } /* ── Vault list ──────────────────────────────────────────────────── */ .vault-list { max-height: 280px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #e5e7eb transparent; } .vault-list::-webkit-scrollbar { width: 4px; } .vault-list::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 2px; } .vault-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f3f4f6; cursor: default; transition: background 0.1s; } .vault-item:hover { background: #f9fafb; } .vault-item:last-child { border-bottom: none; } .item-avatar { width: 36px; height: 36px; border-radius: 8px; background: #1e2d5a; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; overflow: hidden; } .item-avatar.color-red { background: #7f1d1d; } .item-avatar.color-green { background: #14532d; } .item-avatar.color-purple { background: #3b0764; } .item-avatar.color-teal { background: #134e4a; } .item-avatar img { width: 22px; height: 22px; border-radius: 3px; } .item-info { flex: 1; min-width: 0; } .item-site { font-size: 12px; font-weight: 600; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .item-name { font-size: 11px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; } .item-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; } .btn-item-action { background: none; border: none; cursor: pointer; padding: 4px 6px; border-radius: 5px; color: #6b7280; display: flex; align-items: center; justify-content: center; transition: background 0.12s, color 0.12s; } .btn-item-action:hover { background: #f3f4f6; color: #1a1a2e; } .btn-item-action svg { width: 16px; height: 16px; } .badge-match { display: inline-block; background: #dbeafe; color: #1d4ed8; font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 8px; letter-spacing: 0.3px; margin-left: 4px; vertical-align: middle; } /* ── States ──────────────────────────────────────────────────────── */ .pk-error { font-size: 12px; color: #b91c1c; background: #fef2f2; border-radius: 5px; padding: 7px 10px; margin-bottom: 10px; } .pk-error.hidden { display: none; } .pk-loading, .pk-empty { text-align: center; color: #9ca3af; padding: 28px 16px; font-size: 13px; } .pk-loading.hidden, .pk-empty.hidden { display: none; } /* ── Bottom nav ──────────────────────────────────────────────────── */ .bottom-nav { display: flex; border-top: 1px solid #f0f0f0; background: #fff; } .bottom-nav.hidden { display: none; } .nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 4px; background: none; border: none; cursor: pointer; color: #9ca3af; font-size: 9px; font-weight: 500; transition: color 0.15s; } .nav-btn:hover { color: #374151; } .nav-btn.active { color: #1a1a2e; } /* ── Save-prompt blocking modal ──────────────────────────────────── */ .save-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); display: flex; align-items: flex-start; /* anchor to top so card is never cut off */ justify-content: center; z-index: 9999; overflow-y: auto; /* allow scrolling if popup height is small */ padding: 16px 14px; /* breathing room from top/bottom edges */ } .save-overlay.hidden { display: none; } .save-modal { background: #fff; border-radius: 12px; padding: 18px 16px 14px; width: 100%; /* fill the overlay width minus its padding */ max-width: 288px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22); flex-shrink: 0; /* never crush the card */ } .save-modal-header { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #1a1a2e; margin-bottom: 5px; } .save-modal-sub { font-size: 11px; color: #6b7280; margin-bottom: 10px; word-break: break-all; line-height: 1.4; } .save-modal-actions { display: flex; gap: 8px; margin-top: 10px; } .save-modal-actions .btn-primary { margin-top: 0; } .save-modal-actions .btn-ghost { margin-top: 0; } /* Folder select inside the save modal */ .save-folder-select { width: 100%; padding: 7px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; color: #1a1a2e; background: #fff; outline: none; cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; appearance: auto; } .save-folder-select:focus { border-color: #c0392b; box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.12); } /* ── Generator view ──────────────────────────────────────────────── */ .gen-suggestion { background: #e8f5f0; border-bottom: 2px solid #16a34a; padding: 12px 14px 10px; } .gen-suggestion-label { font-size: 10px; color: #374151; font-weight: 500; margin-bottom: 4px; } .gen-suggestion-row { display: flex; align-items: center; gap: 8px; } .gen-output { flex: 1; font-family: 'Courier New', Courier, monospace; font-size: 13px; font-weight: 700; color: #1a1a2e; word-break: break-all; min-width: 0; } .gen-suggestion-actions { display: flex; gap: 4px; flex-shrink: 0; } .gen-icon-btn { background: none; border: none; cursor: pointer; color: #1a73e8; padding: 4px; border-radius: 5px; display: flex; align-items: center; justify-content: center; transition: background 0.12s; } .gen-icon-btn:hover { background: rgba(26, 115, 232, 0.1); } .gen-strength-row { padding: 6px 14px 2px; min-height: 22px; } .gen-strength-label { font-size: 12px; font-weight: 700; } .gen-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; } .gen-row { display: flex; align-items: center; gap: 6px; } .gen-label { font-size: 12px; color: #374151; white-space: nowrap; } .gen-length-num { width: 42px; padding: 3px 5px; border: 1px solid #d1d5db; border-radius: 5px; font-size: 12px; text-align: center; color: #1a1a2e; outline: none; } .gen-length-num:focus { border-color: #1a73e8; } .gen-slider { width: 100%; accent-color: #1a73e8; cursor: pointer; height: 4px; } .gen-check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #374151; cursor: pointer; user-select: none; } .gen-check input[type="checkbox"] { width: 15px; height: 15px; accent-color: #1a73e8; cursor: pointer; flex-shrink: 0; } /* ── Account view ────────────────────────────────────────────────── */ .acct-header { display: flex; flex-direction: column; align-items: center; padding: 20px 20px 14px; background: linear-gradient(135deg, #1a1a2e, #2d2d4e); color: #fff; } .acct-logo { font-size: 28px; margin-bottom: 6px; } .acct-header h2 { font-size: 16px; font-weight: 600; letter-spacing: 0.3px; } .acct-body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 0; } .acct-section { padding: 12px 0; border-bottom: 1px solid #f0f0f0; } .acct-section:last-child { border-bottom: none; } .acct-section-title { font-size: 12px; font-weight: 600; color: #1a1a2e; margin-bottom: 4px; } .acct-hint { font-size: 11px; color: #6b7280; margin-bottom: 8px; line-height: 1.4; } .acct-select { width: 100%; padding: 7px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 12px; color: #1a1a2e; background: #fff; outline: none; cursor: pointer; transition: border-color 0.15s; } .acct-select:focus { border-color: #c0392b; box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.12); } .acct-saved { font-size: 11px; color: #16a34a; font-weight: 600; margin-top: 5px; } .acct-saved.hidden { display: none; } .acct-link-btn { display: block; text-align: center; text-decoration: none; padding: 8px; border-radius: 6px; background: #1a1a2e; color: #fff; font-size: 12px; font-weight: 600; transition: background 0.15s; } .acct-link-btn:hover { background: #2d2d4e; } .acct-section-danger .acct-section-title { color: #b91c1c; } .acct-section-danger .btn-ghost { color: #b91c1c; border-color: #fca5a5; font-size: 12px; padding: 7px; margin-top: 0; } .acct-section-danger .btn-ghost:hover { background: #fef2f2; } /* ── Add Item view ───────────────────────────────────────────────── */ .add-header { display: flex; align-items: center; gap: 8px; padding: 10px 12px 9px; background: #fff; border-bottom: 1px solid #f0f0f0; } .add-back-btn { background: none; border: none; cursor: pointer; color: #6b7280; padding: 4px; border-radius: 5px; display: flex; align-items: center; transition: background 0.12s, color 0.12s; } .add-back-btn:hover { background: #f3f4f6; color: #1a1a2e; } .add-header-title { font-size: 14px; font-weight: 600; color: #1a1a2e; } .add-body { padding: 12px 14px 16px; overflow-y: auto; max-height: 380px; scrollbar-width: thin; scrollbar-color: #e5e7eb transparent; } .add-body::-webkit-scrollbar { width: 4px; } .add-body::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 2px; } .add-required { color: #c0392b; font-size: 10px; } .add-pw-row { display: flex; align-items: center; gap: 4px; } .add-pw-input { flex: 1; padding: 8px 11px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; outline: none; background: #fff; color: #1a1a2e; transition: border-color 0.15s, box-shadow 0.15s; min-width: 0; } .add-pw-input:focus { border-color: #c0392b; box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.12); } .add-icon-btn { width: 32px; height: 32px; flex-shrink: 0; background: #f3f4f6; border: none; border-radius: 6px; cursor: pointer; color: #6b7280; display: flex; align-items: center; justify-content: center; transition: background 0.12s, color 0.12s; } .add-icon-btn:hover { background: #e5e7eb; color: #1a1a2e; } .add-gen-btn { background: #1a1a2e; color: #fff; } .add-gen-btn:hover { background: #2d2d4e; color: #fff; } .add-notes { width: 100%; padding: 8px 11px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; outline: none; background: #fff; color: #1a1a2e; resize: none; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s; } .add-notes:focus { border-color: #c0392b; box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.12); } /* ── TOTP live display in vault item rows ────────────────────────── */ .item-totp-row { display: flex; align-items: center; margin-top: 2px; } .totp-code-inline { font-family: 'Courier New', Courier, monospace; font-size: 12px; font-weight: 700; color: #1a73e8; letter-spacing: 1px; } .totp-timer-inline { font-size: 10px; color: #9ca3af; margin-left: 3px; } .totp-btn { color: #0891b2; } .totp-btn:hover { background: #e0f2fe; color: #0369a1; }