/* ================================================================
   PROJECT MEMORY — theme-clean-reminder-modal.css
   Reminder modal internals: form fields, repeat options, recurring
   section, voice settings modal, dialog modal.
   Depends on: theme-clean.css (tokens), theme-clean-modals.css
   ================================================================ */


/* ----------------------------------------------------------------
   REMINDER MODAL — FORM FIELDS
   ---------------------------------------------------------------- */

/**
 * @pm-registry
 * @prefix pm
 * @description Form fields wrapper inside pm-modal-reminder-edit.
 *   Hidden until voice capture completes or Type is tapped.
 *   pm-active shows it.
 * @apps project-memory
 * @type        css-class
 * @name        pm-reminder-fields
 * @tags        TODO
 * @called-by   pm-modal-reminder-edit.html
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-reminder-fields {
    display: none;
    flex-direction: column;
    gap: 14px;
}

.pm-reminder-fields.pm-active {
    display: flex;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Repeat options section inside pm-reminder-fields.
 *   Hidden until recurring toggle is checked. pm-active shows it.
 * @apps project-memory
 * @type        css-class
 * @name        pm-reminder-repeat-options
 * @tags        TODO
 * @called-by   pm-modal-reminder-edit.html
 * @depends-on  --pm-brand-light, --pm-radius-small
 * @updated 2026-04-13
 */
.pm-reminder-repeat-options {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: var(--pm-brand-light);
    padding: 12px;
    border-radius: var(--pm-radius-small);
}

.pm-reminder-repeat-options.pm-active {
    display: flex;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Recurring series indicator — shown in edit mode only.
 *   pm-active shows it.
 * @apps project-memory
 * @type        css-class
 * @name        pm-reminder-recurring-section
 * @tags        TODO
 * @called-by   pm-modal-reminder-edit.html
 * @depends-on  --pm-warning-background, --pm-radius-small
 * @updated 2026-04-13
 */
.pm-reminder-recurring-section {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: var(--pm-warning-background);
    border: 1px solid var(--pm-category-orange-bg);
    padding: 12px;
    border-radius: var(--pm-radius-small);
}

.pm-reminder-recurring-section.pm-active {
    display: flex;
}

/**
 * @pm-registry
 * @prefix      pm
 * @type        css-class
 * @name        pm-reminder-recurring-label-heading
 * @tags        modals
 * @description The heading text (e.g., '🔁 Recurring Series') for the section that appears when editing a recurring reminder.
 * @depends-on  pm-modal-reminder-edit.html:128
 * @called-by  pm-modal-reminder-edit.html
 * @updated     2026-04-14
 */
.pm-reminder-recurring-label-heading {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--pm-event-orange-dark);
}

/**
 * @pm-registry
 * @prefix      pm
 * @type        css-class
 * @name        pm-reminder-recurring-label
 * @tags        modals
 * @description The descriptive text (e.g., 'Every day') for the recurrence rule shown when editing a recurring reminder.
 * @depends-on  --pm-text-2, pm-modal-reminder-edit.html:129, reminderModalService.js
 * @called-by  pm-modal-reminder-edit.html
 * @updated     2026-04-14
 */
.pm-reminder-recurring-label {
    font-size: 0.9rem;
    color: var(--pm-text-2);
}


/* Help modal CSS moved to theme-clean-help.css */


/* ----------------------------------------------------------------
   VOICE SETTINGS MODAL
   Layout helpers specific to pm-modal-voice-settings.
   ---------------------------------------------------------------- */

/**
 * @pm-registry
 * @prefix pm
 * @description Toggle row inside voice settings — label left, toggle right.
 * @apps project-memory
 * @type        css-class
 * @name        pm-voice-settings-toggle-row
 * @tags        TODO
 * @called-by   pm-modal-note-email.html, pm-modal-voice-settings.html
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-voice-settings-toggle-row {
    justify-content: space-between;
}

/**
 * @pm-registry
 * @prefix      pm
 * @type        css-class
 * @name        pm-voice-settings-toggle-label
 * @tags        modals
 * @description The text label for a toggle switch, typically used in settings modals.
 * @depends-on  --pm-text-1, pm-modal-note-email.html:43, pm-modal-voice-settings.html:34
 * @called-by  pm-modal-note-email.html, pm-modal-voice-settings.html
 * @updated     2026-04-14
 */
.pm-voice-settings-toggle-label {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--pm-text-1);
}

/**
 * @pm-registry
 * @prefix pm
 * @description Small muted hint text beneath a form field.
 * @apps project-memory
 * @type        css-class
 * @name        pm-voice-settings-hint
 * @tags        TODO
 * @called-by   pm-modal-note-attach.html, pm-modal-note-email.html, pm-modal-voice-settings.html
 * @depends-on  --pm-text-3
 * @updated 2026-04-13
 */
.pm-voice-settings-hint {
    font-size: 0.75rem;
    color: var(--pm-text-3);
}

/**
 * @pm-registry
 * @prefix pm
 * @description Header row for the voice selector — label left, count right.
 * @apps project-memory
 * @type        css-class
 * @name        pm-voice-settings-voice-header
 * @tags        TODO
 * @called-by   pm-modal-voice-settings.html
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-voice-settings-voice-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Voice count readout — shows how many voices are available
 *   in the current browser (e.g. "12 voices available").
 * @apps project-memory
 * @type        css-class
 * @name        pm-voice-settings-count
 * @tags        TODO
 * @called-by   pm-modal-voice-settings.html
 * @depends-on  --pm-text-3
 * @updated 2026-04-13
 */
.pm-voice-settings-count {
    font-size: 0.75rem;
    color: var(--pm-text-3);
}

/**
 * @pm-registry
 * @prefix pm
 * @description Row holding the Test Chime and Test Voice buttons side by side.
 * @apps project-memory
 * @type        css-class
 * @name        pm-voice-settings-test-row
 * @tags        TODO
 * @called-by   pm-modal-voice-settings.html
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-voice-settings-test-row {
    display: flex;
    gap: 10px;
}


/* ----------------------------------------------------------------
   DIALOG MODAL (pm-modal-dialog)
   Reusable styled replacement for alert / confirm / prompt.
   ---------------------------------------------------------------- */

/**
 * @pm-registry
 * @prefix pm
 * @description Narrower modal shell for dialog boxes — alert, confirm, prompt, choose.
 * @apps project-memory
 * @type        css-class
 * @name        pm-dialog-modal
 * @tags        TODO
 * @called-by   pm-modal-dialog.html
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-dialog-modal {
    max-width: 340px;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Message text inside a dialog modal.
 * @apps project-memory
 * @type        css-class
 * @name        pm-dialog-message
 * @tags        TODO
 * @called-by   pm-modal-dialog.html
 * @depends-on  --pm-text-2
 * @updated 2026-04-13
 */
.pm-dialog-message {
    font-size: 0.92rem;
    color: var(--pm-text-2);
    line-height: 1.5;
    margin-bottom: 12px;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Radio option list inside pmChoose dialog.
 *   Each option is a full-width tappable label with radio button.
 * @apps project-memory
 * @type        css-class
 * @name        pm-dialog-options
 * @tags        TODO
 * @called-by   pm-modal-dialog.html
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-dialog-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

/**
 * @pm-registry
 * @prefix      pm
 * @type        css-class
 * @name        pm-dialog-option
 * @tags        modals
 * @description Styles an individual tappable option within a dialog's radio choice list, including visual feedback for its checked state.
 * @depends-on  --pm-radius-small, --pm-border, --pm-surface-2, --pm-text-1, --pm-brand, --pm-brand-light, uiService.js:365
 * @called-by  pm-modal-dialog.html
 * @updated     2026-04-14
 */
.pm-dialog-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--pm-radius-small);
    border: 1.5px solid var(--pm-border);
    background: var(--pm-surface-2);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--pm-text-1);
    transition: border-color 0.15s, background 0.15s;
}

.pm-dialog-option:has(input:checked) {
    border-color: var(--pm-brand);
    background: var(--pm-brand-light);
}

/**
 * @pm-registry
 * @prefix pm
 * @description Input field inside prompt/choose dialogs. Full width with top spacing.
 * @apps project-memory
 * @type        css-class
 * @name        pm-dialog-input
 * @tags        TODO
 * @called-by   pm-modal-dialog.html
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-dialog-input {
    width: 100%;
    margin-top: 4px;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Footer row for dialog buttons — right-aligned, smaller gap.
 * @apps project-memory
 * @type        css-class
 * @name        pm-dialog-footer
 * @tags        TODO
 * @called-by   pm-modal-dialog.html, pm-one-sheet.html
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-dialog-footer {
    justify-content: flex-end;
    gap: 10px;
}


/* ----------------------------------------------------------------
   REMINDER MODAL — VOICE CAPTURE SECTION
   Inside pm-modal-reminder-edit. Hidden after capture completes.
   Moved from theme-clean-modals.css.
   ---------------------------------------------------------------- */

/**
 * @pm-registry
 * @prefix pm
 * @description Voice recording section at the top of pm-modal-reminder-edit.
 *   Hidden after voice capture completes and fields are pre-filled.
 * @apps project-memory
 * @type        css-class
 * @name        pm-reminder-voice-section
 * @tags        TODO
 * @called-by   pm-modal-reminder-edit.html
 * @depends-on  --pm-surface-2, --pm-radius-medium, --pm-border
 * @updated 2026-04-13
 */
.pm-reminder-voice-section {
    background: var(--pm-surface-2);
    border-radius: var(--pm-radius-medium);
    border: 1px solid var(--pm-border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Recording timer inside pm-reminder-voice-section.
 *   Hidden until recording starts.
 * @apps project-memory
 * @type        css-class
 * @name        pm-reminder-record-timer
 * @tags        TODO
 * @called-by   pm-modal-reminder-edit.html
 * @depends-on  --pm-brand
 * @updated 2026-04-13
 */
.pm-reminder-record-timer {
    font-family: monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pm-brand);
    display: none;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Animated waveform inside pm-reminder-voice-section.
 *   Hidden until recording starts.
 * @apps project-memory
 * @type        css-class
 * @name        pm-reminder-waveform
 * @tags        TODO
 * @called-by   pm-modal-reminder-edit.html
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-reminder-waveform {
    display: none;
    gap: 3px;
    justify-content: center;
}

/**
 * @pm-registry
 * @prefix      pm
 * @type        css-class
 * @name        pm-reminder-wave-bar
 * @tags        modals
 * @description A single vertical bar in the animated waveform inside the reminder edit modal. Its height is animated by the `pm-wave-reminder` keyframes.
 * @depends-on  --pm-brand, pm-modal-reminder-edit.html:44
 * @called-by  pm-modal-reminder-edit.html
 * @updated     2026-04-14
 */
.pm-reminder-wave-bar {
    width: 4px;
    height: 20px;
    background: var(--pm-brand);
    border-radius: var(--pm-radius-xsmall);
    animation: pm-wave-reminder 0.8s ease-in-out infinite alternate;
}

.pm-reminder-wave-bar:nth-child(2) { animation-delay: 0.1s; }
.pm-reminder-wave-bar:nth-child(3) { animation-delay: 0.2s; }
.pm-reminder-wave-bar:nth-child(4) { animation-delay: 0.3s; }
.pm-reminder-wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes pm-wave-reminder {
    from { transform: scaleY(0.4); }
    to   { transform: scaleY(1.2); }
}

/**
 * @pm-registry
 * @prefix pm
 * @description AI processing message inside pm-reminder-voice-section.
 * @apps project-memory
 * @type        css-class
 * @name        pm-reminder-processing-message
 * @tags        TODO
 * @called-by   pm-modal-reminder-edit.html
 * @depends-on  --pm-brand
 * @updated 2026-04-13
 */
.pm-reminder-processing-message {
    display: none;
    color: var(--pm-brand);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Success message after AI extracts details from voice.
 * @apps project-memory
 * @type        css-class
 * @name        pm-reminder-extracted-message
 * @tags        TODO
 * @called-by   pm-modal-reminder-edit.html
 * @depends-on  --pm-success
 * @updated 2026-04-13
 */
.pm-reminder-extracted-message {
    display: none;
    color: var(--pm-success);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
}


/* ----------------------------------------------------------------
   ALERT CHIPS — timing selector chips and custom popup
   Moved from theme-clean-reminders.css — used in pm-modal-reminder-edit.html
   ---------------------------------------------------------------- */

/* ----------------------------------------------------------------
   ALERT CHIPS
   ---------------------------------------------------------------- */

/**
 * @pm-registry
 * @prefix pm
 * @description Container for alert offset chips in the reminder edit modal.
 * @apps project-memory
 * @type        css-class
 * @name        pm-selector-reminder-timing-container
 * @tags        TODO
 * @called-by   pm-modal-reminder-edit.html
 * @depends-on  none
 * @updated 2026-04-13
 */
.pm-selector-reminder-timing-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Individual alert offset chip — toggleable.
 *   pm-active = selected.
 * @apps project-memory
 * @type        css-class
 * @name        pm-selector-reminder-timing
 * @tags        TODO
 * @called-by   pm-modal-reminder-edit.html
 * @depends-on  --pm-radius-full, --pm-border, --pm-panel-surface, --pm-text-3
 * @updated 2026-04-13
 */
.pm-selector-reminder-timing {
    padding: 4px 12px;
    border-radius: var(--pm-radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1.5px solid var(--pm-border);
    background: var(--pm-panel-surface);
    color: var(--pm-text-3);
    cursor: pointer;
    transition: all 0.15s;
}

.pm-selector-reminder-timing.pm-active {
    background: var(--pm-brand);
    border-color: var(--pm-brand);
    color: white;
}

/**
 * @pm-registry
 * @prefix pm
 * @description Custom alert timing button — opens the custom input popup.
 *   Styled distinctly to signal it is an action, not a toggle.
 * @apps project-memory
 * @type        css-class
 * @name        pm-selector-reminder-timing-custom
 * @tags        TODO
 * @called-by   none found
 * @depends-on  --pm-brand
 * @updated 2026-04-13
 */
.pm-selector-reminder-timing-custom {
    border-style: dashed;
    color: var(--pm-brand);
    border-color: var(--pm-brand);
}

/**
 * @pm-registry
 * @prefix pm
 * @description Inline popup for entering a custom alert offset.
 *   Hidden by default, toggled by pm-active.
 * @apps project-memory
 * @type        css-class
 * @name        pm-reminder-custom-timing-popup
 * @tags        TODO
 * @called-by   pm-modal-reminder-edit.html
 * @depends-on  --pm-brand-light, --pm-radius-small, --pm-border
 * @updated 2026-04-13
 */
.pm-reminder-custom-timing-popup {
    display: none;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    padding: 10px 12px;
    background: var(--pm-brand-light);
    border-radius: var(--pm-radius-small);
    border: 1px solid var(--pm-border);
}

.pm-reminder-custom-timing-popup.pm-active {
    display: flex;
}

.pm-reminder-custom-timing-popup .pm-input {
    flex: 1;
    min-width: 0;
}

.pm-reminder-custom-timing-popup .pm-button-action {
    width: auto;
    padding: 10px 18px;
    flex-shrink: 0;
}


