.text-comparison .comparison-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.text-comparison .text-column {
    flex: 1;
    min-width: 250px;
}

.text-comparison .text-column label {
    display: block;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 6px;
}

.text-comparison .text-column textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    resize: vertical;
    transition: all 0.2s ease;
    background: #f8fafc;
    color: #0f172a;
    min-height: 200px;
}

.text-comparison .text-column textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

.text-comparison .action-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.text-comparison .clear-btn {
    background: #64748b;
}

.text-comparison .clear-btn:hover {
    background: #475569;
}

.text-comparison .similarity-score {
    text-align: center;
    margin-bottom: 24px;
}

.text-comparison .score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f8fafc;
    border: 4px solid #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.text-comparison .score-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.text-comparison .score-label {
    font-size: 0.9rem;
    color: #64748b;
}

.text-comparison .diff-result {
    margin-top: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #eef2f6;
}

.text-comparison .diff-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.text-comparison .stat-item {
    text-align: center;
    padding: 8px 16px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    flex: 1;
    min-width: 70px;
}

.text-comparison .stat-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.text-comparison .stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.text-comparison .diff-view-container {
    margin-top: 16px;
}

.text-comparison .diff-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.text-comparison .diff-header-label {
    font-weight: 600;
    color: #0f172a;
}

.text-comparison .diff-actions {
    display: flex;
    gap: 8px;
}

.text-comparison .btn-sm {
    padding: 6px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    color: #0f172a;
}

.text-comparison .btn-sm:hover {
    background: #e2e8f0;
}

.text-comparison .diff-view {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 12px;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.text-comparison .diff-line {
    display: flex;
    gap: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.text-comparison .diff-line .line-num {
    color: #94a3b8;
    font-size: 0.8rem;
    min-width: 30px;
    text-align: right;
    user-select: none;
}

.text-comparison .diff-line .line-content {
    flex: 1;
    word-break: break-word;
}

.text-comparison .char-added {
    background: #dcfce7;
    color: #166534;
}

.text-comparison .char-removed {
    background: #fee2e2;
    color: #991b1b;
}

.text-comparison .char-unchanged {
    color: #0f172a;
}

.text-comparison .diff-line.added {
    background: #f0fdf4;
}

.text-comparison .diff-line.removed {
    background: #fef2f2;
}

.text-comparison .diff-line.changed {
    background: #fffbeb;
}