.tool-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .tool-layout {
        grid-template-columns: 1fr;
    }
}

.input-panel, .results-panel {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
}

#textInput {
    width: 100%;
    min-height: 400px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: inherit;
    resize: vertical;
    font-size: 16px;
    line-height: 1.5;
}

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

.stat-box {
    background: var(--bg-main);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.stat-title {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 500;
    border-radius: 4px;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
}

.density-table {
    width: 100%;
    border-collapse: collapse;
}

.density-table th, .density-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.density-table th {
    position: sticky;
    top: 0;
    background: var(--bg-card);
    font-weight: bold;
}

.density-bar-container {
    width: 100%;
    background: var(--bg-main);
    height: 8px;
    border-radius: 4px;
    margin-top: 4px;
    overflow: hidden;
}

.density-bar {
    height: 100%;
    background: var(--primary-color);
}

.density-bar.high {
    background: #f59e0b;
}

.density-bar.very-high {
    background: #ef4444;
}

.mt-4 { margin-top: 2rem; }
.seo-content ul, .seo-content ol { margin-left: 1.5rem; margin-bottom: 1.5rem; }
.seo-content li { margin-bottom: 0.5rem; }
.seo-content h2, .seo-content h3 { margin-top: 1.5rem; margin-bottom: 1rem; }

body, html { overflow-x: hidden; margin: 0; padding: 0; }
