#regex-tester-container {
    margin-bottom: 15px;
}

.char-options {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
}

.match-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 12px;
}

.match-item:hover {
    background: #f3f4f6;
    border-color: #8b5cf6;
}

.match-index {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    min-width: 30px;
    text-align: right;
    flex-shrink: 0;
}

.match-text {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    color: #1f2937;
    word-break: break-all;
    flex: 1;
    text-align: left;
}

.match-position {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    color: #9ca3af;
    min-width: 70px;
    text-align: right;
    flex-shrink: 0;
}

.error-box {
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 16px;
}