/* ===========================================
   APP DIALOG — Confirm & Prompt overrides
   Extends .native-modal-* base styles in style.css
   =========================================== */

/* --- Text input for Prompt dialog --- */
.app-dialog-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background: var(--input-bg, #121214);
    border: 1px solid var(--border, #27272a);
    border-radius: 8px;
    color: var(--text-primary, #e4e4e7);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.app-dialog-input:focus {
    border-color: var(--accent, #3b82f6);
}

/* --- Destructive (red) confirm button variant --- */
.native-modal-btn.destructive {
    background: var(--recording, #ef4444);
    color: white;
}

.native-modal-btn.destructive:active {
    background: #dc2626;
    transform: scale(0.98);
}

/* Ensure dialog messages support line breaks via \n */
#appConfirmMessage,
#appPromptMessage {
    white-space: pre-line;
}

/* Destructive icon color override */
.native-modal-header i.destructive-icon {
    color: var(--recording, #ef4444);
}

/* ===========================================
   RECORDING CONSENT GATE
   Extends .native-modal-* (responsive: bottom sheet <769px, centered >=769px).
   Shown before transcription/recording starts. Theme-token driven → dark + light.
   =========================================== */

/* Affirmative-consent row (checkbox gates the Start button) */
.consent-gate-affirm {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    margin-bottom: 16px;
    background: var(--input-bg, #121214);
    border: 1px solid var(--border, #27272a);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-primary, #e4e4e7);
    text-align: left;
}

.consent-gate-affirm input[type="checkbox"] {
    margin: 1px 0 0 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--accent, #3bf692);
    cursor: pointer;
}

/* Disabled Start button (until the box is checked) */
.native-modal-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.native-modal-btn:disabled:active {
    transform: none;
    filter: none;
}

/* Full-width tertiary "Notify participants" helper */
.consent-gate-notify {
    width: 100%;
    margin-top: 10px;
    padding: 11px;
    background: transparent;
    border: 1px solid var(--border, #27272a);
    border-radius: 12px;
    color: var(--text-secondary, #a1a1aa);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}

.consent-gate-notify i {
    margin-right: 6px;
}

.consent-gate-notify:active {
    background: var(--surface-hover, #27272a);
    transform: scale(0.98);
}

/* Brief confirmation state after the notice is copied/shared */
.consent-gate-notify.copied {
    color: var(--success, #10b981);
    border-color: var(--success, #10b981);
}

.consent-gate-footnote {
    margin: 12px 0 0 0;
    font-size: 0.72rem;
    color: var(--text-muted, #71717a);
    text-align: center;
}

/* Respect reduced-motion for the consent sheet animation only */
@media (prefers-reduced-motion: reduce) {
    .consent-gate-content {
        transition: none;
    }
}
