.levels-intro {
    color: #666;
    margin-bottom: 1em;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8em;
    margin-bottom: 1.5em;
}

.level-card {
    display: block;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.8em 1em;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}

.level-card:hover {
    border-color: #3366CC;
}

.level-card.active {
    border-color: #3366CC;
    background: #f0f4ff;
}

.level-number {
    font-size: 0.8em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.level-name {
    font-size: 1.1em;
    font-weight: 700;
    color: #333;
    margin: 0.2em 0;
}

.level-range {
    font-size: 0.85em;
    color: #666;
}

.level-count {
    font-size: 0.85em;
    color: #1a73e8;
    font-weight: 600;
}

.level-desc {
    font-size: 0.8em;
    color: #888;
    margin: 0.4em 0 0;
}

/* Reuse words-table styles from words.css */
.words-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.words-table th {
    text-align: left;
    padding: 6px 8px;
    background: #e8f0fe;
    border-bottom: 2px solid #ccc;
}

.words-table td {
    padding: 5px 8px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.words-table tr:nth-child(even) {
    background: #fafafa;
}

.words-table .rank {
    color: #999;
    width: 50px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.words-table .word {
    font-weight: 600;
    white-space: nowrap;
}

.words-table .word a {
    color: #3366CC;
    text-decoration: none;
}

.words-table .word a:hover {
    text-decoration: underline;
}

.words-table .freq {
    width: 160px;
}

.freq-bar-track {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 2px;
}

.freq-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.freq-number {
    font-size: 0.8em;
    color: #888;
}

.words-table .defn {
    color: #444;
    font-size: 0.9em;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5em;
    margin: 1.5em 0;
    font-size: 0.95em;
}

.pagination a {
    color: #3366CC;
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination a:hover {
    background: #f0f0f0;
}

.pagination .disabled {
    color: #ccc;
    padding: 4px 12px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.pagination .page-info {
    color: #666;
}
