/* 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%; } }