/* text-comparison.css */
/* 텍스트 비교 도구 스타일 */
.text-input-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.text-input-group textarea {
    width: 100%;
    height: 300px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    resize: vertical;
    font-size: 0.95em;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.text-input-group textarea:focus {
    border-color: #228be6;
    box-shadow: 0 0 0 3px rgba(34, 139, 230, 0.1);
    outline: none;
}

/* 비교 결과 스타일 */
.comparison-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.comparison-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    padding: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-label {
    color: #495057;
    font-size: 0.9em;
    margin-bottom: 5px;
    display: block;
}

.stat-value {
    color: #228be6;
    font-size: 1.2em;
    font-weight: 600;
}

.difference-list {
    background: white;
    border-radius: 6px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.difference-list h4 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1em;
}

.difference-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.difference-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-size: 0.95em;
}

.difference-list li:last-child {
    border-bottom: none;
}

/* 비교 결과 라인 스타일 */
.comparison-result {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.line-comparison {
    display: grid;
    grid-template-columns: 50px 1fr 1fr;
    gap: 10px;
    padding: 8px 15px;
    border-bottom: 1px solid #e9ecef;
}

.line-comparison:last-child {
    border-bottom: none;
}

.line-number {
    color: #868e96;
    font-size: 0.9em;
    text-align: right;
    padding-right: 10px;
    border-right: 1px solid #e9ecef;
}

.line-content {
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.95em;
    line-height: 1.5;
    padding: 0 5px;
}

.different {
    background: #f8f9fa;
}

.diff-removed {
    background-color: #fff5f5;
    color: #e03131;
    padding: 2px 0;
    border-radius: 2px;
}

.diff-added {
    background-color: #ebfbee;
    color: #2b8a3e;
    padding: 2px 0;
    border-radius: 2px;
}

.diff-space {
    color: #868e96;
    background-color: #f1f3f5;
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 0.8em;
    font-family: sans-serif;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .text-input-container {
        grid-template-columns: 1fr;
    }
    
    .comparison-stats {
        grid-template-columns: 1fr;
    }
    
    .line-comparison {
        grid-template-columns: 40px 1fr;
    }
    
    .line-content:first-of-type {
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 5px;
        margin-bottom: 5px;
    }
}
