Something went wrong. Try again.
notes and lists
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506/* Dialog Styles */
/* Base Dialog */.dialog { padding: 0; border: 1px solid var(--border-color); border-radius: 8px; background-color: var(--bg-light); max-width: 400px; width: 90%; display: flex; flex-direction: column; max-height: 90vh; max-height: 90dvh; overflow-y: auto; transition: margin-top 0.25s ease-out;}
.dialog::backdrop { background-color: rgba(0, 0, 0, 0.4);}
.dialog-content { padding: 20px;}
.dialog h3 { margin: 0 0 12px 0; font-size: 18px; color: var(--text);}
.dialog-footer { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 16px 20px;}
.dialog-footer--vertical { flex-direction: column; padding-top: 16px; border-top: 1px solid var(--border-color); margin-top: 16px;}
.dialog-footer--vertical .btn { width: 100%;}
/* Dialog inner content helpers (used by DialogService) */.app-dialog-message { margin: 0 0 1rem 0; font-size: 15px; line-height: 1.5; color: var(--text);}
.app-dialog-input { width: 100%; padding: 10px 4px; margin-bottom: 1.5rem; border: none; border-bottom: 1px solid var(--border-color); border-radius: 0; background: transparent; color: var(--text); font-size: 15px; outline: none; box-sizing: border-box; transition: border-color 0.2s;}
.app-dialog-input:focus { border-bottom-color: var(--accent);}
.app-dialog-input::placeholder { color: var(--text-muted); opacity: 0.5;}
.app-dialog-textarea { width: 100%; padding: 10px 4px; margin-bottom: 1.5rem; border: none; border-bottom: 1px solid var(--border-color); border-radius: 0; background: transparent; color: var(--text); font-size: 15px; font-family: inherit; line-height: 1.5; outline: none; box-sizing: border-box; resize: none; min-height: 100px; transition: border-color 0.2s;}
.app-dialog-textarea:focus { border-bottom-color: var(--accent);}
/* Allow textarea dialog to be slightly wider and grow to fit content */.dialog--textarea { max-width: 480px; max-height: none;}
/* Share Dialog specific overrides */.share-title { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; font-style: italic;}
.share-actions { display: flex; gap: 12px;}
/* Share Options (3-option dialog) */.share-options { display: flex; flex-direction: column; margin-bottom: 16px;}
.share-option-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 0; border: none; border-bottom: 1px solid var(--border-color); border-radius: 0; background: transparent; color: var(--text); font-size: 15px; cursor: pointer; text-align: left; transition: background-color 0.2s; width: 100%;}
.share-option-btn:last-child { border-bottom: none;}
.share-option-btn:hover { background-color: color-mix(in srgb, var(--text) 5%, transparent);}
.share-option-btn:disabled,.share-option-btn.loading { opacity: 0.6; cursor: not-allowed;}
.share-option-icon { font-size: 20px; line-height: 1; margin-bottom: 4px;}
.share-option-label { font-weight: 600; font-size: 15px;}
.share-option-desc { font-size: 13px; color: var(--text-muted);}
/* Share Result Card (link result dialog) */.share-result-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--border-color); color: var(--text); margin-bottom: 16px;}
.share-result-url { font-family: monospace; font-size: 13px; color: var(--text); word-break: break-all; margin: 4px 0; user-select: all;}
.share-result-meta { font-size: 12px; color: var(--text-muted);}
/* Share View */.share-view-container { max-width: 800px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; height: calc(100vh - 64px);}
.share-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; flex-shrink: 0;}
.share-creator-badge { color: var(--success); font-weight: 500;}
.share-anonymous { color: var(--text-muted);}
.share-content { padding: 20px 0 8px 0; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); flex: 1; overflow-y: auto; min-height: 0;}
.share-content h1 { margin: 0 0 20px 0; font-size: 22px; color: var(--text);}
.share-meta { display: flex; gap: 20px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-color); font-size: 14px; color: var(--text-muted);}
/* Note Content */.share-note-content { line-height: 1.6;}
.share-note-text { white-space: pre-wrap; word-wrap: break-word;}
/* List Content */.share-list-content h3 { margin: 0 0 16px 0; font-size: 18px; color: var(--text);}
.share-todos { list-style: none; padding: 0; margin: 0;}
.share-todos .item-row { cursor: default;}
.share-todos .item-row:hover { background-color: transparent;}
.share-todos .item-row.completed .item-text { text-decoration: line-through; opacity: 0.6;}
.share-todo-checkbox { flex-shrink: 0; display: flex; align-items: center;}
.share-todos .item-text { cursor: default; outline: none;}
.todo-count { margin-top: 12px; font-size: 14px; color: var(--text-muted);}
/* Share View Actions */.share-view-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; padding-bottom: 20px;}
.share-view-actions .btn { flex: 1; min-width: 150px; padding: 14px 20px; font-size: 16px;}
/* Loading & Error States */.share-loading,.share-error { text-align: center; padding: 60px 20px;}
.share-error h2 { color: var(--error); margin-bottom: 12px;}
.share-error button { margin-top: 20px; padding: 12px 24px; background-color: var(--accent); border: none; border-radius: 8px; color: var(--bg); font-size: 16px; cursor: pointer;}
/* ============================================================================ ACTION SHEET DIALOG (DialogService.showActions) ============================================================================ */
.dialog--actions .dialog-content--actions { padding: 0;}
.dialog-action-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 20px; border: none; border-bottom: 1px solid var(--border-color); border-radius: 0; background: transparent; color: var(--text); font-size: 15px; cursor: pointer; text-align: left; transition: background-color 0.15s;}
.dialog-action-row:last-child { border-bottom: none;}
.dialog-action-row:hover { background-color: color-mix(in srgb, var(--text) 5%, transparent);}
.dialog-action-row--danger { color: var(--error);}
.dialog-action-row--danger:hover { background-color: color-mix(in srgb, var(--error) 8%, transparent);}
.dialog-action-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px;}
.dialog-action-icon svg { width: 18px; height: 18px;}
.dialog-action-label { flex: 1;}
.dialog-footer--actions { padding: 12px 20px; border-top: 1px solid var(--border-color);}
.dialog-footer--actions .btn { width: 100%;}
/* ============================================================================ PICKER DIALOG (DialogService.pickItem) ============================================================================ */
.dialog--picker .dialog-content--picker { padding: 0;}
.dialog--picker h3 { padding: 20px 20px 12px 20px; margin: 0; border-bottom: 1px solid var(--border-color);}
.dialog-picker-list { max-height: 320px; overflow-y: auto; padding: 0;}
.dialog-picker-item { display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding: 12px 20px; border: none; border-bottom: 1px solid var(--border-color); border-radius: 0; background: transparent; color: var(--text); font-size: 15px; cursor: pointer; text-align: left; transition: background-color 0.15s;}
.dialog-picker-item:last-child { border-bottom: none;}
.dialog-picker-item:hover { background-color: color-mix(in srgb, var(--text) 5%, transparent);}
.dialog-picker-item-title { font-weight: 500; font-size: 15px;}
.dialog-picker-item-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px;}
.dialog-picker-empty { padding: 24px 20px; text-align: center; color: var(--text-muted); font-size: 15px;}
/* Mobile adjustments */@media (max-width: 480px) { .dialog { margin: auto; }
.dialog-footer { flex-direction: column; }
.dialog-footer .btn { width: 100%; }
.share-view-actions { flex-direction: column; }
.share-view-actions .btn { width: 100%; }}