/* === Text Comparison Specific Styles === */
.tc-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.tc-input-area {
    display: grid;
    grid-template-columns: 1fr;
    /* Stack on small screens */
    gap: var(--spacing-lg);
}

@media (min-width: 768px) {
    .tc-input-area {
        grid-template-columns: 1fr 1fr;
        /* Side-by-side on larger screens */
    }
}

.tc-input-group {
    display: flex;
    flex-direction: column;
}

.tc-input-group label {
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-primary-color);
}

.tc-input-group textarea {
    min-height: 250px;
    font-family: var(--font-family-monospace);
    font-size: 0.9rem;
    resize: vertical;
    border: 1px solid var(--border-color);
    /* --- UPDATED --- */
    background-color: var(--bg-deep-dark);
    /* Makes the text area background darker */
    color: var(--text-primary-color);
    /* Ensures the text inside is light and readable */
    padding: var(--spacing-sm);
    /* Add some padding for better text alignment */
}

.tc-button-group {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    /* Allows buttons to wrap on very small screens */
}

.tc-button-group button {
    flex-grow: 1;
    /* Allows buttons to grow and fill space */
    max-width: 280px;
    /* Same max-width as before */
}

.tc-results-area {
    margin-top: var(--spacing-md);
}

.tc-results-area h2 {
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.tc-diff-output-box {
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--bg-deep-dark);
    /* min-height was removed to allow the box to adapt to its content. */
    font-family: var(--font-family-monospace);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary-color);
    overflow-x: auto;
    transition: height 0.2s ease-in-out;
}

.tc-diff-output-box pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-secondary-color);
}

.tc-results-placeholder,
.tc-error {
    color: var(--text-secondary-color);
    font-style: italic;
    padding: var(--spacing-md);
    text-align: center;
    white-space: normal;
}

.tc-error {
    color: var(--error-color);
    font-weight: bold;
}

.tc-no-diff {
    color: var(--success-color);
    font-weight: normal;
    text-align: center;
    padding: var(--spacing-md);
    display: block;
    white-space: normal;
}

.tc-word-added {
    background-color: rgba(40, 167, 69, 0.15);
    color: var(--success-color);
    padding: 2px 1px;
    border-radius: 3px;
}

.tc-word-removed {
    background-color: rgba(229, 75, 75, 0.15);
    color: var(--error-color);
    text-decoration: line-through;
    padding: 2px 1px;
    border-radius: 3px;
}

.tc-sample-added {
    background-color: rgba(40, 167, 69, 0.2);
    color: #90eeb1;
    padding: 1px 3px;
    border-radius: 3px;
}

.tc-sample-removed {
    background-color: rgba(229, 75, 75, 0.2);
    color: #f6a9a9;
    text-decoration: line-through;
    padding: 1px 3px;
    border-radius: 3px;
}

/* === Features Section === */
.tc-features-section h2 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.tc-features-section h2 .section-icon {
    font-size: 1.2em;
}

.tc-features-section p {
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.tc-features-list {
    list-style: none;
    padding-left: 0;
}

.tc-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    background-color: var(--bg-deep-dark);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.tc-feature-item:last-child {
    margin-bottom: 0;
}

.tc-feature-icon {
    font-size: 1.6em;
    margin-right: var(--spacing-md);
    line-height: 1.4;
    flex-shrink: 0;
    margin-top: -2px;
}

.tc-feature-text strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: var(--spacing-xs);
    color: var(--text-heading-color);
}

.tool-placeholder div {
    margin-bottom: var(--spacing-lg);
}

.tool-placeholder label {
    display: block;
    font-family: var(--font-family-heading);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary-color);
}
