/**
 * Video Prompt Styles
 * 
 * Styles for video prompt recording in question editor
 * and video prompt playback in campaign forms.
 * 
 * @package ProofPoints_AI_Integration
 * @since 26.0.0
 */

/* ============================================
   VIDEO PROMPT SECTION (Question Editor)
   ============================================ */

.pp-video-prompt-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.pp-video-prompt-header label {
    font-weight: 600;
    color: #1e2835;
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
}

.pp-video-prompt-header .pp-field-description {
    color: #6b7280;
    font-size: 12px;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

/* Mode Selector - Visible Colored Buttons */
.pp-prompt-mode-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.pp-prompt-mode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    height: 35px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    white-space: nowrap;
}

.pp-prompt-mode-btn:hover {
    border-color: #9C27B0;
    color: #9C27B0;
    background: #faf5fc;
}

.pp-prompt-mode-btn.active {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    border-color: #9C27B0;
    color: white;
}

.pp-prompt-mode-btn[data-mode="avatar"]:hover {
    border-color: #F5A623;
    color: #b45309;
    background: #fffbf5;
}

.pp-prompt-mode-btn[data-mode="avatar"].active {
    background: linear-gradient(135deg, #F5A623 0%, #E8940E 100%);
    border-color: #F5A623;
    color: white;
}

.pp-prompt-mode-btn svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* Existing Prompt Preview */
.pp-existing-prompt-preview {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.pp-existing-prompt-preview .pp-prompt-video-container {
    margin-bottom: 12px;
}

.pp-existing-prompt-preview video {
    width: 100%;
    max-height: 300px;
    border-radius: 8px;
    background: #000;
}

.pp-existing-prompt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.pp-existing-prompt-actions .pp-edit-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pp-existing-prompt-actions .pp-edit-prompt-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

/* Record UI */
.pp-prompt-record-ui {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.pp-prompt-preview-area {
    margin-bottom: 16px;
}

.pp-prompt-preview-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}

.pp-prompt-preview-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-prompt-loading {
    text-align: center;
    color: white;
}

.pp-prompt-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

.pp-prompt-spinner.large {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pp-prompt-loading p {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    margin: 0;
}

.pp-prompt-error {
    text-align: center;
    color: white;
    padding: 20px;
}

.pp-prompt-error svg {
    margin-bottom: 12px;
    opacity: 0.8;
}

.pp-prompt-error p {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    margin: 4px 0;
}

.pp-prompt-error .pp-error-hint {
    opacity: 0.8;
    font-size: 12px;
}

.pp-prompt-record-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pp-prompt-status {
    flex: 1;
}

.pp-prompt-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1e2835;
}

.pp-recording-dot {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.pp-timer-warning {
    color: #ef4444 !important;
}

.pp-prompt-buttons {
    display: flex;
    gap: 8px;
}

.pp-prompt-buttons button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.pp-prompt-start-btn {
    background: #9C27B0;
    color: white;
}

.pp-prompt-start-btn:hover {
    background: #7B1FA2;
}

.pp-prompt-stop-btn {
    background: #ef4444;
    color: white;
}

.pp-prompt-stop-btn:hover {
    background: #dc2626;
}

.pp-prompt-retake-btn {
    background: #6b7280;
    color: white;
}

.pp-prompt-retake-btn:hover {
    background: #4b5563;
}

.pp-prompt-save-btn {
    background: #10b981;
    color: white;
}

.pp-prompt-save-btn:hover {
    background: #059669;
}

/* Upload UI */
.pp-prompt-upload-ui {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.pp-prompt-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pp-prompt-dropzone:hover,
.pp-prompt-dropzone.dragover {
    border-color: #9C27B0;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.05) 0%, rgba(103, 58, 183, 0.05) 100%);
}

.pp-dropzone-content svg {
    color: #9ca3af;
    margin-bottom: 12px;
}

.pp-dropzone-content p {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 4px 0;
}

.pp-dropzone-hint {
    color: #6b7280 !important;
}

.pp-browse-btn {
    background: none;
    border: none;
    color: #9C27B0;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
}

.pp-browse-btn:hover {
    text-decoration: underline;
}

.pp-dropzone-formats {
    color: #9ca3af !important;
    font-size: 12px !important;
    margin-top: 8px !important;
}

/* Upload Progress */
.pp-prompt-upload-progress {
    padding: 40px 20px;
    text-align: center;
}

.pp-upload-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.pp-upload-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #9C27B0 0%, #673AB7 100%);
    border-radius: 4px;
    width: 0;
    transition: width 0.3s ease;
}

.pp-upload-progress-text {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    color: #4b5563;
    margin: 0;
}

/* Upload Preview */
.pp-prompt-upload-preview .pp-prompt-video-container {
    margin-bottom: 16px;
}

.pp-upload-preview-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Processing Overlay */
.pp-prompt-processing {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(249, 250, 251, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
}

.pp-processing-content {
    text-align: center;
}

.pp-processing-text {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1e2835;
    margin: 16px 0 4px;
}

.pp-processing-hint {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* ============================================
   VIDEO PROMPT PLAYER (Campaign Form)
   ============================================ */

.pp-video-prompt-player {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.pp-video-prompt-player video {
    width: 100%;
    display: block;
    max-height: 400px;
    object-fit: contain;
    background: #000;
    position: relative;
    z-index: 2;
}

.pp-video-prompt-player video::-webkit-media-controls {
    display: flex !important;
    z-index: 3;
}

.pp-video-prompt-player video::-webkit-media-controls-panel {
    z-index: 3;
}

.pp-video-prompt-player audio {
    width: 100%;
    display: block;
}

/* ============================================
   TRIM & THUMBNAIL EDITOR
   ============================================ */

.pp-prompt-editor-ui {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.pp-editor-video-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    margin-bottom: 12px;
}

.pp-editor-video {
    width: 100%;
    display: block;
    max-height: 240px;
    background: #000;
}

/* Ensure video controls are visible */
.pp-editor-video::-webkit-media-controls {
    display: flex !important;
}

/* Trim Section - Compact */
.pp-trim-section {
    background: #f9fafb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
}

.pp-trim-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1e2835;
}

.pp-trim-icon {
    font-size: 14px;
}

.pp-trim-duration {
    color: #6b7280;
    font-weight: 400;
    font-size: 12px;
    margin-left: auto;
}

.pp-trim-timeline {
    margin-bottom: 8px;
}

.pp-trim-track {
    position: relative;
    height: 36px;
    background: #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    overflow: visible;
}

.pp-trim-selected {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.3) 0%, rgba(103, 58, 183, 0.3) 100%);
    border-radius: 6px;
}

.pp-trim-handle {
    position: absolute;
    top: -4px;
    width: 24px;
    height: 56px;
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
    /* Make the entire handle area clickable */
    background: transparent;
}

.pp-trim-handle .pp-handle-bar {
    width: 8px;
    height: 100%;
    background: #9C27B0;
    border-radius: 4px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.4);
    transition: transform 0.15s ease, background 0.15s ease;
    pointer-events: none;
}

.pp-trim-handle:hover .pp-handle-bar,
.pp-trim-handle.dragging .pp-handle-bar {
    transform: scaleX(1.5);
    background: #7B1FA2;
}

/* Add grab lines to handles */
.pp-trim-handle .pp-handle-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 20px;
    background: repeating-linear-gradient(
        to bottom,
        white 0px,
        white 2px,
        transparent 2px,
        transparent 4px
    );
}

.pp-trim-playhead {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: #ef4444;
    pointer-events: none;
    z-index: 5;
}

.pp-trim-times {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 11px;
    color: #6b7280;
}

.pp-trim-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.pp-preview-trim-btn {
    padding: 0 12px !important;
    height: 30px !important;
    font-size: 12px !important;
}

.pp-btn-text {
    background: none !important;
    border: none !important;
    color: #6b7280 !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
}

.pp-btn-text:hover {
    color: #9C27B0 !important;
    background: rgba(156, 39, 176, 0.1) !important;
}

/* Thumbnail Section - Compact */
.pp-thumbnail-section {
    background: #f9fafb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
}

.pp-thumbnail-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1e2835;
}

.pp-thumbnail-icon {
    font-size: 14px;
}

.pp-thumbnail-preview {
    position: relative;
    width: 140px;
    height: 79px;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    margin: 0 auto 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    border: 2px solid #9C27B0;
    transition: border-color 0.3s ease;
}

.pp-thumbnail-preview::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    background: #9C27B0;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pp-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Device Selection */
.pp-device-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.pp-device-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pp-device-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
}

.pp-device-group label svg {
    color: #9C27B0;
}

.pp-device-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.pp-device-select:hover {
    border-color: #9C27B0;
}

.pp-device-select:focus {
    outline: none;
    border-color: #9C27B0;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

.pp-thumbnail-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pp-thumbnail-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
}

.pp-thumbnail-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #9C27B0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(156, 39, 176, 0.3);
    transition: transform 0.15s ease;
}

.pp-thumbnail-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.pp-thumbnail-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #9C27B0;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(156, 39, 176, 0.3);
}

.pp-thumbnail-time-display {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 12px;
    color: #6b7280;
    min-width: 36px;
}

.pp-thumbnail-hint {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 11px;
    color: #9ca3af;
    margin: 6px 0 0;
    text-align: center;
}

/* Editor Actions - Compact standardized buttons */
.pp-editor-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.pp-editor-actions button {
    padding: 0 14px;
    height: 35px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Discard button in editor - standardized danger style */
.pp-editor-actions .pp-editor-discard-btn {
    padding: 0 14px !important;
    height: 35px !important;
    font-size: 13px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #fca5a5 !important;
    color: #dc2626 !important;
}

.pp-editor-actions .pp-editor-discard-btn:hover {
    background: #fef2f2 !important;
    border-color: #f87171 !important;
}

.pp-editor-back-btn {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    color: #4b5563;
}

.pp-editor-back-btn:hover {
    background: #e5e7eb;
}

.pp-editor-save-btn {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    border: none;
    color: white;
    margin-left: auto !important;
}

.pp-editor-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(156, 39, 176, 0.3);
}

/* Trim Indicator on Existing Preview */
.pp-trim-indicator {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pp-video-prompt-audio-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pp-video-prompt-audio-wrapper .pp-audio-label {
    color: white;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.pp-video-prompt-audio-wrapper audio {
    max-width: 400px;
}

/* Video Prompt with Poster */
.pp-video-prompt-player .pp-prompt-poster {
    position: relative;
    cursor: pointer;
}

.pp-video-prompt-player .pp-prompt-poster img {
    width: 100%;
    display: block;
}

.pp-video-prompt-player .pp-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.pp-video-prompt-player .pp-play-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.pp-video-prompt-player .pp-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.pp-video-prompt-player .pp-play-overlay:hover .pp-play-btn {
    transform: scale(1.1);
}

.pp-video-prompt-player .pp-play-btn svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
    color: #9C27B0;
}

/* Response Type Selector */
.pp-response-type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding: 4px;
    background: #f3f4f6;
    border-radius: 10px;
}

.pp-response-type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
}

.pp-response-type-btn:hover {
    color: #9C27B0;
}

.pp-response-type-btn.active {
    background: white;
    color: #9C27B0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pp-response-type-btn svg {
    flex-shrink: 0;
}

/* Response containers */
.pp-response-video-container,
.pp-response-audio-container,
.pp-response-text-container {
    display: none;
}

.pp-response-video-container.active,
.pp-response-audio-container.active,
.pp-response-text-container.active {
    display: block;
}

/* Text response styling */
.pp-response-text-container textarea {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.pp-response-text-container textarea:focus {
    outline: none;
    border-color: #9C27B0;
}

.pp-response-text-container textarea::placeholder {
    color: #9ca3af;
}

/* ============================================
   BUTTON UTILITIES
   ============================================ */

.pp-btn-small {
    padding: 8px 12px !important;
    font-size: 13px !important;
}

.pp-btn-danger {
    background: #ef4444 !important;
    color: white !important;
    border: none !important;
}

.pp-btn-danger:hover {
    background: #dc2626 !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Desktop - video preview centered, dropdowns constrained */
@media (min-width: 768px) {
    /* Video preview stays compact and centered */
    .pp-prompt-record-ui .pp-prompt-preview-container,
    .pp-prompt-upload-ui .pp-prompt-video-container {
        max-width: 480px;
        margin: 0 auto;
    }
    
    /* Device selection - constrain dropdown widths */
    .pp-device-selection {
        max-width: 600px;
        margin: 0 auto 16px;
    }
    
    .pp-device-select {
        max-width: 280px;
    }
    
    /* Record controls centered under video */
    .pp-prompt-record-controls {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* Clear/Delete prompt button - always visible when content exists */
.pp-clear-prompt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 8px;
}

.pp-clear-prompt-btn:hover {
    background: #fee2e2;
    border-color: #f87171;
}

.pp-clear-prompt-btn svg {
    width: 14px;
    height: 14px;
}

/* Avatar UI - compact clear option */
.pp-avatar-clear-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 640px) {
    .pp-prompt-mode-selector {
        flex-direction: column;
    }
    
    .pp-prompt-mode-btn span {
        display: none;
    }
    
    .pp-prompt-mode-btn {
        padding: 10px;
    }
    
    .pp-prompt-record-controls {
        flex-direction: column;
        gap: 12px;
    }
    
    .pp-prompt-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .pp-response-type-selector {
        flex-direction: column;
    }
}
