.tool-container {
    max-width: 1200px;
}

.back-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--accent);
}

.control-panel {
    margin-bottom: 2rem;
}

.file-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 500;
    color: var(--text-primary);
}

input[type="file"] {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.primary-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
    width: 100%;
}

.primary-btn:hover:not(:disabled) {
    background: var(--accent-hover);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #475569;
}

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.button-group.single-btn {
    grid-template-columns: 1fr;
}

.secondary-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    width: 100%;
}

.secondary-btn:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.results-area {
    animation: fadeIn 0.3s ease;
}

.hidden {
    display: none;
}

.summary {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    color: var(--accent);
}

.table-wrapper {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    white-space: nowrap;
}

th, td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    background: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    position: sticky;
    top: 0;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.diff-cell {
    position: relative;
    padding: 0;
}

.diff-content {
    display: flex;
    flex-direction: column;
}

.diff-old {
    background: rgba(239, 68, 68, 0.2); /* Red tint */
    color: #fca5a5;
    padding: 4px 8px;
    text-decoration: line-through;
    font-size: 0.85em;
}

.diff-new {
    background: rgba(34, 197, 94, 0.2); /* Green tint */
    color: #86efac;
    padding: 4px 8px;
}

.diff-row {
    background: rgba(255, 255, 0, 0.05);
}

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