/* NDA Risk Analyzer - Classic Document Generator Layout */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #f8fafc; 
    color: #334155; 
    line-height: 1.6; 
}

.nda-analyzer { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 20px; 
    background: white; 
    min-height: 100vh; 
}

/* Header */
.header { 
    text-align: center; 
    margin-bottom: 30px; 
    padding: 20px; 
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); 
    color: white; 
    border-radius: 12px; 
}

.header h1 { 
    font-size: 2.2rem; 
    margin-bottom: 10px; 
    font-weight: 700; 
}

.header p { 
    font-size: 1.1rem; 
    opacity: 0.9; 
    margin-bottom: 5px; 
}

.attorney-info { 
    font-size: 0.95rem; 
    opacity: 0.8; 
    font-style: italic; 
}

.extracted-info { 
    background: rgba(255, 255, 255, 0.2); 
    padding: 10px 20px; 
    border-radius: 8px; 
    margin-top: 15px; 
    font-size: 1rem; 
    border: 1px solid rgba(255, 255, 255, 0.3); 
}

/* Input Section */
.input-section { 
    background: white; 
    border: 2px solid #e2e8f0; 
    border-radius: 12px; 
    padding: 30px; 
    margin-bottom: 30px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

.input-section h2 { 
    color: #1e40af; 
    margin-bottom: 25px; 
    font-size: 1.5rem; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.upload-options { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    margin-bottom: 25px; 
}

.file-upload { 
    border: 2px dashed #cbd5e1; 
    border-radius: 8px; 
    padding: 30px; 
    text-align: center; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    background: #f8fafc; 
    min-height: 120px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
}

.file-upload:hover { 
    border-color: #3b82f6; 
    background: #f1f5f9; 
    transform: translateY(-2px); 
}

.upload-icon { 
    font-size: 2.5rem; 
    color: #64748b; 
    margin-bottom: 10px; 
}

.upload-text { 
    font-size: 1.1rem; 
    color: #475569; 
    margin-bottom: 5px; 
}

.upload-subtext { 
    font-size: 0.9rem; 
    color: #64748b; 
}

.url-input-section { 
    padding: 20px; 
    background: #f8fafc; 
    border-radius: 8px; 
    border: 1px solid #e2e8f0; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.url-input-header { 
    font-weight: 600; 
    margin-bottom: 10px; 
    color: #374151; 
}

.url-input-group { 
    display: flex; 
    gap: 10px; 
    align-items: center; 
}

.url-input { 
    flex: 1; 
    padding: 12px 15px; 
    border: 2px solid #e2e8f0; 
    border-radius: 6px; 
    font-size: 0.9rem; 
}

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

.url-submit-btn { 
    background: #1e40af; 
    color: white; 
    border: none; 
    padding: 12px 20px; 
    border-radius: 6px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    white-space: nowrap; 
}

.url-submit-btn:hover { 
    background: #1d4ed8; 
}

.url-submit-btn:disabled { 
    background: #9ca3af; 
    cursor: not-allowed; 
}

.text-input-section { 
    margin-bottom: 25px; 
}

.nda-textarea { 
    width: 100%; 
    padding: 20px; 
    border: 2px solid #e2e8f0; 
    border-radius: 8px; 
    font-size: 0.95rem; 
    font-family: 'Courier New', monospace; 
    resize: vertical; 
    min-height: 200px; 
    background: #fafbfc; 
}

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

.analysis-options { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 20px; 
    background: #f1f5f9; 
    border-radius: 8px; 
}

.ai-toggle-group { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.ai-toggle-group label { 
    font-weight: 600; 
    color: #374151; 
}

.ai-toggle-container { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.ai-toggle-switch { 
    position: relative; 
}

.ai-toggle-switch input[type="checkbox"] { 
    display: none; 
}

.ai-toggle-switch .toggle-label { 
    display: block; 
    width: 50px; 
    height: 25px; 
    background: #cbd5e1; 
    border-radius: 25px; 
    cursor: pointer; 
    position: relative; 
    transition: background 0.3s ease; 
}

.ai-toggle-switch .toggle-slider { 
    position: absolute; 
    top: 2px; 
    left: 2px; 
    width: 21px; 
    height: 21px; 
    background: white; 
    border-radius: 50%; 
    transition: transform 0.3s ease; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
}

.ai-toggle-switch input[type="checkbox"]:checked + .toggle-label { 
    background: #3b82f6; 
}

.ai-toggle-switch input[type="checkbox"]:checked + .toggle-label .toggle-slider { 
    transform: translateX(25px); 
}

.ai-provider-labels { 
    display: flex; 
    gap: 20px; 
}

.provider-label { 
    font-size: 0.9rem; 
    font-weight: 500; 
    color: #64748b; 
    transition: color 0.3s ease; 
}

.provider-label.active { 
    color: #1e40af; 
    font-weight: 600; 
}

.analyze-button { 
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%); 
    color: white; 
    border: none; 
    padding: 15px 30px; 
    border-radius: 8px; 
    font-size: 1.1rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
}

.analyze-button:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3); 
}

.analyze-button:disabled { 
    background: #9ca3af; 
    cursor: not-allowed; 
    transform: none; 
    box-shadow: none; 
}

.loading-spinner { 
    width: 20px; 
    height: 20px; 
    border: 2px solid transparent; 
    border-top: 2px solid white; 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
}

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

/* Two-Pane Layout with Full-Width Summary */
.two-pane-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 600px;
}

.analysis-summary-section {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.panes-container {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 30px;
    min-height: 600px;
}

/* Left Pane - Suggestions */
.left-pane {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: fit-content;
    max-height: 900px;
}

/* Full-Width Risk Summary Card */
.risk-summary-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid;
    margin-bottom: 15px;
}

.risk-summary-card.acceptable {
    background: #f0fdf4;
    border-color: #22c55e;
}

.risk-summary-card.sign-with-caution {
    background: #fff7ed;
    border-color: #f59e0b;
}

.risk-summary-card.do-not-sign {
    background: #fef2f2;
    border-color: #ef4444;
}

.risk-summary-card.professional-review-needed {
    background: #f0f9ff;
    border-color: #3b82f6;
}

.risk-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.risk-content {
    flex: 1;
}

.risk-recommendation {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e40af;
}

.risk-summary {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: left;
}

.tab-button:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.tab-button.active {
    border-color: #1e40af;
    background: #f0f9ff;
    color: #1e40af;
    font-weight: 600;
}

.tab-icon {
    font-size: 1.1rem;
}

.tab-label {
    flex: 1;
}

.tab-count {
    background: #e2e8f0;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tab-button.active .tab-count {
    background: #dbeafe;
    color: #1e40af;
}

/* Suggestions Container - Larger */
.suggestions-container {
    flex: 1;
    overflow-y: auto;
    max-height: 600px;
    margin-bottom: 20px;
}

.suggestion-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fafbfc;
    transition: all 0.3s ease;
}

.suggestion-card:hover {
    border-color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.suggestion-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.suggestion-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-top: 2px;
}

.suggestion-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.risk-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.risk-badge-red {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.risk-badge-yellow {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.risk-badge-green {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.impact-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.impact-high {
    background: #fef2f2;
    color: #dc2626;
}

.impact-medium {
    background: #fff7ed;
    color: #ea580c;
}

.impact-low {
    background: #f0fdf4;
    color: #16a34a;
}

.suggestion-content {
    margin-left: 30px;
}

.suggestion-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.3;
}

.suggestion-description {
    color: #6b7280;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.suggestion-comparison {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.original-text {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 10px;
    border-radius: 0 6px 6px 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.improved-text {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 10px;
    border-radius: 0 6px 6px 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.no-suggestions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #64748b;
    text-align: center;
}

.no-suggestions-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-suggestions-text {
    font-size: 1rem;
}

/* Action Buttons - Accommodate 4 buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.action-btn {
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    min-height: 40px;
    text-align: center;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.copy-btn {
    background: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
    color: white;
}

.download-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
}

.consult-btn {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    grid-column: 1 / -1;
}

.selection-summary {
    text-align: center;
    color: #6366f1;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px;
    background: #f0f9ff;
    border-radius: 6px;
    border: 1px solid #dbeafe;
}

/* Right Pane - Live Preview */
.right-pane {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: fit-content;
    max-height: 800px;
}

.preview-header {
    padding: 20px 25px 15px 25px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.preview-header h3 {
    color: #1e40af;
    margin-bottom: 5px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-info {
    color: #64748b;
    font-size: 0.9rem;
    font-style: italic;
}

.preview-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: white;
    border-radius: 0 0 12px 12px;
}

/* Live Preview Document Styling */
.document-preview {
    font-family: 'Times New Roman', serif;
    font-size: 11pt;
    line-height: 1.5;
    color: #1f2937;
}

.document-preview .document-title {
    font-size: 14pt;
    font-weight: bold;
    text-align: center;
    margin: 20pt 0;
    text-decoration: underline;
    color: #1e40af;
}

.document-preview .opening-paragraph {
    margin-bottom: 16pt;
    text-align: justify;
    line-height: 1.6;
}

.document-preview .section-header {
    font-weight: bold;
    font-size: 12pt;
    margin-top: 20pt;
    margin-bottom: 12pt;
    color: #1e40af;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 4pt;
}

.document-preview .subsection {
    margin-left: 20pt;
    margin-bottom: 12pt;
    text-align: justify;
}

.document-preview .legal-paragraph {
    margin-bottom: 12pt;
    text-align: justify;
    line-height: 1.5;
}

.document-preview .signature-section {
    margin-top: 30pt;
    border-top: 1px solid #e5e7eb;
    padding-top: 20pt;
}

.document-preview .signature-paragraph {
    font-weight: bold;
    text-align: center;
    margin-bottom: 20pt;
}

.document-preview .signature-line {
    margin: 12pt 0;
    font-family: 'Courier New', monospace;
}

.document-preview .highlight-change {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #92400e;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 600;
    animation: highlight-pulse 3s ease-in-out;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.highlight-change {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #92400e;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 600;
    animation: highlight-pulse 3s ease-in-out;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

@keyframes highlight-pulse {
    0% { 
        background: #fbbf24; 
        box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
    }
    25% { 
        background: #f97316; 
        box-shadow: 0 4px 8px rgba(249, 115, 22, 0.4);
        transform: scale(1.02);
    }
    50% { 
        background: #fbbf24; 
        box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
        transform: scale(1);
    }
    75% { 
        background: #f59e0b; 
        box-shadow: 0 3px 6px rgba(245, 158, 11, 0.3);
    }
    100% { 
        background: #fbbf24; 
        box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
    }
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #64748b;
    text-align: center;
    height: 100%;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.placeholder-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.original-preview {
    width: 100%;
    text-align: left;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.original-preview h4 {
    color: #1e40af;
    margin-bottom: 15px;
}

.original-text-preview {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: pre-wrap;
    color: #374151;
    margin: 0;
}

/* Waiting State */
.waiting-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #64748b;
    text-align: center;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 30px;
}

.waiting-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.waiting-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1e40af;
    font-weight: 600;
}

.waiting-subtext {
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.extraction-preview {
    background: #f0f9ff;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    width: 100%;
    max-width: 500px;
}

.extraction-preview h4 {
    color: #1e40af;
    margin-bottom: 10px;
}

.extraction-preview p {
    margin-bottom: 8px;
    color: #374151;
}

/* Disclaimer */
.disclaimer {
    background: #f1f5f9;
    border-left: 4px solid #64748b;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-top: 30px;
    color: #374151;
}

/* Scrollbar Styling */
.suggestions-container::-webkit-scrollbar,
.preview-content::-webkit-scrollbar,
.original-preview::-webkit-scrollbar {
    width: 8px;
}

.suggestions-container::-webkit-scrollbar-track,
.preview-content::-webkit-scrollbar-track,
.original-preview::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.suggestions-container::-webkit-scrollbar-thumb,
.preview-content::-webkit-scrollbar-thumb,
.original-preview::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.suggestions-container::-webkit-scrollbar-thumb:hover,
.preview-content::-webkit-scrollbar-thumb:hover,
.original-preview::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .panes-container {
        grid-template-columns: 50% 50%;
        gap: 20px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .consult-btn {
        grid-column: 1;
    }
}

@media (max-width: 968px) {
    .panes-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .upload-options {
        grid-template-columns: 1fr;
    }
    
    .analysis-options {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .ai-toggle-group {
        justify-content: center;
    }
    
    .nda-analyzer {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .input-section,
    .left-pane,
    .analysis-summary-section {
        padding: 20px;
    }
    
    .tab-navigation {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .tab-button {
        min-width: 140px;
        flex-shrink: 0;
    }
}

@media (max-width: 640px) {
    .url-input-group {
        flex-direction: column;
    }
    
    .url-submit-btn {
        width: 100%;
    }
    
    .suggestion-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .tab-navigation {
        flex-direction: column;
    }
    
    .tab-button {
        min-width: auto;
    }
}

/* Progress Bar Styles */
.progress-container {
    width: 100%;
    margin-left: 10px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

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

.progress-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.analyze-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.analyze-button .loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced highlighting animation */
@keyframes highlight-pulse {
    0% { 
        background-color: #ffeb3b; 
        transform: scale(1.02);
    }
    50% { 
        background-color: #ffc107; 
        transform: scale(1.05);
    }
    100% { 
        background-color: #fff9c4; 
        transform: scale(1);
    }
}

.highlight-change {
    background-color: #fff9c4;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Redline styles for Word document preview */
.redline-delete {
    text-decoration: line-through;
    color: #dc2626;
    background-color: #fef2f2;
    padding: 1px 2px;
    border-radius: 2px;
}

.redline-insert {
    background-color: #dcfce7;
    color: #166534;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 500;
}

/* Preview pane redline styles for live preview */
.document-preview .redline-delete,
.document-preview .redline-insert {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Word document export styles - these will be embedded in the generated HTML */
.word-export .redline-delete {
    text-decoration: line-through;
    color: red;
    background-color: #ffeeee;
}

.word-export .redline-insert {
    background-color: #90EE90;
    color: black;
}

/* Improved scroll indicators */
.preview-content {
    position: relative;
}

.preview-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-content.scrolling:before {
    opacity: 1;
}