/* ============================================================================
   NOTE RECORDING STYLES (compact inline recording for all notes)
   ============================================================================ */

/* Mic button in note modal header */
.note-record-btn {
    position: relative;
}

.note-record-btn.recording svg {
    stroke: var(--color-red);
}

.note-record-btn.recording {
    animation: note-record-pulse 1.5s ease-in-out infinite;
}

@keyframes note-record-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Blue dot badge for existing recording */
.note-record-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    border-radius: var(--radius-circle);
    background: var(--accent-blue);
    pointer-events: none;
}

/* Compact recording bar between header and editor */
.note-recording-bar {
    display: flex;
    align-items: center;
    padding: 8px 28px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-card);
    min-height: 44px;
}

/* Active recording state */
.note-recording-active {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.note-recording-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-circle);
    background: var(--color-red);
    flex-shrink: 0;
    animation: note-rec-dot-blink 1s ease-in-out infinite;
}

@keyframes note-rec-dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.note-recording-timer {
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
    min-width: 42px;
}

.note-recording-waveform {
    flex: 1;
    height: 32px;
}

.note-recording-action {
    width: 28px;
    height: 28px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
    padding: 0;
}

.note-recording-action svg {
    width: 16px;
    height: 16px;
}

.note-recording-action.stop {
    color: var(--color-red-text);
}

.note-recording-action.stop:hover {
    background: rgba(239, 68, 68, 0.1);
}

.note-recording-action.cancel:hover {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.note-recording-action.delete {
    color: var(--text-tertiary);
}

.note-recording-action.delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-red-text);
}

/* Playback state */
.note-recording-playback {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.note-recording-player {
    flex: 1;
    min-width: 0;
}

.note-recording-player audio {
    width: 100%;
    height: 28px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .note-record-btn.recording {
        animation: none;
        opacity: 1;
    }
    .note-recording-dot {
        animation: none;
        opacity: 1;
    }
}

