/**
 * Transcription Module Styles
 * עיצוב מודול תמלול אודיו
 */

/* =============================================
   Transcription Modal - מודל תמלול
   ============================================= */

.transcription-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
    font-family: 'Heebo', sans-serif;
    letter-spacing: normal;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.transcription-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
    font-family: 'Heebo', sans-serif;
    letter-spacing: normal;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.transcription-modal .modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px 16px 0 0;
}

.transcription-modal .modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.transcription-modal .modal-header h2 i {
    color: #3b82f6;
}

.transcription-modal .close-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
    font-size: 16px;
}

.transcription-modal .close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Modal Body */
.transcription-modal .modal-body {
    padding: 20px 22px;
}

/* Modal Footer */
.transcription-modal .modal-footer {
    padding: 14px 22px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

/* =============================================
   Upload Area - אזור העלאה
   ============================================= */

.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-style: solid;
}

.upload-icon {
    font-size: 40px;
    color: #94a3b8;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: scale(1.1);
    color: #3b82f6;
}

.upload-text strong {
    display: block;
    font-size: 14px;
    color: #334155;
    margin-bottom: 6px;
    font-weight: 500;
}

.upload-text p {
    color: #64748b;
    font-size: 12px;
    margin: 0;
}

/* Selected File Display */
.selected-file {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 10px;
    gap: 14px;
    border: 1px solid #bae6fd;
}

.selected-file .file-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.selected-file .file-info {
    flex: 1;
    min-width: 0;
}

.selected-file .file-name {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 3px;
    word-break: break-all;
    font-size: 13px;
    line-height: 1.4;
}

.selected-file .file-size {
    font-size: 12px;
    color: #64748b;
}

.selected-file .remove-file-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.selected-file .remove-file-btn:hover {
    background: #fee2e2;
}

/* =============================================
   Provider Selector - בחירת ספק
   ============================================= */

.provider-selector {
    margin-bottom: 18px;
}

.provider-selector > label {
    display: block;
    font-weight: 500;
    color: #334155;
    margin-bottom: 10px;
    font-size: 13px;
}

.provider-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.provider-option {
    flex: 1;
    min-width: 120px;
    padding: 12px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: white;
}

.provider-option:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.provider-option.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.provider-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.provider-option .provider-icon {
    font-size: 20px;
    margin-bottom: 6px;
    color: #64748b;
}

.provider-option.selected .provider-icon {
    color: #3b82f6;
}

.provider-option .provider-name {
    font-weight: 500;
    color: #1e293b;
    font-size: 13px;
}

.provider-option .provider-desc {
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
}

/* =============================================
   Transcription Settings - הגדרות
   ============================================= */

.transcription-settings {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    margin-top: 16px;
}

.transcription-settings h3 {
    margin: 0 0 14px 0;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.setting-group {
    margin-bottom: 14px;
}

.setting-group label {
    display: block;
    font-weight: 500;
    color: #475569;
    margin-bottom: 6px;
    font-size: 13px;
}

.setting-group input,
.setting-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    transition: border-color 0.2s;
    font-family: 'Heebo', sans-serif;
    background: white;
}

.setting-group input:focus,
.setting-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* =============================================
   Progress Indicator - אינדיקטור התקדמות
   ============================================= */

.transcription-progress {
    margin: 16px 0;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.progress-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid #e2e8f0;
    border-top: 2.5px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-text {
    color: #334155;
    font-weight: 500;
    font-size: 13px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* =============================================
   Results Display - תצוגת תוצאות
   ============================================= */

.transcription-results {
    padding: 16px 0 0 0;
}

.transcription-results h3 {
    margin: 0 0 14px 0;
    color: #1e293b;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.transcription-results h3 i {
    color: #10b981;
}

.results-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.transcription-text-preview {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 16px;
    border-radius: 10px;
    text-align: right;
    font-family: 'Heebo', sans-serif;
    line-height: 1.7;
    color: #334155;
    border: 1px solid #e2e8f0;
    max-height: 250px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* =============================================
   Status Modal - מודל סטטוס
   ============================================= */

.status-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
    font-family: 'Heebo', sans-serif;
    letter-spacing: normal;
}

.status-modal .modal-content {
    background: white;
    border-radius: 14px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.status-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px 20px;
}

.status-indicator .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.status-indicator .status-text {
    color: #334155;
    font-size: 14px;
    font-weight: 500;
}

/* =============================================
   Buttons - כפתורים
   ============================================= */

.transcription-modal .btn-primary,
.status-modal .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-family: 'Heebo', sans-serif;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.transcription-modal .btn-primary:hover,
.status-modal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.transcription-modal .btn-primary:disabled,
.status-modal .btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.transcription-modal .btn-secondary,
.status-modal .btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-family: 'Heebo', sans-serif;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.transcription-modal .btn-secondary:hover,
.status-modal .btn-secondary:hover {
    background: #e2e8f0;
}

/* =============================================
   Transcription Button in Toolbar (Icon Bar)
   ============================================= */

/* כפתור בסרגל הצדדי */
.icon-bar-btn.transcription-btn {
    position: relative;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
}

.icon-bar-btn.transcription-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    transform: scale(1.05);
}

.icon-bar-btn.transcription-btn::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid white;
}

/* =============================================
   Dark Mode Support
   ============================================= */

@media (prefers-color-scheme: dark) {
    .transcription-modal-content,
    .status-modal .modal-content {
        background: #1f2937;
        color: #f9fafb;
    }

    .transcription-modal .modal-header,
    .transcription-modal .modal-footer {
        border-color: #374151;
    }

    .transcription-modal .modal-header h2 {
        color: #f9fafb;
    }

    .upload-area {
        background: #374151;
        border-color: #4b5563;
    }

    .upload-area:hover {
        border-color: #60a5fa;
        background: #1e40af20;
    }

    .setting-group label {
        color: #e5e7eb;
    }

    .setting-group input,
    .setting-group select {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .transcription-text-preview {
        background: #374151;
        border-color: #4b5563;
        color: #e5e7eb;
    }

    .btn-secondary {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
}

/* =============================================
   Responsive Design
   ============================================= */

@media (max-width: 640px) {
    .transcription-modal {
        padding: 10px;
    }

    .transcription-modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 14px;
    }

    .transcription-modal .modal-header {
        padding: 14px 16px;
    }

    .transcription-modal .modal-header h2 {
        font-size: 16px;
    }

    .transcription-modal .modal-body {
        padding: 16px;
    }

    .transcription-modal .modal-footer {
        padding: 12px 16px;
    }

    .upload-area {
        padding: 24px 16px;
    }

    .upload-icon {
        font-size: 32px;
    }

    .provider-options {
        flex-direction: column;
        gap: 6px;
    }

    .provider-option {
        min-width: 100%;
        padding: 10px;
    }

    .results-actions {
        flex-direction: column;
        gap: 6px;
    }

    .results-actions button {
        width: 100%;
        justify-content: center;
    }

    .transcription-text-preview {
        max-height: 180px;
        padding: 12px;
    }
}

/* =============================================
   PANEL MODE STYLES - עיצוב לתוך הפאנל
   ============================================= */

.transcription-panel-container {
    padding: 16px;
    font-family: 'Heebo', sans-serif;
    letter-spacing: 0.5px;
}

/* Upload Area in Panel */
.transcription-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.transcription-upload-area:hover,
.transcription-upload-area.dragover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-style: solid;
}

.transcription-upload-area .upload-icon {
    font-size: 36px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.transcription-upload-area:hover .upload-icon {
    transform: scale(1.1);
    color: #3b82f6;
}

.transcription-upload-area .upload-text strong {
    display: block;
    font-size: 13px;
    color: #334155;
    margin-bottom: 4px;
    font-weight: 500;
}

.transcription-upload-area .upload-text p {
    color: #64748b;
    font-size: 11px;
    margin: 0;
}

/* Selected File Info in Panel */
.transcription-file-info {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 10px;
    gap: 12px;
    border: 1px solid #bae6fd;
}

.transcription-file-info .file-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.transcription-file-info .file-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.transcription-file-info .file-name {
    font-weight: 500;
    color: #1e293b;
    font-size: 12px;
    line-height: 1.3;
    word-break: break-all;
}

.transcription-file-info .file-size {
    font-size: 11px;
    color: #64748b;
}

.transcription-file-info .file-remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.transcription-file-info .file-remove-btn:hover {
    background: #fee2e2;
}

/* Provider Section in Panel */
.transcription-provider-section {
    margin-top: 16px;
}

.transcription-provider-section > label {
    display: block;
    font-weight: 500;
    color: #334155;
    margin-bottom: 10px;
    font-size: 13px;
}

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

.provider-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    font-family: 'Heebo', sans-serif;
}

.provider-btn:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.provider-btn.selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.provider-btn i {
    font-size: 20px;
    color: #64748b;
}

.provider-btn.selected i {
    color: #3b82f6;
}

.provider-btn span {
    font-size: 11px;
    font-weight: 500;
    color: #334155;
}

/* Settings Section in Panel */
.transcription-settings-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.transcription-settings-section .setting-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transcription-settings-section label {
    font-weight: 500;
    color: #475569;
    font-size: 13px;
    white-space: nowrap;
}

.transcription-settings-section select {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Heebo', sans-serif;
    background: white;
    cursor: pointer;
}

.transcription-settings-section select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Progress Section in Panel */
.transcription-progress-section {
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.transcription-progress-section .progress-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.transcription-progress-section .progress-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid #e2e8f0;
    border-top: 2.5px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.transcription-progress-section .progress-bar {
    width: 100%;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.transcription-progress-section .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Start Button in Panel */
.transcription-start-btn {
    width: 100%;
    margin-top: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-family: 'Heebo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.transcription-start-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.transcription-start-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* =============================================
   RESULT SECTION - תוצאות התמלול עם נגן אודיו
   ============================================= */

.transcription-result-section {
    margin-top: 16px;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 10px;
    border: 1px solid #86efac;
    color: #166534;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 16px;
}

.result-header i {
    font-size: 18px;
    color: #22c55e;
}

/* Audio Player Container */
.audio-player-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.audio-player-container audio {
    width: 100%;
    height: 40px;
    border-radius: 8px;
}

.audio-player-container audio::-webkit-media-controls-panel {
    background: white;
}

.audio-time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
    font-family: 'Courier New', monospace;
}

.audio-separator {
    color: #94a3b8;
}

/* Timestamps Section */
.timestamps-section {
    margin-top: 16px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.timestamps-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
    color: #334155;
    font-size: 13px;
}

.timestamps-header:hover {
    background: #f8fafc;
}

.timestamps-header i:first-child {
    color: #3b82f6;
}

.timestamps-header span {
    flex: 1;
}

.timestamps-header i:last-child {
    color: #94a3b8;
    transition: transform 0.2s;
    font-size: 12px;
}

.timestamps-list {
    display: none;
    max-height: 200px;
    overflow-y: auto;
    border-top: 1px solid #e2e8f0;
}

.timestamp-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.timestamp-item:last-child {
    border-bottom: none;
}

.timestamp-item:hover {
    background: #eff6ff;
}

.timestamp-time {
    flex-shrink: 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #3b82f6;
    background: #eff6ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.timestamp-text {
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
    direction: rtl;
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.result-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Heebo', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.result-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.result-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.result-btn.secondary {
    background: white;
    color: #334155;
    border: 1.5px solid #e2e8f0;
}

.result-btn.secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* =============================================
   OVERWRITE WARNING MODAL - אזהרת דריסת טקסט
   ============================================= */

.overwrite-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overwrite-warning-overlay.visible {
    opacity: 1;
}

.overwrite-warning-modal {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.overwrite-warning-overlay.visible .overwrite-warning-modal {
    transform: scale(1);
}

.overwrite-warning-modal .warning-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.overwrite-warning-modal .warning-icon i {
    font-size: 28px;
    color: #f59e0b;
}

.overwrite-warning-modal h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    font-family: 'Heebo', sans-serif;
}

.overwrite-warning-modal p {
    margin: 0 0 20px;
    font-size: 14px;
    color: #64748b;
    font-family: 'Heebo', sans-serif;
}

.warning-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.warning-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Heebo', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.warning-btn.replace {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.warning-btn.replace:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.warning-btn.append {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.warning-btn.append:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.warning-btn.cancel {
    background: white;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
}

.warning-btn.cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* =============================================
   Transcription Audio Sync - היילייט טקסט מסונכרן
   🔥 עיצוב מינימלי בצבעי הפרויקט (#1e3a5f)
   ============================================= */

/* Transcription segment with timestamp (Whisper - word level) */
.transcription-segment {
    transition: background-color 0.15s ease, color 0.15s ease;
    border-radius: 2px;
    padding: 0 1px;
}

/* Active segment - currently playing (minimal style) */
.transcription-segment.audio-active {
    background-color: rgba(30, 58, 95, 0.12); /* Project color #1e3a5f */
    color: #1e3a5f;
}

/* Played segments - already passed */
.transcription-segment.audio-played {
    color: #94a3b8;
}

/* 🔥 No animation - minimal static highlight only */
.transcription-segment.audio-active.audio-playing {
    /* Same as audio-active - no animation */
    background-color: rgba(30, 58, 95, 0.12);
    color: #1e3a5f;
}

/* Paragraph level highlight (Gemini - paragraph level) */
/* 🔥 Same minimal style as Whisper */
.transcription-paragraph {
    position: relative;
    transition: all 0.2s ease;
    border-radius: 2px;
    padding: 2px 4px;
    margin: 2px 0;
}

.transcription-paragraph.audio-active {
    background-color: rgba(30, 58, 95, 0.1); /* Project color #1e3a5f */
    border-right: 2px solid #1e3a5f;
    padding-right: 8px;
}

/* 🔥 No animation - minimal static highlight only */
.transcription-paragraph.audio-active.audio-playing {
    /* Same as audio-active - no animation */
    background-color: rgba(30, 58, 95, 0.1);
    border-right: 2px solid #1e3a5f;
    padding-right: 8px;
}

.transcription-paragraph.audio-played {
    color: #94a3b8;
}

/* Audio sync indicator in sidebar */
.audio-sync-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 8px;
    margin-top: 12px;
    font-size: 12px;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.audio-sync-indicator i {
    font-size: 14px;
    color: #0284c7;
}

.audio-sync-indicator.syncing {
    animation: syncPulse 2s ease-in-out infinite;
}

@keyframes syncPulse {
    0%, 100% {
        border-color: #bae6fd;
    }
    50% {
        border-color: #38bdf8;
        box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
    }
}
