/* static/css/diff_viewer.css */

.diff-tool-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.tool-title-page { 
    color: #e0e0e0;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.diff-layout {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
}

.diff-input-column {
    flex: 1;
}

.diff-input-column label {
    display: block;
    color: #aaaaaa;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.diff-textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Menlo', 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #333;
    resize: vertical;
}
.diff-textarea:focus {
    outline: none;
    border-color: #c0392b; /* Dark Red Accent */
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.5);
}

.diff-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
    margin: 1.5rem 0;
}

.compare-btn {
    padding: 0.75rem 2rem;
    background-color: #c0392b; /* Dark Red Accent */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.compare-btn:hover {
    background-color: #e74c3c; /* Lighter Dark Red */
}

.diff-mode-selector {
    display: flex;
    gap: 1rem;
    color: #aaaaaa;
}
.diff-mode-selector label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.diff-mode-selector input[type="radio"] {
    accent-color: #c0392b;
}


.diff-results-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 1rem;
}

.diff-results-container h3 {
    font-family: 'Orbitron', sans-serif;
    color: #e0e0e0;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #444;
}

.diff-output-area {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Menlo', 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    background-color: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #333;
    white-space: pre-wrap; /* Allows wrapping */
    word-wrap: break-word; /* Breaks long words if needed */
}

/* ADDED: Style for common text */
.diff-output-area .common {
    color: #cccccc; /* A slightly off-white color for common text */
    text-decoration: none;
}

.diff-output-area .added {
    background-color: rgba(46, 204, 113, 0.15); /* Greenish for added text */
    text-decoration: none; /* remove underline from default ins styling */
    color: #b3ffb3; /* Lighter green text for better readability */
}

.diff-output-area .removed {
    background-color: rgba(192, 57, 43, 0.2); /* Reddish for removed text */
    text-decoration: line-through;
    color: #ffb3b3; /* Lighter red text for better readability */
}

@media (max-width: 768px) {
    .diff-layout {
        flex-direction: column;
    }
    .diff-actions {
        flex-direction: column;
        gap: 1rem;
    }
}
